|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GrammarInfo
Keeps the information about the grammar as a whole. Implementation of this interface is provided by the generated code.
Method Summary | |
---|---|
UnmarshallingEventHandler |
createUnmarshaller(String namespaceUri,
String localName,
UnmarshallingContext context)
Creates an unmarshaller that can unmarshal a given element. |
Class |
getDefaultImplementation(Class javaContentInterface)
Gets the default implementation for the given public content interface. |
com.sun.msv.grammar.Grammar |
getGrammar()
Gets the MSV AGM which can be used to validate XML during marshalling/unmarshalling. |
String[] |
getProbePoints()
Return the probe points for this GrammarInfo, which are used to detect {namespaceURI,localName} collisions across the GrammarInfo's on the schemaPath. |
Class |
getRootElement(String namespaceUri,
String localName)
Creates an instance for the root element. |
boolean |
recognize(String nsUri,
String localName)
Returns true if the invocation of the createUnmarshaller method will return a non-null value for the given name pair. |
Method Detail |
---|
UnmarshallingEventHandler createUnmarshaller(String namespaceUri, String localName, UnmarshallingContext context)
namespaceUri
- The string needs to be interned by the caller
for a performance reason.localName
- The string needs to be interned by the caller
for a performance reason.
Class getRootElement(String namespaceUri, String localName)
String[] getProbePoints()
boolean recognize(String nsUri, String localName)
namespaceUri
- The string needs to be interned by the caller
for a performance reason.localName
- The string needs to be interned by the caller
for a performance reason.Class getDefaultImplementation(Class javaContentInterface)
javaContentInterface
- the Class object of the public interface.
com.sun.msv.grammar.Grammar getGrammar() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |