|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The XMS document handler interface defines callback methods to report segment and field information obtained in XMS documents.
Field Summary | |
static int |
TYPE_FIELD
|
static int |
TYPE_SEGMENT
|
static int |
TYPE_UNKNOWN
|
Method Summary | |
void |
endDocument()
The end of the document. |
void |
endField(java.lang.String fieldName)
The end of a field. |
void |
endSegment(java.lang.String segmentName)
The end of a segment. |
void |
fieldValue(java.lang.String text)
Part or all of a field value. |
int |
getElementType(java.lang.String elementName)
Queries for the type this element maps to. |
void |
reset()
Resets any accumulated State. |
void |
sideSegment(java.lang.String segmentName,
java.lang.String fieldName,
java.lang.String fieldValue)
Indicates a side Segment has been found inside the current field. |
void |
startDocument(java.lang.String psbName,
java.lang.String pcbName)
The start of the document. |
boolean |
startField(java.lang.String fieldName)
The start of a field. |
void |
startSegment(java.lang.String segmentName)
The start of a segment. |
Field Detail |
public static final int TYPE_UNKNOWN
public static final int TYPE_SEGMENT
public static final int TYPE_FIELD
Method Detail |
public void startDocument(java.lang.String psbName, java.lang.String pcbName) throws org.apache.xerces.xni.XNIException
psbName
- The name of the PSB this instance data relates to.pcbName
- The name of the PCB this instance data relates to.XNIException
- Thrown by handler to signal an error.public int getElementType(java.lang.String elementName) throws org.apache.xerces.xni.XNIException
elementName
- The name of the element encountered in the parse.XNIException
- Thrown by handler to signal an error.public void startSegment(java.lang.String segmentName) throws org.apache.xerces.xni.XNIException
segmentName
- The name of the segment.XNIException
- Thrown by handler to signal an error.public boolean startField(java.lang.String fieldName) throws org.apache.xerces.xni.XNIException
fieldName
- The name of the field.XNIException
- Thrown by handler to signal an error.public void fieldValue(java.lang.String text) throws org.apache.xerces.xni.XNIException
text
- The content.XNIException
- Thrown by handler to signal an error.public void sideSegment(java.lang.String segmentName, java.lang.String fieldName, java.lang.String fieldValue) throws org.apache.xerces.xni.XNIException
segmentName
- The SideSegment name.fieldName
- The Name of the single field in the Side Segment.fieldValue
- The Value of the field.XNIException
- Thrown by handler to signal an error.public void endField(java.lang.String fieldName) throws org.apache.xerces.xni.XNIException
fieldName
- The name of the field.XNIException
- Thrown by handler to signal an error.public void endSegment(java.lang.String segmentName) throws org.apache.xerces.xni.XNIException
segmentName
- The name of the segment.XNIException
- Thrown by handler to signal an error.public void endDocument() throws org.apache.xerces.xni.XNIException
XNIException
- Thrown by handler to signal an error.public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |