|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.output.AbstractOutputHandler
y.io.graphml.graph2d.PostprocessorOutputHandler
public class PostprocessorOutputHandler
This output handler writes out a list of YModules and adds postprocessor instructions for them.
| Field Summary | |
|---|---|
static Object |
PROCESSORS_DPKEY
DataProvider key for all registered postprocessors that should be written by this handler. |
| Constructor Summary | |
|---|---|
PostprocessorOutputHandler()
|
|
| Method Summary | |
|---|---|
Collection |
getKeyDefinitionAttributes()
Returns all XML attributes of the key element. |
WritePrecedence |
getPrecedence()
Gets the write precedence for the handler. |
protected Object |
getValue(GraphMLWriteContext context,
Object key)
Callback method that obtains the data for the given key. |
void |
writeKeyDefinitionContent(GraphMLWriteContext ctx)
Writes the contents of the key definition. |
protected void |
writeValueCore(GraphMLWriteContext context,
Object data)
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 Object PROCESSORS_DPKEY
| Constructor Detail |
|---|
public PostprocessorOutputHandler()
| Method Detail |
|---|
public WritePrecedence getPrecedence()
AbstractOutputHandler
getPrecedence in interface OutputHandlergetPrecedence in class AbstractOutputHandlerAbstractOutputHandler.setPrecedence(WritePrecedence)public Collection getKeyDefinitionAttributes()
AbstractOutputHandlerkey element.
Key scope, Key type, name and uri are added by the corresponding addXXXToKeDefinition
methods and should be added here.
getKeyDefinitionAttributes in interface OutputHandlergetKeyDefinitionAttributes in class AbstractOutputHandlerkey 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 OutputHandlerwriteKeyDefinitionContent in class AbstractOutputHandlerctx - The context.
protected void writeValueCore(GraphMLWriteContext context,
Object data)
AbstractOutputHandler
writeValueCore in class AbstractOutputHandlercontext - The context.data - The data.
protected Object getValue(GraphMLWriteContext context,
Object key)
throws GraphMLWriteException
AbstractOutputHandler
getValue in class AbstractOutputHandlerGraphMLWriteExceptioncontext - The context.key - The key.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||