|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.admc.jamama.dtd.impl.runtime.MSVValidator
XMLSerializer that calls the native interface of MSV and performs validation. Used in a pair with a ValidationContext.
| Field Summary | |
static java.lang.String |
DUMMY_ELEMENT_NS
namespace URI of dummy elements. |
| Method Summary | |
void |
childAsAttributeBody(JAXBObject o)
|
void |
childAsAttributes(JAXBObject o)
This method is called when an JAXBObject object is found while the marshaller is in the "attribute" mode (i.e. |
void |
childAsElementBody(JAXBObject o)
This method is called when an JAXBObject object is found while the marshaller is in the "element" mode (i.e. |
void |
childAsURIs(JAXBObject o)
This method is called when an JAXBObject object is found while the marshaller is in the "URI" mode. |
void |
endAttribute()
|
void |
endAttributes()
Switches to the mode to marshal child texts/elements. |
void |
endElement()
Ends marshalling of an element. |
void |
endNamespaceDecls()
Switches to the mode to marshal attribute values. |
java.lang.String |
getBaseUri()
|
NamespaceContext2 |
getNamespaceContext()
Obtains a namespace context object, which is used to declare/obtain namespace bindings. |
boolean |
isNotation(java.lang.String notation)
|
boolean |
isUnparsedEntity(java.lang.String entityName)
|
java.lang.String |
onID(IdentifiableObject owner,
java.lang.String value)
Notifies the serializer that an ID value has just marshalled. |
java.lang.String |
onIDREF(IdentifiableObject value)
Notifies the serializer that an IDREF value has just marshalled. |
void |
reportError(ValidationEvent e)
Errors detected by the XMLSerializable should be either thrown as SAXException or reported through this method. |
java.lang.String |
resolveNamespacePrefix(java.lang.String prefix)
|
void |
startAttribute(java.lang.String uri,
java.lang.String local)
Starts marshalling of an attribute. |
void |
startElement(java.lang.String uri,
java.lang.String local)
Starts marshalling of an element. |
void |
text(java.lang.String text)
Marshalls text. |
static void |
validate(com.admc.jamama.dtd.impl.runtime.ValidationContext context,
ValidatableObject vo)
Validates the specified object and reports any error to the context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DUMMY_ELEMENT_NS
| Method Detail |
public NamespaceContext2 getNamespaceContext()
XMLSerializer
getNamespaceContext in interface XMLSerializer
public static void validate(com.admc.jamama.dtd.impl.runtime.ValidationContext context,
ValidatableObject vo)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endNamespaceDecls()
throws org.xml.sax.SAXException
XMLSerializer
endNamespaceDecls in interface XMLSerializerorg.xml.sax.SAXException
public void endAttributes()
throws org.xml.sax.SAXException
XMLSerializer
endAttributes in interface XMLSerializerorg.xml.sax.SAXException
public final void text(java.lang.String text)
throws org.xml.sax.SAXException
XMLSerializerThis method can be called (i) after the startAttribute method and (ii) before the endAttribute method, to marshal attribute values. If the method is called more than once, those texts are considered as separated by whitespaces. For example,
c.startAttribute();
c.text("abc");
c.text("def");
c.endAttribute("","foo");
will generate foo="abc def".
Similarly, this method can be called after the endAttributes method to marshal texts inside elements. The same rule about multiple invokations apply to this case, too. For example,
c.startElement("","foo");
c.endNamespaceDecls();
c.endAttributes();
c.text("abc");
c.text("def");
c.startElement("","bar");
c.endAttributes();
c.endElement();
c.text("ghi");
c.endElement();
will generate <foo>abc def<bar/>ghi</foo>.
text in interface XMLSerializerorg.xml.sax.SAXException
public void startAttribute(java.lang.String uri,
java.lang.String local)
XMLSerializer
startAttribute in interface XMLSerializer
public void endAttribute()
throws org.xml.sax.SAXException
endAttribute in interface XMLSerializerorg.xml.sax.SAXException
public void startElement(java.lang.String uri,
java.lang.String local)
throws org.xml.sax.SAXException
XMLSerializer
startElement in interface XMLSerializerorg.xml.sax.SAXException
public void endElement()
throws org.xml.sax.SAXException
XMLSerializer
endElement in interface XMLSerializerorg.xml.sax.SAXException
public void childAsAttributes(JAXBObject o)
throws org.xml.sax.SAXException
XMLSerializer
childAsAttributes in interface XMLSerializerorg.xml.sax.SAXException
public void childAsURIs(JAXBObject o)
throws org.xml.sax.SAXException
XMLSerializer
childAsURIs in interface XMLSerializerorg.xml.sax.SAXException
public void childAsElementBody(JAXBObject o)
throws org.xml.sax.SAXException
XMLSerializer
childAsElementBody in interface XMLSerializerorg.xml.sax.SAXException
public void childAsAttributeBody(JAXBObject o)
throws org.xml.sax.SAXException
childAsAttributeBody in interface XMLSerializerorg.xml.sax.SAXException
public void reportError(ValidationEvent e)
throws AbortSerializationException
XMLSerializerSAXException or reported through this method.
The callee should report an error to the client application
and
reportError in interface XMLSerializerAbortSerializationException
public java.lang.String onID(IdentifiableObject owner,
java.lang.String value)
throws org.xml.sax.SAXException
XMLSerializer
onID in interface XMLSerializerowner - JAXB content object that posesses the ID.value - The value of the ID.
org.xml.sax.SAXException
public java.lang.String onIDREF(IdentifiableObject value)
throws org.xml.sax.SAXException
XMLSerializer
onIDREF in interface XMLSerializerorg.xml.sax.SAXExceptionpublic java.lang.String getBaseUri()
public boolean isUnparsedEntity(java.lang.String entityName)
public boolean isNotation(java.lang.String notation)
public java.lang.String resolveNamespacePrefix(java.lang.String prefix)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||