|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectyext.graphml.reader.AbstractDOMInputHandler
yext.graphml.graph2D.PortConstraintInputHandler
Input handler responsible for parsing PortConstraint data.
Port contraint data includes source and target port constraints,
as well as source group and target group IDs. These data will be
attached to the edges of the graph by registering data providers
using the following standard look-up keys for port contraints:
PortConstraintKeys.SOURCE_PORT_CONSTRAINT_KEYPortConstraintKeys.TARGET_PORT_CONSTRAINT_KEYPortConstraintKeys.SOURCE_GROUPID_KEYPortConstraintKeys.TARGET_GROUPID_KEYDataAcceptor) then this data provider will be
used to store the corresponding values.
In all other cases a newly created DataProvider will be registered and used.
| Constructor Summary | |
PortConstraintInputHandler()
|
|
| Method Summary | |
boolean |
acceptKey(NamedNodeMap map,
int scopeType)
Accepts keys at edge scope whose attribute yfiles.type has the value portconstraints. |
protected void |
applyDefault(DOMGraphMLParseContext context,
Graph graph,
Object nodeedge)
Does nothing yet. |
protected DataAcceptor |
getDataAcceptor(Graph graph,
Object dpKey)
|
static ObjectStringConverter |
getEdgeGroupIDConverter(ObjectStringConverter c)
Returns the converter that is responsible for converting the string representation of a source or target group id to an object. |
protected void |
parseData(DOMGraphMLParseContext context,
Graph graph,
Object nodeedge,
boolean defaultMode,
Node domNode)
Parses PortConstraint data and assigns the values to DataProvider Acceptors and executes port processing instructions. |
static void |
setEdgeGroupIDConverter(ObjectStringConverter c)
Sets the converter that is responsible for converting the string representation of a source or target group id to an object. |
| Methods inherited from class yext.graphml.reader.AbstractDOMInputHandler |
applyDefault, parseData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PortConstraintInputHandler()
| Method Detail |
public static void setEdgeGroupIDConverter(ObjectStringConverter c)
public static ObjectStringConverter getEdgeGroupIDConverter(ObjectStringConverter c)
public boolean acceptKey(NamedNodeMap map,
int scopeType)
yfiles.type has the value portconstraints.
map - the attributes of the key tag.scopeType - the scope for which the key is defined.
One of
GraphMLConstants.SCOPE_ALL,
GraphMLConstants.SCOPE_EDGE,
GraphMLConstants.SCOPE_ENDPOINT,
GraphMLConstants.SCOPE_GRAPH,
GraphMLConstants.SCOPE_NODE,
GraphMLConstants.SCOPE_PORT,
GraphMLConstants.SCOPE_HYPEREDGE.
protected void parseData(DOMGraphMLParseContext context,
Graph graph,
Object nodeedge,
boolean defaultMode,
Node domNode)
parseData in class AbstractDOMInputHandlercontext - The context in which the parser is.graph - The current graph in the parse context.nodeedge - The current node/edge in the parse context.defaultMode - Whether default data or real data is read.domNode - The DOM node which is actually processed.
protected DataAcceptor getDataAcceptor(Graph graph,
Object dpKey)
protected void applyDefault(DOMGraphMLParseContext context,
Graph graph,
Object nodeedge)
applyDefault in class AbstractDOMInputHandlercontext - The context in which the parser is.graph - The current graph in the parse context.nodeedge - The current node/edge in the parse context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||