com.wm.app.tn.doc
Class RecordDocType

java.lang.Object
  extended by com.wm.app.tn.util.TNFixedData
      extended by com.wm.app.tn.doc.BizDocType
          extended by com.wm.app.tn.doc.UnknownDocType
              extended by com.wm.app.tn.doc.RecordDocType
All Implemented Interfaces:
com.wm.data.IData, com.wm.util.coder.IDataCodable, java.io.Serializable, java.lang.Cloneable

public class RecordDocType
extends UnknownDocType

This class is create to deal with records that is received in TN

Author:
Jack Ding
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.wm.app.tn.util.TNFixedData
com.wm.app.tn.util.TNFixedData.TreeCursor
 
Constructor Summary
RecordDocType()
           
 
Method Summary
static com.wm.data.IData create()
           
 com.wm.data.IData createPipeline(BizDocEnvelope bizdoc)
          Factory method for creating a pipeline from the given BizDoc.
 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.
 
Methods inherited from class com.wm.app.tn.doc.UnknownDocType
compare, copy, createEnvelope, getContentBytes, getContentType, getDeliveryContent, setContentBytes
 
Methods inherited from class com.wm.app.tn.doc.BizDocType
addBAMAttribute, addPipelineMatch, createActivityLog, determineSenderFromSession, getAttribute, getAttributeIds, getAttributeTransform, getBAMAction, getBAMDocTypeDependency, getBAMDocTypeMapping, getBAMEventMap, getBAMEventMapName, getBAMMonitoringAttributes, getDescription, getDisplayName, getEditorName, getFormattedContentPart, getFtpFileExtension, getId, getIData, getLastModifiedTime, getName, getPipelineMatchIData, getPreRoutingFlags, getSigningService, getSubDocTypeID, getSystemAttributeIds, getType, getValidationService, getVerificationService, getVersion, isAttributeListEventOption, isAttributeRequired, isDeleted, isFormattedContentPart, isHidden, isMonitored, isRoutable, monitor, newEnvelope, pipelineMatch, removeAllAttributes, removeAttribute, removeBAMAttribute, removePipelineMatch, setAttribute, setAttribute, setAttributeRequirement, setAttributeTransform, setAttributeTransform, setAttributeTransform, setBAMAction, setBAMDocTypeDependency, setBAMDocTypeMapping, setBAMEventMap, setBAMEventMapName, setBAMEventOptionForAttrList, setBAMMonitoringAttributes, setDeleted, setDescription, setDetermineSenderFromSession, setHidden, setId, setIData, setLastModifiedTime, setName, setPipelineMatchIData, setPreRoutingFlags, setReceiveSvc, setRouting, setSigningService, setSubDocTypeID, setType, setValidationService, setVerificationService, setVersion
 
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

RecordDocType

public RecordDocType()
Method Detail

isType

public boolean isType(com.wm.data.IData in)
Description copied from class: BizDocType
Abstract method for determining if the IData contains data representing a lower level document type (eg, XML, EDI, etc). This is really meant to be a class (static) method but you cant override a static. Each subclass must provide it owns way of determing this. For example, if an XML document then "in" will have a "node" keyword.

Overrides:
isType in class UnknownDocType
Parameters:
in - IData object containing keyword and data for particular document type
Returns:
true (everything is unknown)

recognize

public boolean recognize(com.wm.data.IData in)
Description copied from class: BizDocType
Abstract method for determining if the data in IData is a particular document type. This is truly an instance method (as opposed to isType).

Overrides:
recognize in class UnknownDocType
Parameters:
in - IData object containing keyword and data for particular document type
Returns:
true (everything is unknown)

createPipeline

public com.wm.data.IData createPipeline(BizDocEnvelope bizdoc)
                                 throws BizDocTypeException
Factory method for creating a pipeline from the given BizDoc.

Overrides:
createPipeline in class UnknownDocType
Parameters:
bizdoc - input BizDocEnvelope
Returns:
the IData representation of the given envelope
Throws:
BizDocTypeException

create

public static com.wm.data.IData create()
Returns:
the single instance of this type in the system