org.graphdrawing.graphml.reader.dom
Interface Precedence

All Known Implementing Classes:
PostprocessorInputHandler

public interface Precedence

Interface that can be used to assign a invokation precedence to input handlers. For each scope input handlers will be invoked in the order of their precedence. Input handlers that have different precedences will effect multi-pass parsing on the input scope.

GraphML handlers for GraphML elements like graph, node and edge have default precedence GRAPHML_PRECEDENCE. Input handlers with smaller precedence will be invoked before and input handlers with bigger precedence will be invoked after the standard GraphML elements are parsed.


Field Summary
static int GRAPHML_PRECEDENCE
          Symbolic constant for the default handler precedence.
 
Method Summary
 int getPrecedence()
          Get the precedence value of the input handler
 

Field Detail

GRAPHML_PRECEDENCE

public static final int GRAPHML_PRECEDENCE
Symbolic constant for the default handler precedence. Note: input handlers with a lower precedence will be called before any "normal" (i.e. not data) child elements of the current graph element are parsed.

See Also:
Constant Field Values
Method Detail

getPrecedence

public int getPrecedence()
Get the precedence value of the input handler. *

Note: The values Integer.MIN_VALUE and Integer.MAX_VALUE are reserved for internal use

Returns:
the precedence value of the handler


Copyright ©2000-2009, yWorks GmbH. All rights reserved.