com.sun.xml.bind
Class GrammarInfo

java.lang.Object
  extended by com.sun.xml.bind.GrammarInfo

Deprecated. in JAXB1.0.1

public abstract class GrammarInfo
extends java.lang.Object

Keeps the information about the grammar as a whole. Implementation of this interface is provided by the generated code.

Since:
JAXB1.0

Constructor Summary
GrammarInfo()
          Deprecated.  
 
Method Summary
abstract  java.lang.Class getDefaultImplementation(java.lang.Class javaContentInterface)
          Deprecated. Gets the default implementation for the given public content interface.
protected  com.sun.msv.grammar.Grammar getGrammar()
          Deprecated. Gets the MSV AGM which can be used to validate XML during marshalling/unmarshalling.
protected abstract  java.lang.String[] getProbePoints()
          Deprecated. Return the probe points for this GrammarInfo, which are used to detect {namespaceURI,localName} collisions across the GrammarInfo's on the schemaPath.
protected abstract  java.lang.Class getRootElement(java.lang.String namespaceUri, java.lang.String localName)
          Deprecated. Gets a generated implementation class for the specified root element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrammarInfo

public GrammarInfo()
Deprecated. 
Method Detail

getRootElement

protected abstract java.lang.Class getRootElement(java.lang.String namespaceUri,
                                                  java.lang.String localName)
Deprecated. 
Gets a generated implementation class for the specified root element. This method is used to determine the first object to be unmarshalled.

Parameters:
namespaceUri - The string needs to be interned for a performance reason.
localName - The string needs to be interned for a performance reason.
Returns:
null if this instance does not recognized the given name pair.

getProbePoints

protected abstract java.lang.String[] getProbePoints()
Deprecated. 
Return the probe points for this GrammarInfo, which are used to detect {namespaceURI,localName} collisions across the GrammarInfo's on the schemaPath. This is a slightly more complex implementation than a simple hashmap, but it is more flexible in supporting additional schema langs.


getDefaultImplementation

public abstract java.lang.Class getDefaultImplementation(java.lang.Class javaContentInterface)
Deprecated. 
Gets the default implementation for the given public content interface.

Parameters:
javaContentInterface - the Class object of the public interface.
Returns:
null If the interface is not found.

getGrammar

protected com.sun.msv.grammar.Grammar getGrammar()
                                          throws javax.xml.bind.JAXBException
Deprecated. 
Gets the MSV AGM which can be used to validate XML during marshalling/unmarshalling.

Throws:
javax.xml.bind.JAXBException