|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypedContentHandler
Receives notification of the typed content of the document.
This interface can be considered as the SAX ContentHandler plus type-information. It is intended to help applications to interpret the incoming document.
Consider a following RELAX NG pattern and instance:
Events are reported in the following order:
A B
startDocument() startElement(root) startAttribute(foo) characterChunk("true", com.sun.msv.datatype.xsd.BooleanType) endAttribute(foo) endAttributePart() startElement(child) characterChunk("A", com.sun.msv.datatype.xsd.NMTOKENType) characterChunk("B", com.sun.msv.datatype.xsd.NMTOKENType) endElement(child, MSV's internal object that represents the child element) endElement(root, MSV's internal object that represents the root element) endDocument()
TypeDetector
Method Summary | |
---|---|
void |
characterChunk(String literal,
Datatype type)
receives notification of a string. |
void |
endAttribute(String namespaceURI,
String localName,
String qName,
AttributeExp type)
receives notification of the end of an attribute. |
void |
endAttributePart()
this method is called after the start/endAttribute method are called for all attributes. |
void |
endDocument()
receives notification of the end of a document. |
void |
endElement(String namespaceURI,
String localName,
String qName,
ElementExp type)
receives notification of the end of an element. |
void |
startAttribute(String namespaceURI,
String localName,
String qName)
receives notification of the start of an attribute. |
void |
startDocument(ValidationContext context)
receives notification of the start of a document. |
void |
startElement(String namespaceURI,
String localName,
String qName)
receives notification of the start of an element. |
Method Detail |
---|
void startDocument(ValidationContext context) throws SAXException
context
- This ValidationContext object is effective through the entire document.
SAXException
void endDocument() throws SAXException
SAXException
void characterChunk(String literal, Datatype type) throws SAXException
literal
- the contents.type
- assigned type. The validator assigns this type for this literal.
SAXException
void startElement(String namespaceURI, String localName, String qName) throws SAXException
SAXException
void endElement(String namespaceURI, String localName, String qName, ElementExp type) throws SAXException
type
- the type of this element.
SAXException
void startAttribute(String namespaceURI, String localName, String qName) throws SAXException
SAXException
void endAttribute(String namespaceURI, String localName, String qName, AttributeExp type) throws SAXException
type
- assigned type.
SAXException
void endAttributePart() throws SAXException
SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |