Class AbstractNode
- java.lang.Object
-
- org.geneontology.obographs.core.model.AbstractNode
-
- All Implemented Interfaces:
Comparable<AbstractNode>,NodeOrEdge
- Direct Known Subclasses:
Node
@Immutable public abstract class AbstractNode extends Object implements NodeOrEdge, Comparable<AbstractNode>
A graph node corresponds to a class, individual or property - Author:
- cjm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractNode.RDFTYPES
-
Field Summary
-
Fields inherited from interface org.geneontology.obographs.core.model.NodeOrEdge
EMPTY_META
-
-
Constructor Summary
Constructors Constructor Description AbstractNode()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(AbstractNode other)StringgetId()StringgetLabel()abstract AbstractNode.RDFTYPESgetType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.geneontology.obographs.core.model.NodeOrEdge
getMeta
-
-
-
-
Method Detail
-
getId
@Default public String getId()
-
getLabel
@Default public String getLabel()
-
getType
@Nullable public abstract AbstractNode.RDFTYPES getType()
-
compareTo
public int compareTo(AbstractNode other)
- Specified by:
compareToin interfaceComparable<AbstractNode>
-
-