public interface TypedContentHandler
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| Modifier and Type | Method and Description |
|---|---|
void |
characterChunk(java.lang.String literal,
org.relaxng.datatype.Datatype type)
receives notification of a string.
|
void |
endAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.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(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
ElementExp type)
receives notification of the end of an element.
|
void |
startAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
receives notification of the start of an attribute.
|
void |
startDocument(org.relaxng.datatype.ValidationContext context)
receives notification of the start of a document.
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
receives notification of the start of an element.
|
void startDocument(org.relaxng.datatype.ValidationContext context)
throws org.xml.sax.SAXException
context - This ValidationContext object is effective through the entire document.org.xml.sax.SAXExceptionvoid endDocument()
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionvoid characterChunk(java.lang.String literal,
org.relaxng.datatype.Datatype type)
throws org.xml.sax.SAXException
literal - the contents.type - assigned type. The validator assigns this type for this literal.org.xml.sax.SAXExceptionvoid startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionvoid endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
ElementExp type)
throws org.xml.sax.SAXException
type - the type of this element.org.xml.sax.SAXExceptionvoid startAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionvoid endAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
AttributeExp type)
throws org.xml.sax.SAXException
type - assigned type.org.xml.sax.SAXExceptionvoid endAttributePart()
throws org.xml.sax.SAXException
org.xml.sax.SAXException