com.ibm.rfid.epcis
Class QuantityEvent
java.lang.Object
com.ibm.rfid.epcis.Event
com.ibm.rfid.epcis.QuantityEvent
public class QuantityEvent
- extends Event
Bean used to create Quantity events as described in EPCglobal-epcis-1_0.xsd
An example of using the QuantityEvent class is included below:
QuantityEvent qevent = new QuantityEvent();
qevent.setEventTime("2005-04-03T20:33:31.116-06:00");
qevent.setRecordTime("2005-04-03T20:33:31.116-06:00");
qevent.setEventTimeZoneOffset("-6:00");
qevent.setEPCClass("Class1");
qevent.setQuantity(32);
qevent.setBizStep("SIMULATED_ASN");
qevent.setDisposition("ACTIVE");
qevent.setReadPoint("urn:epc:id:sgln:0614141.07346.1234");
qevent.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};
qevent.setBizTransactionList(transList);
System.out.println(qevent.getXML());
Field Summary |
static java.lang.String |
COPYRIGHT
|
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
QuantityEvent
public QuantityEvent()
getEPCClass
public java.lang.String getEPCClass()
- Returns:
- EPCClass format xsd:anyURI
getQuantity
public int getQuantity()
- Returns:
- quantity int
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
getReadPoint
public java.lang.String getReadPoint()
- Returns:
- format xsd:anyURI
setEPCClass
public void setEPCClass(java.lang.String string)
- Parameters:
string
- format xsd:anyURI
setQuantity
public void setQuantity(int q)
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
setDisposition
public void setDisposition(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.