|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OutputHandler
The interface used by the GraphMLHandler
for writing data attributes to the GraphML.
Method Summary | |
---|---|
java.util.Collection |
getDataTagAttributes()
Gets the XML attributes that should be added to the data element. |
java.util.Collection |
getKeyDefinitionAttributes()
Gets the XML attributes that should be added to the key definition in the GraphML key element. |
WritePrecedence |
getPrecedence()
Gets the write precedence that is associated with this instance. |
boolean |
isDefaultValue(GraphMLWriteContext ctx)
Determines whether in the current context, the value is the default value and therefore no data element needs to be written. |
void |
writeKeyDefinitionContent(GraphMLWriteContext ctx)
Writes the contents of the key definition. |
void |
writeValue(GraphMLWriteContext ctx)
Actually writes the value for the current context. |
Method Detail |
---|
WritePrecedence getPrecedence()
Registered output handlers are written either before or after the (optional) child content of the governing GraphML element.
WritePrecedence
java.util.Collection getKeyDefinitionAttributes()
GraphMLXmlAttribute
that represent
the attribute data.
java.util.Collection getDataTagAttributes()
GraphMLXmlAttribute
that represent
the attribute data.
boolean isDefaultValue(GraphMLWriteContext ctx) throws GraphMLWriteException
ctx
- The context.
true
if for the current context the default value
applies and therefore no data element needs to be written;
false
otherwise.
GraphMLWriteException
void writeValue(GraphMLWriteContext ctx) throws GraphMLWriteException
At the time this method is called, the surrounding
'data'
element has already been written.
ctx
- The context.
GraphMLWriteException
void writeKeyDefinitionContent(GraphMLWriteContext ctx) throws GraphMLWriteException
At the time this method is called, the surrounding 'key'
element has already been written.
However no 'default'
element is written by the framework.
ctx
- The context.
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 |