|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bea.rfid.workflow.epcis.EventGenerator
com.bea.rfid.workflow.epcis.AggregationEventGenerator
public class AggregationEventGenerator
Java class to generate EPCIS Aggregation Events for input tags. This contains include and exclude EPC patterns for parent and children elements of the aggregation event. These will be applied on the input tags to determine the parent and children to use on the generated aggregation event. If the template event contains a parent id, that will be used as the parent id on the generated event.
This uses the super class for populating the common EPCIS event fields. It contains action field in addition, which will be used on the generated event if the template event is not an aggregation event or does not have action specified.
This implementation assumes single threaded operation and is not synchronized. If multiple threads access this concurrently, it must be synchronized externally.
| Constructor Summary | |
|---|---|
AggregationEventGenerator()
|
|
| Method Summary | |
|---|---|
com.connecterra.epcis.impl.AbstractEPCISEvent |
createSpecificEPCISEvent(List tags)
Creates Aggregation Event for the given input tags. |
String |
getAction()
Returns the action specified on this 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. |
void |
setChildrenExcludePatterns(List childrenExcludePats)
Specifies EPC Pattern URI strings that must be used to exclude EPCs from children list. |
void |
setChildrenIncludePatterns(List childrenIncludePats)
Specifies EPC Pattern URI strings that must be used to include EPCs to the event's children list. |
void |
setParentExcludePatterns(List parentExcludePats)
Specifies EPC Pattern URI strings that must be used to exclude an input tag from being the parent on the aggregation event. |
void |
setParentIncludePatterns(List parentPats)
Specifies EPC Pattern URI strings that must be used to include an input tag as the parent on the aggregation event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AggregationEventGenerator()
| Method Detail |
|---|
public com.connecterra.epcis.impl.AbstractEPCISEvent createSpecificEPCISEvent(List tags)
throws com.connecterra.epcis.api.EPCISException
AggregationEventGenerator object will be used.
createSpecificEPCISEvent in class EventGeneratortags - list of com.connecterra.ale.api.ECReportGroupListMember
for which Aggregation Event must be generated
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 thisEventGenerator.createEPCISDocument(List)public String getAction()
public void setAction(String action)
action - string with the action value
public void setChildrenExcludePatterns(List childrenExcludePats)
throws com.connecterra.ale.epc.EPCPatternException,
com.connecterra.ale.epc.EPCFieldDecodingException,
com.connecterra.ale.epc.EPCException,
URISyntaxException
childrenExcludePats - list of EPC Pattern URI strings
com.connecterra.ale.epc.EPCPatternException - if an invalid EPC pattern is specified
com.connecterra.ale.epc.EPCFieldDecodingException - if any pattern field in the specified pattern URI
is not correct or missing
com.connecterra.ale.epc.EPCException - if an invalid tag is specified
URISyntaxException - if an incorrect URI is passed in
public void setChildrenIncludePatterns(List childrenIncludePats)
throws com.connecterra.ale.epc.EPCPatternException,
com.connecterra.ale.epc.EPCFieldDecodingException,
com.connecterra.ale.epc.EPCException,
URISyntaxException
childrenIncludePats - list of EPC Pattern URI strings
com.connecterra.ale.epc.EPCPatternException - if an invalid EPC pattern is specified
com.connecterra.ale.epc.EPCFieldDecodingException - if any pattern field in the specified pattern URI
is not correct or missing
com.connecterra.ale.epc.EPCException - if an invalid tag is specified
URISyntaxException - if an incorrect URI is passed in
public void setParentIncludePatterns(List parentPats)
throws com.connecterra.epcis.api.EPCISException
parentPats - list of EPC Pattern URI strings
com.connecterra.ale.epc.EPCPatternException - if an invalid EPC pattern is specified
com.connecterra.ale.epc.EPCFieldDecodingException - if any pattern field in the specified pattern URI
is not correct or missing
com.connecterra.ale.epc.EPCException - if an invalid tag is specified
URISyntaxException - if an incorrect URI is passed in
com.connecterra.epcis.api.EPCISException
public void setParentExcludePatterns(List parentExcludePats)
throws com.connecterra.ale.epc.EPCPatternException,
com.connecterra.ale.epc.EPCFieldDecodingException,
com.connecterra.ale.epc.EPCException,
URISyntaxException
parentExcludePats - list of EPC Pattern URI strings
com.connecterra.ale.epc.EPCPatternException - if an invalid EPC pattern is specified
com.connecterra.ale.epc.EPCFieldDecodingException - if any pattern field in the specified pattern URI
is not correct or missing
com.connecterra.ale.epc.EPCException - if an invalid tag is specified
URISyntaxException - if an incorrect URI is passed in
|
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 | |||||||||