Package com.adaptris.edi.model
Interface DataModelPart
public interface DataModelPart
Interface which defines the standard methods used by DataModelPart classes
- See Also:
-
DataModelPartImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intA 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
Modifier and TypeMethodDescriptionvoidaddChild(DataModelPart child) voiddocument(StringBuffer sb, int indent) Deprecated.getChild(int index) intArrayList<?>getChildList(String type, String id) getId()intgetRoot()getType()parse(StreamParser input, Options options) voidproduce(OutputStream output, ContainerPart container, String charsetEncoding, Options options) voidresort()voidvoidsetParent(DataModelPart parent) voidsetRepetitions(int repetitions) voidsetRoot(DataModelPart root) voidbooleansupportsChild(int dataModelType) voidvalidate(ContainerPart container) voidwriteXML(OutputStream out, int indent) void
-
Field Details
-
ROOT
static final int ROOT- See Also:
-
SEGMENT
static final int SEGMENT- See Also:
-
RECORD
static final int RECORD- See Also:
-
COMPOSITE
static final int COMPOSITE- See Also:
-
FIELD
static final int FIELD- See Also:
-
ELEMENT
static final int ELEMENT- See Also:
-
ATTRIBUTE
static final int ATTRIBUTE- See Also:
-
TEXT
static final int TEXT- See Also:
-
COMPOSITE_FIELD
static final int COMPOSITE_FIELD- See Also:
-
ID
static final int ID- See Also:
-
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 Details
-
parse
- Throws:
ModelException
-
getRepetitions
int getRepetitions() -
setRepetitions
void setRepetitions(int repetitions) -
supportsChild
boolean supportsChild(int dataModelType) -
validate
- Throws:
ModelException
-
produce
void produce(OutputStream output, ContainerPart container, String charsetEncoding, Options options) throws ModelException - Throws:
ModelException
-
addChild
- Throws:
ModelException
-
getChild
- Throws:
ModelException
-
getChildList
- Throws:
ModelException
-
setParent
- Throws:
ModelException
-
getParent
- Throws:
ModelException
-
setRoot
-
getRoot
DataModelPart getRoot() -
getChildCount
int getChildCount() -
setId
-
getId
String getId() -
getType
String getType() -
setType
-
document
Deprecated.usewriteXML(Writer, int)orwriteXML(OutputStream, int)instead. -
writeXML
- Throws:
IOExceptionEdiException
-
writeXML
- Throws:
IOExceptionEdiException
-
resort
void resort()
-
writeXML(Writer, int)orwriteXML(OutputStream, int)instead.