Package com.adaptris.edi.model
Interface DataModelPart
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTEstatic intCOMPOSITEstatic intCOMPOSITE_FIELDstatic intELEMENTstatic intFIELDstatic intIDstatic intRECORDstatic intROOTstatic intSEGMENTstatic intTEXTstatic java.util.List<java.lang.String>typesA list of valid types.
Indexes of each type correspond to the int fields contained in this class.
Valid entries are:
"Invalid", "Root", "Segment", "Record", "Composite", "Field", "Element", "Attribute", "Text", "CompositeField", "Id"
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddChild(DataModelPart child)voiddocument(java.lang.StringBuffer sb, int indent)Deprecated.usewriteXML(Writer, int)orwriteXML(OutputStream, int)instead.DataModelPartgetChild(int index)intgetChildCount()java.util.ArrayListgetChildList(java.lang.String type, java.lang.String id)java.lang.StringgetId()DataModelPartgetParent()intgetRepetitions()DataModelPartgetRoot()java.lang.StringgetType()ContainerPartparse(StreamParser input, Options options)voidproduce(java.io.OutputStream output, ContainerPart container, java.lang.String charsetEncoding, Options options)voidresort()voidsetId(java.lang.String id)voidsetParent(DataModelPart parent)voidsetRepetitions(int repetitions)voidsetRoot(DataModelPart root)voidsetType(java.lang.String type)booleansupportsChild(int dataModelType)voidvalidate(ContainerPart container)voidwriteXML(java.io.OutputStream out, int indent)voidwriteXML(java.io.Writer out, int indent)
-
-
-
Field Detail
-
ROOT
static final int ROOT
- See Also:
- Constant Field Values
-
SEGMENT
static final int SEGMENT
- See Also:
- Constant Field Values
-
RECORD
static final int RECORD
- See Also:
- Constant Field Values
-
COMPOSITE
static final int COMPOSITE
- See Also:
- Constant Field Values
-
FIELD
static final int FIELD
- See Also:
- Constant Field Values
-
ELEMENT
static final int ELEMENT
- See Also:
- Constant Field Values
-
ATTRIBUTE
static final int ATTRIBUTE
- See Also:
- Constant Field Values
-
TEXT
static final int TEXT
- See Also:
- Constant Field Values
-
COMPOSITE_FIELD
static final int COMPOSITE_FIELD
- See Also:
- Constant Field Values
-
ID
static final int ID
- See Also:
- Constant Field Values
-
types
static final java.util.List<java.lang.String> types
A list of valid types.
Indexes of each type correspond to the int fields contained in this class.
Valid entries are:
"Invalid", "Root", "Segment", "Record", "Composite", "Field", "Element", "Attribute", "Text", "CompositeField", "Id"
-
-
Method Detail
-
parse
ContainerPart parse(StreamParser input, Options options) throws ModelException
- Throws:
ModelException
-
getRepetitions
int getRepetitions()
-
setRepetitions
void setRepetitions(int repetitions)
-
supportsChild
boolean supportsChild(int dataModelType)
-
validate
void validate(ContainerPart container) throws ModelException
- Throws:
ModelException
-
produce
void produce(java.io.OutputStream output, ContainerPart container, java.lang.String charsetEncoding, Options options) throws ModelException- Throws:
ModelException
-
addChild
void addChild(DataModelPart child) throws ModelException
- Throws:
ModelException
-
getChild
DataModelPart getChild(int index) throws ModelException
- Throws:
ModelException
-
getChildList
java.util.ArrayList getChildList(java.lang.String type, java.lang.String id) throws ModelException- Throws:
ModelException
-
setParent
void setParent(DataModelPart parent) throws ModelException
- Throws:
ModelException
-
getParent
DataModelPart getParent() throws ModelException
- Throws:
ModelException
-
setRoot
void setRoot(DataModelPart root)
-
getRoot
DataModelPart getRoot()
-
getChildCount
int getChildCount()
-
setId
void setId(java.lang.String id)
-
getId
java.lang.String getId()
-
getType
java.lang.String getType()
-
setType
void setType(java.lang.String type)
-
document
@Deprecated void document(java.lang.StringBuffer sb, int indent)Deprecated.usewriteXML(Writer, int)orwriteXML(OutputStream, int)instead.
-
writeXML
void writeXML(java.io.OutputStream out, int indent) throws java.io.IOException, EdiException- Throws:
java.io.IOExceptionEdiException
-
writeXML
void writeXML(java.io.Writer out, int indent) throws java.io.IOException, EdiException- Throws:
java.io.IOExceptionEdiException
-
resort
void resort()
-
-