|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.util.TNFixedData
com.wm.app.tn.doc.BizDocType
com.wm.app.tn.doc.UnknownDocType
public class UnknownDocType
Instances of this class are basically placeholders -- they flag docs that aren't otherwise recognized.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.wm.app.tn.util.TNFixedData |
---|
com.wm.app.tn.util.TNFixedData.TreeCursor |
Constructor Summary | |
---|---|
UnknownDocType()
|
Method Summary | |
---|---|
void |
compare(BizDocType oldType,
BizDocType newType,
java.util.Vector<ActivityLogEntry> logs)
|
BizDocType |
copy()
Abstract method for copying one BizDocType to another. |
static com.wm.data.IData |
create()
|
BizDocEnvelope |
createEnvelope(com.wm.data.IData in)
Factory method for creating new BizDocs of this type. |
com.wm.data.IData |
createPipeline(BizDocEnvelope bizdoc)
Factory method for creating a pipeline from the given BizDoc. |
byte[] |
getContentBytes(BizDocEnvelope bizdoc)
Get content of a bizdoc |
java.lang.String |
getContentType(BizDocEnvelope bizdoc)
Abstract method for determining the content-type of the bizdoc (eg, text/xml). |
java.lang.Object |
getDeliveryContent(BizDocEnvelope bizdoc)
Get delivery content for the given envelope |
boolean |
isType(com.wm.data.IData in)
Abstract method for determining if the IData contains data representing a lower level document type (eg, XML, EDI, etc). |
boolean |
recognize(com.wm.data.IData in)
Abstract method for determining if the data in IData is a particular document type. |
void |
setContentBytes(BizDocEnvelope env,
byte[] data)
Set content of a bizdoc |
Methods inherited from class com.wm.app.tn.util.TNFixedData |
---|
clone, dataSize, get, get, getCursor, getHashCursor, getIndexCursor, getKey, getSharedCursor, getTreeCursor, indexOf, merge, set, set, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnknownDocType()
Method Detail |
---|
public boolean isType(com.wm.data.IData in)
BizDocType
isType
in class BizDocType
in
- IData object containing keyword and data for particular document type
public boolean recognize(com.wm.data.IData in)
BizDocType
recognize
in class BizDocType
in
- IData object containing keyword and data for particular document type
public BizDocEnvelope createEnvelope(com.wm.data.IData in) throws BizDocTypeException
BizDocType
createEnvelope
in class BizDocType
in
- input IData for the document in question
BizDocTypeException
public com.wm.data.IData createPipeline(BizDocEnvelope bizdoc) throws BizDocTypeException
createPipeline
in class BizDocType
bizdoc
- input BizDocEnvelope
BizDocTypeException
public byte[] getContentBytes(BizDocEnvelope bizdoc)
getContentBytes
in class BizDocType
bizdoc
- BizDoc to get the contents
public java.lang.Object getDeliveryContent(BizDocEnvelope bizdoc) throws java.io.IOException
getDeliveryContent
in class BizDocType
bizdoc
- BizDocEnvelope to get the delivery content from
java.io.IOException
public void setContentBytes(BizDocEnvelope env, byte[] data)
setContentBytes
in class BizDocType
bizdoc,
- BizDoc to set the contentsdata,
- the contentpublic BizDocType copy()
BizDocType
copy
in class BizDocType
public java.lang.String getContentType(BizDocEnvelope bizdoc)
BizDocType
getContentType
in class BizDocType
bizdoc
- BizDoc to test
public static com.wm.data.IData create()
public void compare(BizDocType oldType, BizDocType newType, java.util.Vector<ActivityLogEntry> logs)
compare
in class BizDocType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |