|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.evolvica.engine.DescriptorWriter
Writer for operator descriptors.
Constructor Summary | |
DescriptorWriter()
|
Method Summary | |
static org.w3c.dom.Element |
createAttributeNode(org.w3c.dom.Document document,
AttributeDescriptor descriptor)
Creates an XML element from a given attribute descriptor. |
static org.w3c.dom.Document |
createDocument(OperatorDescriptor descriptor)
Creates a XML document from a given algorithm. |
static void |
write(org.w3c.dom.Document document,
java.io.OutputStream stream)
Writes an XML algorithm document to an output stream. |
static void |
write(org.w3c.dom.Document document,
java.net.URI uri)
Writes an XML document to the given URI. |
static void |
write(OperatorDescriptor descriptor,
java.io.OutputStream stream)
Writes an operator descriptor to an output stream. |
static void |
write(OperatorDescriptor descriptor,
java.net.URI uri)
Writes an operator descriptor to the given URI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DescriptorWriter()
Method Detail |
public static void write(org.w3c.dom.Document document, java.net.URI uri) throws SerializationException
document
- XML documenturi
- URI to write to (must be a directory, but is not checked!)
SerializationException
- thrown in case the serialization failspublic static void write(org.w3c.dom.Document document, java.io.OutputStream stream) throws SerializationException
document
- document to writestream
- output stream to write to
SerializationException
- thrown in case the serialization failspublic static void write(OperatorDescriptor descriptor, java.io.OutputStream stream) throws SerializationException
descriptor
- descriptor to be writtenstream
- output stream to write to
SerializationException
- thrown in case the XML document could not be createdpublic static void write(OperatorDescriptor descriptor, java.net.URI uri) throws SerializationException
descriptor
- descriptor to be writtenuri
- URI to write to
SerializationException
- thrown in case the XML document could not be createdpublic static org.w3c.dom.Document createDocument(OperatorDescriptor descriptor) throws javax.xml.parsers.ParserConfigurationException, javax.xml.parsers.FactoryConfigurationError
descriptor
- operator descriptor to be converted into an XML document
SerializationException
- thrown in case the document could not be created
javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.FactoryConfigurationError
public static org.w3c.dom.Element createAttributeNode(org.w3c.dom.Document document, AttributeDescriptor descriptor)
document
- XML document used for element creationdescriptor
- attribute descriptor
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |