Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.rfid.workflow.epcis
Class ObjectEventGenerator

    java.lang.Object
      com.bea.rfid.workflow.epcis.EventGenerator
          com.bea.rfid.workflow.epcis.ObjectEventGenerator

    public class ObjectEventGenerator

extends EventGenerator

Plain java class to generate EPCIS Object Events for input tags. URIs from the input tags will be used as the EPCs on the generated Object Event. This uses the super class for populating the common EPCIS event fields. This contains action field in addition to the fields on its super class. This action value will be used on the generated event if the template event is not an object event or does not have action specified. EPCs, if any, on the template event will be ignored.

This implementation assumes single threaded operation and is not synchronized. If multiple threads access this concurrently, it must be synchronized externally.

Constructor Summary
`ObjectEventGenerator()`

Method Summary
`com.connecterra.epcis.impl.AbstractEPCISEvent` | `createSpecificEPCISEvent(List tags)` Creates Object Event with URIs corresponding to the input tags in its EPC list.
`String` | `getAction()` Returns the action specified on this object event generator.
`void` | `setAction(String action)` Specified the action that must be used on the generated event, if one cannot be obtained from the template event.

Methods inherited from class com.bea.rfid.workflow.epcis.EventGenerator
`addBusinessTransaction, addBusinessTransaction, addEventExtension, convertToEPC, convertToEPCList, createEPCISDocument, getBusinessLocation, getBusinessStep, getBusinessTransactionList, getDisposition, getEventExtensionList, getReadPoint, getTemplate, getTemplateAction, getTemplateEvent, isProcessing, populateAbstractEPCISEvent, setBusinessLocation, setBusinessStep, setBusinessTransactionList, setDisposition, setEventExtensionList, setReadPoint, setTemplate, startProcessing, stopProcessing`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ObjectEventGenerator

    public ObjectEventGenerator()

Method Detail

### createSpecificEPCISEvent

    public com.connecterra.epcis.impl.AbstractEPCISEvent createSpecificEPCISEvent(List tags)
                                                                           throws com.connecterra.epcis.api.EPCISException

  Creates Object Event with URIs corresponding to the input tags in its EPC list. Action field on the event will also be set. Action value on the template event will be used if the template event is an object event and has action specified. If not, action specified on this `ObjectEventGenerator` object will be used.

  Specified by:
    `createSpecificEPCISEvent` in class `EventGenerator`
  Parameters:
    `tags` - list of `com.connecterra.ale.api.ECReportGroupListMember` for which Object Event must be generated
  Returns:
    the generated EPCIS Object Event
  Throws:
    `com.connecterra.epcis.api.EPCISException` - if an error occurs trying to create the event
    `IllegalStateException` - if action cannot be obtained from the template event and none is set on this
  See Also:
    `EventGenerator.createEPCISDocument(List)`

### getAction

    public String getAction()

  Returns the action specified on this object event generator. This will be used on the generated object event if one cannot be obtained from the template event.

  Returns:
    the action that will be used in generated object events if one cannot be obtained from the template event

### setAction

    public void setAction(String action)

  Specified the action that must be used on the generated event, if one cannot be obtained from the template event.

  Parameters:
    `action` - string with the action value

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD