|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebmwebsourcing.sla.agreement.descriptor.original.AgreementDescriptorBuilder
public final class AgreementDescriptorBuilder
This Class defines the Agreement Descriptor builder for the kernel.
Note that this Builder is based on the original Agreement schema; it doesn't control the EndpointReference extension parts.
This class is thread-safe.
| Field Summary | |
|---|---|
static java.lang.String |
AGREEMENT_NAMESPACE
Agreeement Namespace |
static java.lang.String |
XSD_AGREEMENT
Agreeement schema name |
static java.lang.String |
XSD_AGREEMENT_EXTENSIONS
Agreeement Extensions schema name |
| Method Summary | |
|---|---|
static Agreement |
buildJavaAgreementDescriptor(java.io.InputStream agreementDescriptorStream)
Build the Java bindings from the Agreement descriptor in XML form. |
static javax.xml.bind.JAXBElement<Agreement> |
buildJavaJAxbAgreementDescriptor(java.io.InputStream agreementDescriptorStream)
|
static org.w3c.dom.Element |
buildXmlAgreementDescriptor(Agreement agreementDescriptor)
Build the XML nodes from the EndpointReference descriptor in Java classes form. |
static org.w3c.dom.Element |
buildXmlEndpointDescriptor(com.ebmwebsourcing.addressing.descriptor.Endpoint epr)
|
static org.w3c.dom.Element |
buildXmlGuaranteeDescriptor(GuaranteeTermType guarantee)
|
static javax.xml.bind.JAXBElement<EndpointReferenceType> |
buildXmlJaxbEndpointDescriptor(com.ebmwebsourcing.addressing.descriptor.Endpoint epr)
|
static java.lang.String |
buildXmlStringAgreementdescriptor(Agreement agreementDescriptor)
Build the XML String from the Agreement descriptor in Java classes form. |
static javax.xml.bind.JAXBContext |
getJaxbContext()
|
static javax.xml.bind.Marshaller |
getMarshaller()
Get the marshaller instance. |
static javax.xml.bind.Unmarshaller |
getUnmarshaller()
|
static void |
setJaxbContext(javax.xml.bind.JAXBContext jaxbContext)
|
static void |
setMarshaller(javax.xml.bind.Marshaller marshaller)
|
static void |
validateAgreementDescriptor(java.io.InputStream agreementDescriptorStream)
Validate the given Agreement descriptor against the EndpointReference schema. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String AGREEMENT_NAMESPACE
public static final java.lang.String XSD_AGREEMENT
public static final java.lang.String XSD_AGREEMENT_EXTENSIONS
| Method Detail |
|---|
public static void validateAgreementDescriptor(java.io.InputStream agreementDescriptorStream)
throws AgreementDescriptorException
EndpointReferenceDescriptorStream -
EndpointReferenceException - The validation has failed
EndpointReferenceDescriptorException - Failed to create the validator
AgreementDescriptorExceptionpublic static Agreement buildJavaAgreementDescriptor(java.io.InputStream agreementDescriptorStream) throws AgreementDescriptorException
AgreementDescriptorStream - The Agreement descriptor in XML form
AgreementDescriptorException - The exception raised during the unmarshaller creation or the
exception raised during the build of the java bindings.public static javax.xml.bind.JAXBElement<Agreement> buildJavaJAxbAgreementDescriptor(java.io.InputStream agreementDescriptorStream) throws AgreementDescriptorException
AgreementDescriptorExceptionpublic static org.w3c.dom.Element buildXmlAgreementDescriptor(Agreement agreementDescriptor) throws AgreementDescriptorException
EndpointReferenceDescriptorClass - The EndpointReference Descriptor root classEndpointReferenceDescriptorNode - The XML Node to fill with the EndpointReference descriptor XML nodes
EndpointReferenceDescriptorException - The exception raised during the unmarshaller creation or the
exception raised during the build of the XML nodes.
AgreementDescriptorExceptionpublic static org.w3c.dom.Element buildXmlGuaranteeDescriptor(GuaranteeTermType guarantee) throws AgreementDescriptorException
AgreementDescriptorException
public static org.w3c.dom.Element buildXmlEndpointDescriptor(com.ebmwebsourcing.addressing.descriptor.Endpoint epr)
throws AgreementDescriptorException
AgreementDescriptorExceptionpublic static javax.xml.bind.JAXBElement<EndpointReferenceType> buildXmlJaxbEndpointDescriptor(com.ebmwebsourcing.addressing.descriptor.Endpoint epr) throws AgreementDescriptorException
AgreementDescriptorExceptionpublic static java.lang.String buildXmlStringAgreementdescriptor(Agreement agreementDescriptor) throws AgreementDescriptorException
AgreementDescriptorClass - The Agreement Descriptor root class
AgreementDescriptorException - The exception raised during the marshaller creation or the
exception raised during the build of the XML string.
public static javax.xml.bind.Marshaller getMarshaller()
throws AgreementDescriptorException
AgreementDescriptorException - The exception raised during the marshaller creation.
public static javax.xml.bind.Unmarshaller getUnmarshaller()
throws AgreementDescriptorException
AgreementDescriptorExceptionpublic static void setMarshaller(javax.xml.bind.Marshaller marshaller)
marshaller - the marshaller to setpublic static javax.xml.bind.JAXBContext getJaxbContext()
public static void setJaxbContext(javax.xml.bind.JAXBContext jaxbContext)
jaxbContext - the jaxbContext to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||