com.ibm.rfid.epcis
Class AggregationEvent

java.lang.Object
  extended by com.ibm.rfid.epcis.Event
      extended by com.ibm.rfid.epcis.AggregationEvent

public class AggregationEvent
extends Event

Bean used to create Aggregation events as described in EPCglobal-epcis-1_0.xsd

An example of using the AggregationEvent class is included below:

                AggregationEvent agevent = new AggregationEvent();
                agevent.setEventTime("2005-04-03T20:33:31.116-06:00");
                agevent.setRecordTime("2005-04-03T20:33:31.116-06:00");
                agevent.setEventTimeZoneOffset("-6:00");
                agevent.setParentID("urn:epc:id:sgtin:0614141.107346.2017");
                String[] tags = {"urn:epc:id:sgtin:0614141.107346.2017"};
                agevent.setChildEPCs(tags);
                agevent.setAction("OBSERVE");
                agevent.setBizStep("SIMULATED_ASN");
                agevent.setDisposition("ACTIVE");
                agevent.setReadPoint("urn:epc:id:sgln:0614141.07346.1234");
                agevent.setBizLocation("DC RECEIVING_PARCEL");
                BizTransaction trans = new BizTransaction();
                trans.setType("urn:epcglobal:fmcg:btt:po");
                trans.setTransaction("http://transaction.acme.com/po/12345678");
                BizTransaction[] transList = {trans};
                agevent.setBizTransactionList(transList);
                
                System.out.println(agevent.getXML());
 


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
AggregationEvent()
           
 
Method Summary
 java.lang.String getAction()
           
 java.lang.String getBizLocation()
           
 java.lang.String getBizStep()
           
 BizTransaction[] getBizTransactionList()
           
 java.lang.String[] getChildEPCs()
           
 java.lang.String getDisposition()
           
 java.lang.String getParentID()
           
 java.lang.String getReadPoint()
           
 java.lang.String getXML()
          Used to generate the XML representation of the Event as specified by the EPCglobal-epcis-1_0.xsd and EPCglobal.xsd schemas.
 void setAction(java.lang.String string)
           
 void setBizLocation(java.lang.String string)
           
 void setBizStep(java.lang.String string)
           
 void setBizTransactionList(BizTransaction[] list)
           
 void setChildEPCs(java.lang.String[] list)
           
 void setDisposition(java.lang.String string)
           
 void setParentID(java.lang.String string)
           
 void setReadPoint(java.lang.String string)
           
 
Methods inherited from class com.ibm.rfid.epcis.Event
getCustomExtensions, getEventTime, getEventTimeZoneOffset, getExtensions, getNamespaceAliases, getRecordTime, setCustomExtensions, setEventTime, setEventTimeZoneOffset, setExtensions, setNamespaceAliases, setRecordTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

AggregationEvent

public AggregationEvent()
Method Detail

getAction

public java.lang.String getAction()
Returns:
action string ADD, OBSERVE, or DELETE

getBizLocation

public java.lang.String getBizLocation()
Returns:
bizLocation format xsd:anyURI

getBizStep

public java.lang.String getBizStep()
Returns:
bizStep format xsd:anyURI

getBizTransactionList

public BizTransaction[] getBizTransactionList()
Returns:
bizTransaction format xsd:anyURI

getDisposition

public java.lang.String getDisposition()
Returns:
disposition format xsd:anyURI

getChildEPCs

public java.lang.String[] getChildEPCs()
Returns:
Array of String EPC values

getParentID

public java.lang.String getParentID()
Returns:
String EPC value of parent

getReadPoint

public java.lang.String getReadPoint()
Returns:
readPoint format xsd:anyURI

setAction

public void setAction(java.lang.String string)
Parameters:
string - ADD, OBSERVE, or DELETE

setBizLocation

public void setBizLocation(java.lang.String string)
Parameters:
string - format xsd:anyURI

setBizStep

public void setBizStep(java.lang.String string)
Parameters:
string - format xsd:anyURI

setBizTransactionList

public void setBizTransactionList(BizTransaction[] list)
Parameters:
array - of BizTransaction

setChildEPCs

public void setChildEPCs(java.lang.String[] list)
Parameters:
list - Vector of String EPC values

setDisposition

public void setDisposition(java.lang.String string)
Parameters:
string - format xsd:anyURI

setParentID

public void setParentID(java.lang.String string)
Parameters:
string - format xsd:anyURI

setReadPoint

public void setReadPoint(java.lang.String string)
Parameters:
string - format xsd:anyURI

getXML

public java.lang.String getXML()
Used to generate the XML representation of the Event as specified by the EPCglobal-epcis-1_0.xsd and EPCglobal.xsd schemas.

Specified by:
getXML in class Event
Parameters:
event - Instance of an Event such as an ObjectEvent or AggregationEvent
Returns:
String XML representation of the event


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.