|
||||||||||
| 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 String |
JBI_DESCRIPTOR_RESOURCE
Standard location to the JBI Descriptor resource. |
static String |
XSD_JBI
JBI schema name |
| Method Summary | |
|---|---|
static Jbi |
buildJavaJBIDescriptor(InputStream jbiDescriptorStream)
Build the Java bindings from the JBI descriptor in XML form. |
static void |
buildXmlJBIdescriptor(Jbi jbiDescriptorClass,
Node jbiDescriptorNode)
Build the XML nodes from the JBI descriptor in Java classes form. |
static String |
buildXmlStringJBIdescriptor(Jbi jbiDescriptorClass)
Deprecated. Because of an encoding problem, use writeJBIdescriptor(Jbi, OutputStream) |
static void |
validateJBIDescriptor(InputStream jbiDescriptorStream)
Validate the given JBI descriptor against the JBI schema. |
static void |
writeJBIdescriptor(Jbi jbiDescriptorClass,
OutputStream jbiDescrOutputStream)
Write the JBI descriptor XML into an output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String XSD_JBI
public static final String JBI_DESCRIPTOR_RESOURCE
| Method Detail |
|---|
public static void validateJBIDescriptor(InputStream jbiDescriptorStream) throws JBIDescriptorException
jbiDescriptorStream -
JBIException - The validation has failed
JBIDescriptorException - Failed to create the validatorpublic static Jbi buildJavaJBIDescriptor(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, 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.@Deprecated public static String buildXmlStringJBIdescriptor(Jbi jbiDescriptorClass) throws JBIDescriptorException
writeJBIdescriptor(Jbi, OutputStream)
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.public static void writeJBIdescriptor(Jbi jbiDescriptorClass, OutputStream jbiDescrOutputStream) throws JBIDescriptorException
Write the JBI descriptor XML into an output stream.
Note: The output stream is not close by this method.
jbiDescriptorClass - The JBI Descriptor root classjbiDescrOutputStream - The output stream where the JBI descriptor will be written
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 | |||||||||