|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rfid.premises.app.entities.AbstractXmlObject
com.ibm.rfid.premises.app.entities.supplychain.printing.PrintDetails
public class PrintDetails
A PrintDetails is required to submit a print job to an IBM WebSphere Sensor Events Server. Although a PrintDetails object is at the top of the Object layering, all of the print job details are stored in the LabelPrint object. The following is an example of how to create a valid PrintDetails:
EpcData ed = new EpcData(); ed.setEpcEncoding(EpcData.EPC_ENCODING_SSCC64); Label l = new Label(); l.setEpcData(ed); l.addFormData("Unit of Mass", "lbs"); l.addFormData("Shipping weight", "100"); l.setQuantity(1); l.setTemplateEpcKey("epcdata"); l.setTemplateName("myTemplate"); l.setUnitType("PALLET"); LabelList labelList = new LabelList(); labelList.addDefaultFormData("CompanyName", "IBM"); labelList.setDefaultTemplateEpcKey(""); labelList.setDefaultTemplateName(""); labelList.addLabel(l); LabelPrint labelPrint = new LabelPrint(); labelPrint.setBusinessRefId("123212"); labelPrint.setDescription("Print for store 17"); labelPrint.setPrinterName("myPrinter"); labelPrint.setProfileName("myProfile"); labelPrint.setLabelList(labelList); PrintDetails sp = new PrintDetails(); sp.setLabelPrint(labelPrint);
LabelPrint
Field Summary | |
---|---|
static java.lang.String |
REQUEST
Xml String used to describe a request element |
static java.lang.String |
REQUEST_TYPE
Request type |
Fields inherited from class com.ibm.rfid.premises.app.entities.AbstractXmlObject |
---|
attributes_, EQ, GT, LT, QUOTE, SLASH, tagName_, XML_START |
Constructor Summary | |
---|---|
PrintDetails()
Base Constructor - Use setLabelPrint(LabelPrint)
to set mandatory LabelPrint object. |
|
PrintDetails(java.lang.String xml)
Creates the print details while creating a LabelPrint object based on specified XML |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Gets the description of the print job being submitted |
LabelPrint |
getLabelPrint()
Gets the LabelPrint object |
boolean |
isValid()
Verification method used before PrintDetails is submitted to IBM WebSphere Sensor Events Server |
void |
setDescription(java.lang.String description)
Sets the description of the print job being submitted |
void |
setLabelPrint(LabelPrint lp)
|
java.lang.String |
toXmlString(boolean isTop)
Creates an XML string representation of this AbsstractXMLObject |
Methods inherited from class com.ibm.rfid.premises.app.entities.AbstractXmlObject |
---|
getEndTag, getNodeListFromString, getStartTag, getStringFromElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REQUEST_TYPE
public static final java.lang.String REQUEST
Constructor Detail |
---|
public PrintDetails()
setLabelPrint(LabelPrint)
to set mandatory LabelPrint object.
public PrintDetails(java.lang.String xml) throws XmlConvertException
xml
-
XmlConvertException
Method Detail |
---|
public LabelPrint getLabelPrint()
public void setLabelPrint(LabelPrint lp)
lp
- LabelPrint object needed for a print jobLabelPrint
public void setDescription(java.lang.String description)
description
- short description of print job being submitted.public java.lang.String getDescription()
public boolean isValid()
public java.lang.String toXmlString(boolean isTop)
AbstractXmlObject
toXmlString
in class AbstractXmlObject
isTop
- decides whether or not the XML_START
field is appended to the output of this method. Should
be true if this AbstractXmlObject is the root element.
AbstractXmlObject.toXmlString(boolean)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |