|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.msv.verifier.psvi.PSVIDump
An example that uses TypedContentHandler
for parsing XML documents.
Constructor Summary | |
PSVIDump()
|
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 uri,
String local,
String qName,
ElementExp type)
receives notification of the end of an element. |
static void |
main(String[] args)
|
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PSVIDump()
Method Detail |
public static void main(String[] args) throws Exception
public void startElement(String namespaceUri, String localName, String qName)
TypedContentHandler
startElement
in interface TypedContentHandler
public void startAttribute(String namespaceUri, String localName, String qName)
TypedContentHandler
startAttribute
in interface TypedContentHandler
public void endAttribute(String namespaceUri, String localName, String qName, AttributeExp type)
TypedContentHandler
endAttribute
in interface TypedContentHandler
com.sun.msv.verifier.psvi.TypedContentHandler
type
- assigned type.public void endAttributePart()
TypedContentHandler
endAttributePart
in interface TypedContentHandler
public void characterChunk(String literal, Datatype type)
TypedContentHandler
characterChunk
in interface TypedContentHandler
com.sun.msv.verifier.psvi.TypedContentHandler
literal
- the contents.type
- assigned type. The validator assigns this type for this literal.public void endElement(String uri, String local, String qName, ElementExp type)
TypedContentHandler
endElement
in interface TypedContentHandler
com.sun.msv.verifier.psvi.TypedContentHandler
type
- the type of this element.public void startDocument(ValidationContext context)
TypedContentHandler
startDocument
in interface TypedContentHandler
com.sun.msv.verifier.psvi.TypedContentHandler
context
- This ValidationContext object is effective through the entire document.public void endDocument()
TypedContentHandler
endDocument
in interface TypedContentHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |