net.sourceforge.fluxion.graph
Class AbstractNode

java.lang.Object
  extended by net.sourceforge.fluxion.graph.AbstractNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
OWLMappingNode

public abstract class AbstractNode
extends java.lang.Object
implements Node

An abstract implementation of Node. This class implements all the common getter and setter methods defined by Node, along with the accept() method. It does not implement the setRDFResource() method, which must be specific to the concrete implementation.

Version:
0.1
Author:
Tony Burdett

Constructor Summary
AbstractNode()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNode

public AbstractNode()
Method Detail

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: Node
Set the identifier that can be used to label an individual.

Specified by:
setLabel in interface Node
Parameters:
label - the label of this Node

getLabel

public java.lang.String getLabel()
Description copied from interface: Node
An identifier that can be used to describe an individual of the set described by this Node

Specified by:
getLabel in interface Node
Returns:
the identifier

accept

public void accept(NodeVisitor visitor)
Description copied from interface: Node
Accept a visit from a NodeVisitor

Specified by:
accept in interface Node
Parameters:
visitor - the NodeVisitor visiting this class


Copyright © 2010. All Rights Reserved.