net.sourceforge.fluxion.graph
Interface Node
- All Known Subinterfaces:
- MappingNode, OWLNode
- All Known Implementing Classes:
- AbstractNode, DataConstantNode, DataValueNode, IndividualNode, MemberOfNode, ObjectValueNode, OWLMappingNode, RestrictedNode, WalkedToDataNode, WalkedToObjectNode
public interface Node
A Node is an object that makes up a component of a mapping graph. Any
implementation of a Node should describe three key things...
- The identifier for this Node (which is simply a string value which
will be used to reference this Node when serialised as XML)
- The
RDFResource used to describe the class of all objects encompassed by this
node. This is the description of the class to select each entity from. This
Node now represents the statement FOR ALL [identifier] IN
[RDFResource]...
- A set of mappings for this Node. Each entity
mapped to should be stored in this set, by means of the paired Nodes
identifier. This can legally be an empty set.
Finally, all Nodes must implement the accept() method to enable a NodeVisitor
to visit them. NodeVisitors are responsible for building the representation
of the graph for the UI.
If you wish to implement Node, instead use AbstractNode which handles all the
standard getter and setter methods, leaving only setRDFResource()
to be implemented for each specific type of Node.
- Version:
- 0.1
- Author:
- Tony Burdett
- See Also:
Graph
,
Edge
Method Summary |
void |
accept(NodeVisitor visitor)
Accept a visit from a NodeVisitor |
java.lang.String |
getLabel()
An identifier that can be used to describe an individual of the set
described by this Node |
void |
setLabel(java.lang.String label)
Set the identifier that can be used to label an individual. |
setLabel
void setLabel(java.lang.String label)
- Set the identifier that can be used to label an individual.
- Parameters:
label
- the label of this Node
getLabel
java.lang.String getLabel()
- An identifier that can be used to describe an individual of the set
described by this Node
- Returns:
- the identifier
accept
void accept(NodeVisitor visitor)
- Accept a visit from a
NodeVisitor
- Parameters:
visitor
- the NodeVisitor
visiting this class
Copyright © 2010. All Rights Reserved.