|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openvpms.esci.ubl.io.UBLDocumentWriter
public class UBLDocumentWriter
UBL Document writer.
Constructor Summary | |
---|---|
UBLDocumentWriter(UBLDocumentContext context)
Constructs a UBLDocumentWriter. |
Method Summary | |
---|---|
void |
setFormat(boolean format)
Determines if the output should be formatted. |
void |
setFragment(boolean fragment)
Determines if the object is a fragment of a document. |
void |
write(DocumentReferenceType reference,
OutputStream stream)
Writes a document reference to a stream. |
void |
write(DocumentReferenceType reference,
OutputStream stream,
boolean validate)
Writes a simple order response to a stream, optionally validating it. |
void |
write(Object object,
OutputStream stream)
Writes an UBL object to a stream. |
void |
write(Object object,
OutputStream stream,
boolean validate)
Writes an UBL object to a stream, optionally performing validation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UBLDocumentWriter(UBLDocumentContext context)
context
- the contextMethod Detail |
---|
public void setFormat(boolean format)
format
- if true, format the outputpublic void setFragment(boolean fragment)
fragment
- if true, suppress document level declarationspublic void write(Object object, OutputStream stream) throws JAXBException
object
- the object to writestream
- the stream to write to
JAXBException
- for any error
IllegalArgumentException
- if object is not a supported typepublic void write(Object object, OutputStream stream, boolean validate) throws JAXBException
object
- the object to writestream
- the stream to write tovalidate
- if true validate the object against it's schema
JAXBException
- for any error
IllegalArgumentException
- if object is not a supported typepublic void write(DocumentReferenceType reference, OutputStream stream) throws JAXBException
reference
- the reference to writestream
- the stream to write to
JAXBException
- for any errorpublic void write(DocumentReferenceType reference, OutputStream stream, boolean validate) throws JAXBException
reference
- the simple order response to writestream
- the stream to write tovalidate
- if true validate the order against it's schema
JAXBException
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |