|
||||||||||
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.TestDocType
public class TestDocType
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.wm.app.tn.util.TNFixedData |
---|
com.wm.app.tn.util.TNFixedData.TreeCursor |
Constructor Summary | |
---|---|
TestDocType()
|
|
TestDocType(com.wm.data.IData in)
|
Method Summary | |
---|---|
void |
compare(BizDocType oldType,
BizDocType newType,
java.util.Vector<ActivityLogEntry> logs)
|
BizDocType |
copy()
Abstract method for copying one BizDocType to another. |
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)
Abstract method to get content of a bizdoc In general, this is called from the BizDocEnvelope.getContentBytes. |
java.lang.String |
getContentType(BizDocEnvelope bizdoc)
Abstract method for determining the content-type of the bizdoc (eg, text/xml). |
com.wm.data.IData |
getIData()
IDataCodable implementation. |
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 bizdoc,
byte[] data)
Abstract method to set the content bytes. |
void |
setDocType(java.lang.String docType)
|
void |
setIData(com.wm.data.IData idata)
IDataCodable implementation. |
java.lang.String |
toString()
Default toString implementation returns class name followed by contents. |
Methods inherited from class com.wm.app.tn.util.TNFixedData |
---|
clone, dataSize, get, get, getCursor, getHashCursor, getIndexCursor, getKey, getSharedCursor, getTreeCursor, indexOf, merge, set, set |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestDocType()
public TestDocType(com.wm.data.IData in)
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) throws BizDocTypeException
BizDocType
recognize
in class BizDocType
in
- IData object containing keyword and data for particular document type
BizDocTypeException
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
BizDocType
createPipeline
in class BizDocType
bizdoc
- input BizDocEnvelope
BizDocTypeException
public java.lang.String getContentType(BizDocEnvelope bizdoc)
BizDocType
getContentType
in class BizDocType
bizdoc
- BizDoc to test
public com.wm.data.IData getIData()
BizDocType
super.getIData()
.
getIData
in interface com.wm.util.coder.IDataCodable
getIData
in class BizDocType
public void setDocType(java.lang.String docType)
public void setIData(com.wm.data.IData idata)
BizDocType
super.setIData()
.
setIData
in interface com.wm.util.coder.IDataCodable
setIData
in class BizDocType
idata
- a representation of this doc type as an IData objectpublic java.lang.String toString()
com.wm.app.tn.util.TNFixedData
toString
in class com.wm.app.tn.util.TNFixedData
public BizDocType copy()
BizDocType
copy
in class BizDocType
public byte[] getContentBytes(BizDocEnvelope bizdoc)
BizDocType
getContentBytes
in class BizDocType
bizdoc
- BizDoc to get the contents
public void setContentBytes(BizDocEnvelope bizdoc, byte[] data)
BizDocType
setContentBytes
in class BizDocType
bizdoc
- BizDoc to set the contentsdata
- the document content byte[]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 |