org.openvpms.esci.ubl.io
Class UBLDocumentContext

java.lang.Object
  extended by org.openvpms.esci.ubl.io.UBLDocumentContext

public class UBLDocumentContext
extends Object

Helper for reading and writing UBL documents.

Version:
$LastChangedDate: 2006-05-02 05:16:31Z $
Author:
OpenVPMS Team

Constructor Summary
UBLDocumentContext()
          Constructs a UBLDocumentContext.
 
Method Summary
 UBLDocumentReader createReader()
          Creates a new UBL document reader.
 UBLDocumentWriter createWriter()
          Creates a new UBL document writer.
protected  JAXBContext getContext()
          Returns the JAXB context.
 Schema getSchema()
          Returns the UBL schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UBLDocumentContext

public UBLDocumentContext()
                   throws JAXBException,
                          SAXException
Constructs a UBLDocumentContext. I

Throws:
JAXBException - if the JAXB context cannot be created
SAXException - if UBL document schemas cannot be read
IllegalStateException - if a schema resource doesn't exist
Method Detail

createReader

public UBLDocumentReader createReader()
Creates a new UBL document reader.

Returns:
a new reader

createWriter

public UBLDocumentWriter createWriter()
Creates a new UBL document writer.

Returns:
a new writer

getSchema

public Schema getSchema()
Returns the UBL schema.

Returns:
the UBL schema

getContext

protected JAXBContext getContext()
Returns the JAXB context.

Returns:
the JAXB context


Copyright © 2010-2011 OpenVPMS. All Rights Reserved..