|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.component.framework.jbidescriptor.JBIDescriptorBuilder
public class JBIDescriptorBuilder
CDK JBI descriptor Builder. Provide marshalling/unmarshalling features. Created on 22 mai 2008
| Field Summary | |
|---|---|
static String |
ABSTRACT_CDKJBI_XSD
|
static String |
CDKEXTENSIONS_XSD
Extensions schema |
static String |
CDKJBI_XSD
CDK schema |
| Constructor Summary | |
|---|---|
JBIDescriptorBuilder()
|
|
| Method Summary | |
|---|---|
static Jbi |
buildJavaJBIDescriptor(InputStream jbiDescriptorStream)
Build the Jbi Java binding from the given JBI descriptor in XML Stream form. |
static Jbi |
buildJavaJBIDescriptor(Reader jbiDescriptorReader)
Build the Jbi Java binding from the given JBI descriptor in XML character reader form. |
static Document |
buildXmlJBIdescriptor(Jbi jbiDescriptorClass)
Build the XML nodes tree from the JBI descriptor in Java classes form. |
static void |
buildXmlJBIdescriptor(Jbi jbiDescriptorClass,
Node jbiDescriptorNode)
Build the XML nodes tree from the JBI descriptor in Java classes form. |
static void |
buildXmlJBIdescriptor(Jbi jbiDescriptorClass,
OutputStream ouputStream)
Build the output Stream from the JBI descriptor in Java classes form. |
static void |
close()
Frees singleton resources. |
static void |
validateJBIDescriptor(InputStream jbiDescriptorStream)
Validate the given JBI descriptor against the CDK JBI schema. |
static void |
validateJBIDescriptor(InputStream jbiDescriptorStream,
String componentName)
Validate the given JBI descriptor against the component implementation JBI schemas. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CDKJBI_XSD
public static final String ABSTRACT_CDKJBI_XSD
public static final String CDKEXTENSIONS_XSD
| Constructor Detail |
|---|
public JBIDescriptorBuilder()
| Method Detail |
|---|
public static final void close()
public static void validateJBIDescriptor(InputStream jbiDescriptorStream)
throws CDKJBIDescriptorException
jbiDescriptorStream -
CDKJBIDescriptorException
public static void validateJBIDescriptor(InputStream jbiDescriptorStream,
String componentName)
throws CDKJBIDescriptorException
jbiDescriptorStream -
CDKJBIDescriptorException - FIXME: The structure of XSDs with the redefine feature
doesn't work, maybe a Xerces bug?
public static Jbi buildJavaJBIDescriptor(Reader jbiDescriptorReader)
throws CDKJBIDescriptorException
Build the Jbi Java binding from the given JBI descriptor in XML character reader form.
Note : MUST be used to parse a JBI descriptor available as
String.
jbiDescriptorReader - the XML JBI descriptor character reader
CDKJBIDescriptorException - impossible to create the Java bindings
public static Jbi buildJavaJBIDescriptor(InputStream jbiDescriptorStream)
throws CDKJBIDescriptorException
Build the Jbi Java binding from the given JBI descriptor in XML Stream form.
Note : if the stream is initialized from a String, prefer to use
jbiDescriptorStream - the XML JBI descriptor stream
CDKJBIDescriptorException - impossible to create the Java bindings
public static void buildXmlJBIdescriptor(Jbi jbiDescriptorClass,
Node jbiDescriptorNode)
throws CDKJBIDescriptorException
jbiDescriptorClass - The JBI Descriptor root classjbiDescriptorNode - The XML Node to fill with the JBI descriptor XML nodes
JBIDescriptorException - The exception raised during the marshaller creation or the
exception raised during the build of the XML nodes.
CDKJBIDescriptorException
public static Document buildXmlJBIdescriptor(Jbi jbiDescriptorClass)
throws CDKJBIDescriptorException
jbiDescriptorClass - The JBI Descriptor root class
JBIDescriptorException - The exception raised during the marshaller creation or the
exception raised during the build of the XML nodes.
CDKJBIDescriptorException
public static void buildXmlJBIdescriptor(Jbi jbiDescriptorClass,
OutputStream ouputStream)
throws CDKJBIDescriptorException
jbiDescriptorClass - The JBI Descriptor root classjbiDescriptorNode - The output Stream to fill with the JBI descriptor
JBIDescriptorException - The exception raised during the marshaller creation or the
exception raised during the build of the XML nodes.
CDKJBIDescriptorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||