|
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.graph2d.PortConstraintOutputHandler
public class PortConstraintOutputHandler
Output handler responsible for writing PortConstraint
data.
Port constraint data includes source and target port constraints,
as well as source group and target group IDs. Port constraint data
must be provided by data providers that are registered with the graph using
the following standard look-up keys for port constraints:
PortConstraintKeys.SOURCE_PORT_CONSTRAINT_KEY
PortConstraintKeys.TARGET_PORT_CONSTRAINT_KEY
PortConstraintKeys.SOURCE_GROUPID_KEY
PortConstraintKeys.TARGET_GROUPID_KEY
Constructor Summary | |
---|---|
PortConstraintOutputHandler()
|
Method Summary | |
---|---|
java.util.Collection |
getDataTagAttributes()
Gets the XML attributes that should be added to the data element. |
ObjectStringConverter |
getEdgeGroupIDConverter(ObjectStringConverter c)
Returns the converter that is responsible for converting the source or target group ID to a string representation. |
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 |
setEdgeGroupIDConverter(ObjectStringConverter c)
Sets the converter that is responsible for converting the source or target group ID to a string representation. |
void |
writeKeyDefinitionContent(GraphMLWriteContext ctx)
Writes the contents of the key definition. |
void |
writeValue(GraphMLWriteContext ctx)
Actually writes the value for the current context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortConstraintOutputHandler()
Method Detail |
---|
public void setEdgeGroupIDConverter(ObjectStringConverter c)
toString()
of the ID object will be used.
public ObjectStringConverter getEdgeGroupIDConverter(ObjectStringConverter c)
toString()
of the ID object will be used.
public WritePrecedence getPrecedence()
OutputHandler
Registered output handlers are written either before or after the (optional) child content of the governing GraphML element.
getPrecedence
in interface OutputHandler
WritePrecedence
public java.util.Collection getKeyDefinitionAttributes()
OutputHandler
GraphMLXmlAttribute
that represent
the attribute data.
getKeyDefinitionAttributes
in interface OutputHandler
public java.util.Collection getDataTagAttributes()
OutputHandler
GraphMLXmlAttribute
that represent
the attribute data.
getDataTagAttributes
in interface OutputHandler
public boolean isDefaultValue(GraphMLWriteContext ctx)
OutputHandler
isDefaultValue
in interface OutputHandler
ctx
- The context.
true
if for the current context the default value
applies and therefore no data element needs to be written;
false
otherwise.public void writeKeyDefinitionContent(GraphMLWriteContext ctx)
OutputHandler
At the time this method is called, the surrounding 'key'
element has already been written.
However no 'default'
element is written by the framework.
writeKeyDefinitionContent
in interface OutputHandler
ctx
- The context.public void writeValue(GraphMLWriteContext ctx)
OutputHandler
At the time this method is called, the surrounding
'data'
element has already been written.
writeValue
in interface OutputHandler
ctx
- The context.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |