com.ebmwebsourcing.commons.schema.impl
Class SchemaReader
java.lang.Object
com.ebmwebsourcing.commons.schema.api.abstractElmt.AbstractSchemaReader
com.ebmwebsourcing.commons.schema.impl.SchemaReader
- All Implemented Interfaces:
- SchemaReader
public class SchemaReader
- extends AbstractSchemaReader
- implements SchemaReader
- Author:
- Nicolas Salatge - eBM WebSourcing
|
Method Summary |
static javax.xml.bind.JAXBContext |
getJaxbContext()
|
static javax.xml.bind.Unmarshaller |
getUnMarshaller()
Get the unmarshaller instance. |
Schema |
readSchema(org.w3c.dom.Document schemaDocument)
Read the specified Schema document into a Schema definition. |
Schema |
readSchema(java.net.URI schemaURI)
Read the Schema document accessible via the specified
URI into a Schema definition. |
Schema |
readSchema(java.net.URI schemaUri,
javax.xml.transform.dom.DOMSource input)
Read a Schema document into a Schema definition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemaReader
public SchemaReader()
getUnMarshaller
public static javax.xml.bind.Unmarshaller getUnMarshaller()
throws SchemaException
- Get the unmarshaller instance.
- Returns:
- the unmarshaller instance
- Throws:
SchemaException - The exception raised during the unmarshaller creation.
getJaxbContext
public static javax.xml.bind.JAXBContext getJaxbContext()
- Returns:
- the jaxbContext
readSchema
public Schema readSchema(java.net.URI schemaURI)
throws SchemaException
- Description copied from interface:
SchemaReader
- Read the Schema document accessible via the specified
URI into a Schema definition.
- Specified by:
readSchema in interface SchemaReader
- Parameters:
schemaURI - a URI (can be a filename or URL) pointing to a
Schema XML definition.
- Returns:
- the definition.
- Throws:
SchemaException
readSchema
public Schema readSchema(org.w3c.dom.Document schemaDocument)
throws SchemaException
- Description copied from interface:
SchemaReader
- Read the specified Schema document into a Schema definition.
- Specified by:
readSchema in interface SchemaReader
- Parameters:
schemaDocument - the Schema document, an XML
document obeying the Schema schema.
- Returns:
- the definition described in the document.
- Throws:
SchemaException
readSchema
public Schema readSchema(java.net.URI schemaUri,
javax.xml.transform.dom.DOMSource input)
throws SchemaException
- Description copied from interface:
SchemaReader
- Read a Schema document into a Schema definition.
- Specified by:
readSchema in interface SchemaReader
- Parameters:
schemaUri - the uri of the schemainput - an InputSource pointing to the
Schema document, an XML document obeying the Schema schema.
- Returns:
- the definition described in the document pointed to
by the InputSource.
- Throws:
SchemaException
Copyright © 2008 eBM WebSourcing. All Rights Reserved.