SMILA (incubation) API documentation

org.eclipse.smila.connectivity.framework.schema.internal
Class JaxbPluginContext

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.schema.internal.JaxbPluginContext

public class JaxbPluginContext
extends java.lang.Object

The Class JaxbPluginContext.


Constructor Summary
JaxbPluginContext()
           
 
Method Summary
 javax.xml.bind.Unmarshaller createValidatingUnmarshaller()
          Creates the validating unmarshaller.
 javax.xml.bind.JAXBContext getContext()
          Gets the context.
 java.lang.String getId()
          Gets the id.
 void initilize()
          Initilize.
 void setId(java.lang.String id)
          Sets the id.
 javax.xml.bind.JAXBElement unmarshall(java.lang.Object v, java.lang.String className)
          Unmarshall.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxbPluginContext

public JaxbPluginContext()
Method Detail

getId

public java.lang.String getId()
Gets the id.

Returns:
the id

setId

public void setId(java.lang.String id)
Sets the id.

Parameters:
id - the new id

getContext

public javax.xml.bind.JAXBContext getContext()
                                      throws SchemaNotFoundException,
                                             javax.xml.bind.JAXBException
Gets the context.

Returns:
the context
Throws:
javax.xml.bind.JAXBException - the JAXB exception
SchemaNotFoundException - the index order schema not found exception

initilize

public void initilize()
               throws SchemaNotFoundException,
                      javax.xml.bind.JAXBException
Initilize.

Throws:
SchemaNotFoundException - the index order schema not found exception
javax.xml.bind.JAXBException - the JAXB exception

unmarshall

public javax.xml.bind.JAXBElement unmarshall(java.lang.Object v,
                                             java.lang.String className)
                                      throws javax.xml.bind.JAXBException,
                                             java.lang.ClassNotFoundException,
                                             SchemaNotFoundException
Unmarshall.

Parameters:
v - the v
className - the clazz
Returns:
the jAXB element
Throws:
javax.xml.bind.JAXBException - the JAXB exception
java.lang.ClassNotFoundException - the class not found exception
SchemaNotFoundException - the index order schema not found exception

createValidatingUnmarshaller

public javax.xml.bind.Unmarshaller createValidatingUnmarshaller()
                                                         throws javax.xml.bind.JAXBException,
                                                                SchemaNotFoundException
Creates the validating unmarshaller.

Returns:
the unmarshaller
Throws:
javax.xml.bind.JAXBException - the JAXB exception
SchemaNotFoundException - the index order schema not found exception

SMILA (incubation) API documentation