com.sun.xml.bind
Class DefaultJAXBContextImpl

java.lang.Object
  extended by javax.xml.bind.JAXBContext
      extended by com.sun.xml.bind.DefaultJAXBContextImpl

Deprecated. in JAXB1.0.1

public class DefaultJAXBContextImpl
extends javax.xml.bind.JAXBContext

This class provides the default implementation of JAXBContext. It also creates the GrammarInfoFacade that unifies all of the grammar info from packages on the contextPath.

Since:
JAXB1.0

Field Summary
static java.lang.String JAXB_RI_BUILD_ID
          Deprecated. property name used to store the build id
 
Fields inherited from class javax.xml.bind.JAXBContext
JAXB_CONTEXT_FACTORY
 
Constructor Summary
DefaultJAXBContextImpl(GrammarInfo gi)
          Deprecated. This constructor is used by the default no-arg constructor in the generated JAXBContextImpl objects.
DefaultJAXBContextImpl(java.lang.String contextPath, java.lang.ClassLoader classLoader)
          Deprecated. This is the constructor used by javax.xml.bind.FactoryFinder which bootstraps the RI.
 
Method Summary
 javax.xml.bind.Marshaller createMarshaller()
          Deprecated. Create a Marshaller object that can be used to convert a java content-tree into XML data.
 javax.xml.bind.Unmarshaller createUnmarshaller()
          Deprecated. Create an Unmarshaller object that can be used to convert XML data into a java content-tree.
 javax.xml.bind.Validator createValidator()
          Deprecated. Create a Validator object that can be used to validate a java content-tree.
 com.sun.msv.grammar.Grammar getGrammar()
          Deprecated.  
 GrammarInfo getGrammarInfo()
          Deprecated.  
 java.lang.Object getProperty(java.lang.String name)
          Deprecated. There are no required properties, so simply throw an exception.
 java.lang.Object newInstance(java.lang.Class javaContentInterface)
          Deprecated. Create an instance of the specified Java content interface.
 void setProperty(java.lang.String name, java.lang.Object value)
          Deprecated. There are no required properties, so simply throw an exception.
 
Methods inherited from class javax.xml.bind.JAXBContext
createBinder, createBinder, createJAXBIntrospector, generateSchema, newInstance, newInstance, newInstance, newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXB_RI_BUILD_ID

public static final java.lang.String JAXB_RI_BUILD_ID
Deprecated. 
property name used to store the build id

See Also:
Constant Field Values
Constructor Detail

DefaultJAXBContextImpl

public DefaultJAXBContextImpl(java.lang.String contextPath,
                              java.lang.ClassLoader classLoader)
                       throws javax.xml.bind.JAXBException
Deprecated. 
This is the constructor used by javax.xml.bind.FactoryFinder which bootstraps the RI. It causes the construction of a JAXBContext that contains a GrammarInfoFacade which is the union of all the generated JAXBContextImpl objects on the contextPath.

Throws:
javax.xml.bind.JAXBException

DefaultJAXBContextImpl

public DefaultJAXBContextImpl(GrammarInfo gi)
Deprecated. 
This constructor is used by the default no-arg constructor in the generated JAXBContextImpl objects. It is also used by the bootstrapping constructor in this class.

Method Detail

getGrammarInfo

public GrammarInfo getGrammarInfo()
Deprecated. 

getGrammar

public com.sun.msv.grammar.Grammar getGrammar()
                                       throws javax.xml.bind.JAXBException
Deprecated. 
Throws:
javax.xml.bind.JAXBException

createMarshaller

public javax.xml.bind.Marshaller createMarshaller()
                                           throws javax.xml.bind.JAXBException
Deprecated. 
Create a Marshaller object that can be used to convert a java content-tree into XML data.

Specified by:
createMarshaller in class javax.xml.bind.JAXBContext
Returns:
a Marshaller object
Throws:
javax.xml.bind.JAXBException - if an error was encountered while creating the Marshaller object

createUnmarshaller

public javax.xml.bind.Unmarshaller createUnmarshaller()
                                               throws javax.xml.bind.JAXBException
Deprecated. 
Create an Unmarshaller object that can be used to convert XML data into a java content-tree.

Specified by:
createUnmarshaller in class javax.xml.bind.JAXBContext
Returns:
an Unmarshaller object
Throws:
javax.xml.bind.JAXBException - if an error was encountered while creating the Unmarshaller object

createValidator

public javax.xml.bind.Validator createValidator()
                                         throws javax.xml.bind.JAXBException
Deprecated. 
Create a Validator object that can be used to validate a java content-tree.

Specified by:
createValidator in class javax.xml.bind.JAXBContext
Returns:
an Unmarshaller object
Throws:
javax.xml.bind.JAXBException - if an error was encountered while creating the Validator object

newInstance

public java.lang.Object newInstance(java.lang.Class javaContentInterface)
                             throws javax.xml.bind.JAXBException
Deprecated. 
Create an instance of the specified Java content interface.

Parameters:
javaContentInterface - the Class object
Returns:
Throws:
javax.xml.bind.JAXBException

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
                 throws javax.xml.bind.PropertyException
Deprecated. 
There are no required properties, so simply throw an exception. Other providers may have support for properties on Validator, but the RI doesn't

Throws:
javax.xml.bind.PropertyException

getProperty

public java.lang.Object getProperty(java.lang.String name)
                             throws javax.xml.bind.PropertyException
Deprecated. 
There are no required properties, so simply throw an exception. Other providers may have support for properties on Validator, but the RI doesn't

Throws:
javax.xml.bind.PropertyException