public interface IOutputHandler
GraphMLIOHandler
for writing data to the GraphML.Modifier and Type | Method and Description |
---|---|
IEnumerable<GraphMLXmlAttribute> |
getDataTagAttributes()
Gets the XML attributes that should be added to the data element.
|
IEnumerable<GraphMLXmlAttribute> |
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(IWriteContext context)
Determines whether in the current context, the value is the default value and therefore no data element needs to be
written.
|
void |
writeKeyDefinitionContent(IWriteContext context)
Writes the contents of the key definition.
|
void |
writeValue(IWriteContext context)
Actually writes the value for the current context.
|
IEnumerable<GraphMLXmlAttribute> getDataTagAttributes()
IEnumerable<GraphMLXmlAttribute> getKeyDefinitionAttributes()
WritePrecedence getPrecedence()
Registered output handlers are written either before or after the (optional) child content of the governing GraphML element.
WritePrecedence
boolean isDefaultValue(IWriteContext context)
context
- The context.true
if for the current context the default value applies and therefore no data element needs to be written.void writeKeyDefinitionContent(IWriteContext context) throws IOException
At the time this method is called, the surrounding 'key' element has already been written. However no 'default' element is written by the framework.
IOException
- If the key definition cannot be written.context
- The context.void writeValue(IWriteContext context) throws IOException
At the time this method is called, the surrounding 'data' element has already been written.
IOException
- If the value cannot be written.context
- The context.