|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.io.graphml.output.AbstractOutputHandler y.io.graphml.graph2d.PostprocessorOutputHandler
public class PostprocessorOutputHandler
This output handler writes out a list of YModule
instances and adds
postprocessor
instructions for them.
Field Summary | |
---|---|
static java.lang.Object |
PROCESSORS_DPKEY
Deprecated. Data provider key for all registered post-processors that should be written by this handler. |
Constructor Summary | |
---|---|
PostprocessorOutputHandler()
Deprecated. |
Method Summary | |
---|---|
protected java.lang.String |
encodeType(YModule module,
GraphMLWriteContext context)
Deprecated. Returns the external name for the given module. |
java.util.Collection |
getKeyDefinitionAttributes()
Deprecated. Returns all XML attributes of the key element. |
WritePrecedence |
getPrecedence()
Deprecated. Gets the write precedence for the handler. |
protected java.lang.Object |
getValue(GraphMLWriteContext context,
java.lang.Object key)
Deprecated. Callback method that obtains the data for the given key. |
void |
writeKeyDefinitionContent(GraphMLWriteContext ctx)
Deprecated. Writes the contents of the key definition. |
protected void |
writeValueCore(GraphMLWriteContext context,
java.lang.Object data)
Deprecated. Core write that performs the actual writing of the data. |
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.Object PROCESSORS_DPKEY
Graph
instance.
The associated value has to be either a YModule
instance
or a List
instance holding only YModule
instances.
Constructor Detail |
---|
public PostprocessorOutputHandler()
Method Detail |
---|
public WritePrecedence getPrecedence()
AbstractOutputHandler
getPrecedence
in interface OutputHandler
getPrecedence
in class AbstractOutputHandler
AbstractOutputHandler.setPrecedence(WritePrecedence)
public java.util.Collection getKeyDefinitionAttributes()
AbstractOutputHandler
key
element.
getKeyDefinitionAttributes
in interface OutputHandler
getKeyDefinitionAttributes
in class AbstractOutputHandler
key
element.AbstractOutputHandler.addNameToKeyDefinition(String)
,
AbstractOutputHandler.addScopeToKeyDefinition(y.io.graphml.KeyScope)
,
AbstractOutputHandler.addTypeToKeyDefinition(y.io.graphml.KeyType)
,
AbstractOutputHandler.addUriToKeyDefinition(String)
public void writeKeyDefinitionContent(GraphMLWriteContext ctx)
AbstractOutputHandler
Depending on whether AbstractOutputHandler.setWriteKeyDefault(boolean)
is enabled and AbstractOutputHandler.hasDefaultValueAssigned()
is true
, this method will write the GraphML 'default' element and use AbstractOutputHandler.writeValueCore(y.io.graphml.output.GraphMLWriteContext,Object)
to serialize the AbstractOutputHandler.getDefaultValue()
.
writeKeyDefinitionContent
in interface OutputHandler
writeKeyDefinitionContent
in class AbstractOutputHandler
ctx
- The context.protected void writeValueCore(GraphMLWriteContext context, java.lang.Object data)
AbstractOutputHandler
writeValueCore
in class AbstractOutputHandler
context
- The context.data
- The data.protected java.lang.String encodeType(YModule module, GraphMLWriteContext context)
By default, this method returns the module's qualified class name.
Note: To prevent obfuscation from breaking post-processing support, an explicit name mapping should be specified for class names of modules that are used as post-processors.
NameMapper
,
PostprocessorInputHandler.newModule(String, y.io.graphml.input.GraphMLParseContext)
protected java.lang.Object getValue(GraphMLWriteContext context, java.lang.Object key) throws GraphMLWriteException
AbstractOutputHandler
getValue
in class AbstractOutputHandler
context
- The context.key
- The key.
GraphMLWriteException
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |