Class WorkflowGraphMLYWriterImpl
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
-
- de.uni_trier.wi2.procake.data.io.IOImpl
-
- de.uni_trier.wi2.procake.data.io.xml.xerces_writerImpl.XMLWriterImpl
-
- de.uni_trier.wi2.procake.data.io.xml.xerces_writerImpl.WorkflowGraphMLYWriterImpl
-
- All Implemented Interfaces:
GraphMLTags,IO,Writer
public class WorkflowGraphMLYWriterImpl extends XMLWriterImpl implements GraphMLTags
Writes GraphML-XML output from the CAKE III Graph-object-model. Output for interpretation with YEd-Editor.- Author:
- Alexander Stromer
-
-
Field Summary
Fields Modifier and Type Field Description static StringWRITERNAMEConstantWRITERNAME="XercesSaxWorkflowGraphMLYWriter"-
Fields inherited from class de.uni_trier.wi2.procake.data.io.xml.xerces_writerImpl.XMLWriterImpl
filename, outputStream
-
Fields inherited from interface de.uni_trier.wi2.procake.data.io.xml.GraphMLTags
ATT_ARROWS_SOURCE, ATT_ARROWS_TARGET, ATT_DATA_KEY, ATT_EDGE_SOURCE, ATT_EDGE_TARGET, ATT_FILL_COLOR, ATT_GRAPH_EDGEDEFAULT, ATT_GRAPH_ID, ATT_KEY_FOR, ATT_KEY_ID, ATT_KEY_YFILESTYPE, ATT_NODE_ID, PREFIX_GRAPHML, PREFIX_Y, SCHEMA_LOCATION, SCHEMA_LOCATION_Y, TAG_DATA, TAG_EDGE, TAG_GRAPH, TAG_GRAPHML, TAG_KEY, TAG_NODE, TAG_Y_ARROWS, TAG_Y_EDGELABEL, TAG_Y_FILL, TAG_Y_NODELABEL, TAG_Y_POLYLINEEDGE, TAG_Y_SHAPENODE, URI_GRAPHML, URI_Y
-
Fields inherited from interface de.uni_trier.wi2.procake.utils.io.IO
COMPONENT, COMPONENT_KEY, DEFAULT_ENCODING, LOG_CONTENTHANDLER_NOT_FOUND, LOG_FILE_NOT_FOUND, LOG_IO_EXCEPTION, LOG_READER_NOT_FOUND, LOG_SAX_EXCEPTION, LOG_UNKNOWN_PARAMETER, LOG_WRITER_NOT_FOUND, LOG_WRONG_PARAMATER_TYPE, RESOURCE_XML
-
Fields inherited from interface de.uni_trier.wi2.procake.utils.io.Writer
COMPONENT, COMPONENT_KEY, LOG_CANNOT_WRITE, LOG_NO_WRITER_FOUND, LOG_UNEXPECTED_IOEXCEPTION
-
-
Constructor Summary
Constructors Constructor Description WorkflowGraphMLYWriterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IOcopy()overwritten copy-method from Object; use it to copy a complete operatorStringgetDescription()A description of the io component.StringgetName()Each io component must have a name that is used inIOFactory.newIO(String).voidinsertNamespace(XMLSchemaBasedWriter writer)Adds the namespace-imports of this handler to the given xmlWriter.booleanisHandlerFor(Class value)Checks if the io component is capable to perform the operation for objects of this class.voidstore(Object value, XMLSchemaBasedWriter writer)To embed xml writers into another one it must be possible to specify the parentXMLSchemaBasedWriteras well as a prefix that should be probably used.-
Methods inherited from class de.uni_trier.wi2.procake.data.io.xml.xerces_writerImpl.XMLWriterImpl
correctPrefix, createXMLWriter, setFilename, setOutputStream, store, storeWithFamiliarWriter
-
Methods inherited from class de.uni_trier.wi2.procake.data.io.IOImpl
getFamily, getParameters, postInit, preInit, setFamily
-
Methods inherited from class de.uni_trier.wi2.procake.utils.composition.FactoryObjectImplementation
getParameter, initParametersBasedOn
-
-
-
-
Field Detail
-
WRITERNAME
public static final String WRITERNAME
ConstantWRITERNAME="XercesSaxWorkflowGraphMLYWriter"- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
public String getDescription()
A description of the io component. The description should contain the file format and the classes that can be managed.- Specified by:
getDescriptionin interfaceIO- Overrides:
getDescriptionin classIOImpl- Returns:
- a description of the io component
-
getName
public String getName()
Each io component must have a name that is used inIOFactory.newIO(String). The name must be unique thus it is usefull to use a short description or to the class name (this.getClass().getName()).
-
isHandlerFor
public boolean isHandlerFor(Class value)
Checks if the io component is capable to perform the operation for objects of this class.A typical implementation looks like:
public boolean isHandlerFor(Class value) { if (DataObject.class.isAssignableFrom(value)) return true; return false; }- Specified by:
isHandlerForin interfaceIO- Parameters:
value- The class that has to be checked.- Returns:
- Results
trueif the class can oeprate with the given class.
-
copy
public IO copy()
overwritten copy-method from Object; use it to copy a complete operator
-
insertNamespace
public void insertNamespace(XMLSchemaBasedWriter writer)
Adds the namespace-imports of this handler to the given xmlWriter.- Specified by:
insertNamespacein classXMLWriterImpl- Parameters:
writer- aXMLSchemaBasedWriterobject
-
store
public void store(Object value, XMLSchemaBasedWriter writer) throws CakeIOException
To embed xml writers into another one it must be possible to specify the parentXMLSchemaBasedWriteras well as a prefix that should be probably used. If a parent writer is specified, no header will be written.If the writer does not support XML writing, the writer should throw an
UnsupportedOperationException.public void store(Object value, String prefix, XMLWriter writer) throws CakeIOException { throw new UnsupportedOperationException(); }- Specified by:
storein classXMLWriterImpl- Parameters:
value- aObjectobjectwriter- A parent writer that is used.- Throws:
CakeIOException- if any.
-
-