|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcytoscape.generated2.impl.runtime.MSVValidator
public class MSVValidator
XMLSerializer that calls the native interface of MSV and performs validation. Used in a pair with a ValidationContext.
| Field Summary | |
|---|---|
static String |
DUMMY_ELEMENT_NS
namespace URI of dummy elements. |
| Method Summary | |
|---|---|
void |
childAsAttributes(com.sun.xml.bind.JAXBObject o,
String fieldName)
This method is called when an JAXBObject object is found while the marshaller is in the "attribute" mode (i.e. |
void |
childAsBody(com.sun.xml.bind.JAXBObject o,
String fieldName)
This method is called when an JAXBObject object is found while the marshaller is in the "element" mode (i.e. |
void |
childAsURIs(com.sun.xml.bind.JAXBObject o,
String fieldName)
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. |
String |
getBaseUri()
|
NamespaceContext2 |
getNamespaceContext()
Obtains a namespace context object, which is used to declare/obtain namespace bindings. |
boolean |
isNotation(String notation)
|
boolean |
isUnparsedEntity(String entityName)
|
void |
onID(org.relaxng.datatype.Datatype dt,
com.sun.msv.verifier.regexp.StringToken s)
|
String |
onID(com.sun.xml.bind.marshaller.IdentifiableObject owner,
String value)
Notifies the serializer that an ID value has just marshalled. |
String |
onIDREF(com.sun.xml.bind.marshaller.IdentifiableObject value)
Notifies the serializer that an IDREF value has just marshalled. |
void |
reportError(javax.xml.bind.ValidationEvent e)
Errors detected by the XMLSerializable should be either thrown as SAXException or reported through this method. |
void |
reportMissingObjectError(String fieldName)
|
String |
resolveNamespacePrefix(String prefix)
|
void |
startAttribute(String uri,
String local)
Starts marshalling of an attribute. |
void |
startElement(String uri,
String local)
Starts marshalling of an element. |
void |
text(String text,
String fieldName)
Marshalls text. |
static void |
validate(DefaultJAXBContextImpl jaxbCtx,
cytoscape.generated2.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 String DUMMY_ELEMENT_NS
| Method Detail |
|---|
public NamespaceContext2 getNamespaceContext()
XMLSerializer
getNamespaceContext in interface XMLSerializer
public static void validate(DefaultJAXBContextImpl jaxbCtx,
cytoscape.generated2.impl.runtime.ValidationContext context,
ValidatableObject vo)
throws SAXException
SAXException
public void endNamespaceDecls()
throws SAXException
XMLSerializer
endNamespaceDecls in interface XMLSerializerSAXException
public void endAttributes()
throws SAXException
XMLSerializer
endAttributes in interface XMLSerializerSAXException
public final void text(String text,
String fieldName)
throws 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 XMLSerializerSAXException
public void reportMissingObjectError(String fieldName)
throws SAXException
SAXException
public void startAttribute(String uri,
String local)
XMLSerializer
startAttribute in interface XMLSerializer
public void endAttribute()
throws SAXException
endAttribute in interface XMLSerializerSAXException
public void startElement(String uri,
String local)
throws SAXException
XMLSerializer
startElement in interface XMLSerializerSAXException
public void endElement()
throws SAXException
XMLSerializer
endElement in interface XMLSerializerSAXException
public void childAsAttributes(com.sun.xml.bind.JAXBObject o,
String fieldName)
throws SAXException
XMLSerializer
childAsAttributes in interface XMLSerializerfieldName - property name of the parent objeect from which 'o' comes.
Used as a part of the error message in case anything goes wrong
with 'o'.
SAXException
public void childAsURIs(com.sun.xml.bind.JAXBObject o,
String fieldName)
throws SAXException
XMLSerializer
childAsURIs in interface XMLSerializerfieldName - property name of the parent objeect from which 'o' comes.
Used as a part of the error message in case anything goes wrong
with 'o'.
SAXException
public void childAsBody(com.sun.xml.bind.JAXBObject o,
String fieldName)
throws SAXException
XMLSerializer
childAsBody in interface XMLSerializerfieldName - property name of the parent objeect from which 'o' comes.
Used as a part of the error message in case anything goes wrong
with 'o'.
SAXException
public void reportError(javax.xml.bind.ValidationEvent e)
throws com.sun.xml.bind.serializer.AbortSerializationException
XMLSerializerSAXException or reported through this method.
The callee should report an error to the client application
and
reportError in interface XMLSerializercom.sun.xml.bind.serializer.AbortSerializationException
public String onID(com.sun.xml.bind.marshaller.IdentifiableObject owner,
String value)
throws SAXException
XMLSerializer
onID in interface XMLSerializerowner - JAXB content object that posesses the ID.value - The value of the ID.
SAXException
public String onIDREF(com.sun.xml.bind.marshaller.IdentifiableObject value)
throws SAXException
XMLSerializer
onIDREF in interface XMLSerializerSAXExceptionpublic String getBaseUri()
getBaseUri in interface org.relaxng.datatype.ValidationContextpublic boolean isUnparsedEntity(String entityName)
isUnparsedEntity in interface org.relaxng.datatype.ValidationContextpublic boolean isNotation(String notation)
isNotation in interface org.relaxng.datatype.ValidationContext
public void onID(org.relaxng.datatype.Datatype dt,
com.sun.msv.verifier.regexp.StringToken s)
onID in interface com.sun.msv.grammar.IDContextProvider2public String resolveNamespacePrefix(String prefix)
resolveNamespacePrefix in interface org.relaxng.datatype.ValidationContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||