|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.descriptor.original.JBIDescriptorBuilder
public final class JBIDescriptorBuilder
This Class defines the JBI Descriptor builder for the kernel.
Note that this Builder is based on the original JBI schema; it doesn't control the JBI extension parts.
This class is thread-safe.
| Field Summary | |
|---|---|
static java.lang.String |
JBI_DESCRIPTOR_RESOURCE
Standard location to the JBI Descriptor resource. |
static java.lang.String |
XSD_JBI
JBI schema name |
| Method Summary | |
|---|---|
static Jbi |
buildJavaJBIDescriptor(java.io.InputStream jbiDescriptorStream)
Build the Java bindings from the JBI descriptor in XML form. |
static void |
buildXmlJBIdescriptor(Jbi jbiDescriptorClass,
org.w3c.dom.Node jbiDescriptorNode)
Build the XML nodes from the JBI descriptor in Java classes form. |
static java.lang.String |
buildXmlStringJBIdescriptor(Jbi jbiDescriptorClass)
Build the XML String from the JBI descriptor in Java classes form. |
static void |
validateJBIDescriptor(java.io.InputStream jbiDescriptorStream)
Validate the given JBI descriptor against the JBI 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 XSD_JBI
public static final java.lang.String JBI_DESCRIPTOR_RESOURCE
| Method Detail |
|---|
public static void validateJBIDescriptor(java.io.InputStream jbiDescriptorStream)
throws JBIDescriptorException
jbiDescriptorStream -
JBIException - The validation has failed
JBIDescriptorException - Failed to create the validatorpublic static Jbi buildJavaJBIDescriptor(java.io.InputStream jbiDescriptorStream) throws JBIDescriptorException
Build the Java bindings from the JBI descriptor in XML form. The validation against the JBI schema is processed during the transformation.
Note: The input stream is closed because of the XML parser.
jbiDescriptorStream - The JBI descriptor in XML form as InputStream
Jbi) of the JBI descriptor
JBIDescriptorException - The exception raised during the unmarshaller creation or the
exception raised during the build of the java bindings.public static void buildXmlJBIdescriptor(Jbi jbiDescriptorClass, org.w3c.dom.Node jbiDescriptorNode) throws JBIDescriptorException
jbiDescriptorClass - The JBI Descriptor root classjbiDescriptorNode - The XML Node to fill with the JBI descriptor XML nodes
JBIDescriptorException - The exception raised during the unmarshaller creation or the
exception raised during the build of the XML nodes.public static java.lang.String buildXmlStringJBIdescriptor(Jbi jbiDescriptorClass) throws JBIDescriptorException
jbiDescriptorClass - The JBI Descriptor root class
JBIDescriptorException - The exception raised during the marshaller creation or the exception
raised during the build of the XML string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||