com.googlecode.sarasvati.load.definition
Interface ExternalArcDefinition
- All Known Implementing Classes:
- XmlExternalArc
public interface ExternalArcDefinition
An ExternalArcDefinition is the result of the translation of a certain external source containing
the definition of a process. That external source may contain necessary information to create
an Arc
pointing to a Node
defined in another definition.
That information is translated into an ExternalArcDefinition through a
ProcessDefinitionTranslator
. This ExternalArcDefinition will then in its turn be used
by the GraphLoader
to create an Arc
through the GraphFactory
.
The default kind of external source is an XML file containing <arc> tags with external
attribute.
This external
attribute must reference an existing external definition within the same file.
getFrom
String getFrom()
- Returns:
- The name of the node in the external that is the starting point of this arc.
getExternal
String getExternal()
- Returns:
- If this arc is ending in an external process definition, the name of the external this arc is going to,
otherwise null.
getTo
String getTo()
- Returns:
- The name of the node that will be the end point of this arc.
getName
String getName()
- Returns:
- The name of this arc. May be blank or null (the default value).
isToExternal
boolean isToExternal()
- Returns:
- true if this arc ends in an external process definition, false otherwise.