public class NodeDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
protected NodeHandle |
handle
The handle of the node the descriptor describes.
|
protected List<NodeName> |
names
The list of names attached to the node.
|
protected boolean |
root
Specifies whether this node is a root node or not.
|
Constructor and Description |
---|
NodeDescriptor(NodeHandle handle,
Collection<NodeName> names)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(NodeHandle handle,
Collection<NodeName> names,
boolean root)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(NodeHandle handle,
NodeName name)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(NodeHandle handle,
NodeName name,
boolean root)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(NodeHandle handle,
String name)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(NodeHandle handle,
String name,
boolean root)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(OntologyHandle handle,
int id,
Collection<NodeName> names)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(OntologyHandle handle,
int id,
Collection<NodeName> names,
boolean root)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(OntologyHandle handle,
int id,
NodeName name)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(OntologyHandle handle,
int id,
NodeName name,
boolean root)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(OntologyHandle handle,
int id,
String name)
Constructor of the NodeDescriptor class.
|
NodeDescriptor(OntologyHandle handle,
int id,
String name,
boolean root)
Constructor of the NodeDescriptor class.
|
Modifier and Type | Method and Description |
---|---|
NodeHandle |
getHandle()
Returns the handle of the node this instance describes.
|
int |
getId()
Returns the id of the described node.
|
Collection<NodeName> |
getNames()
Returns the names of the described node.
|
OntologyHandle |
getOntology()
Returns the ontology the described node belongs to.
|
String |
getPrimaryName()
Returns the name part of the primary node name.
|
NodeName |
getPrimaryNameDescr()
Returns the NodeName instance of the primary node name.
|
boolean |
isRoot()
Returns whether the node is a root node or not.
|
protected final NodeHandle handle
protected boolean root
public NodeDescriptor(NodeHandle handle, Collection<NodeName> names, boolean root)
handle
- is the handle of the node the descriptor describes.names
- is a list of NodeName instances that should be attached to
the node.root
- specifies whether the node is a root node.public NodeDescriptor(NodeHandle handle, NodeName name, boolean root)
handle
- is the handle of the node the descriptor describes.name
- is a single NodeName instance that should be attached to the
node.root
- specifies whether the node is a root node.public NodeDescriptor(NodeHandle handle, Collection<NodeName> names)
handle
- is the handle of the node the descriptor describes.names
- is a list of NodeName instances that should be attached to
the node.public NodeDescriptor(NodeHandle handle, NodeName name)
handle
- is the handle of the node the descriptor describes.name
- is a single NodeName instance that should be attached to the
node.public NodeDescriptor(NodeHandle handle, String name, boolean root)
handle
- is the handle of the node the descriptor describes.name
- is a single name that should be attached to the node.root
- specifies whether the node is a root node.public NodeDescriptor(NodeHandle handle, String name)
handle
- is the handle of the node the descriptor describes.name
- is a single name that should be attached to the node.public NodeDescriptor(OntologyHandle handle, int id, Collection<NodeName> names, boolean root)
handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.names
- is a list of NodeName instances that should be attached to
the node.root
- specifies whether the node is a root node.public NodeDescriptor(OntologyHandle handle, int id, Collection<NodeName> names)
handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.names
- is a list of NodeName instances that should be attached to
the node.public NodeDescriptor(OntologyHandle handle, int id, NodeName name, boolean root)
handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.name
- is a single NodeName instance that should be attached to the
node.root
- specifies whether the node is a root node.public NodeDescriptor(OntologyHandle handle, int id, NodeName name)
handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.name
- is a single NodeName instance that should be attached to the
node.public NodeDescriptor(OntologyHandle handle, int id, String name, boolean root)
handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.name
- is a single name that should be attached to the node.root
- specifies whether the node is a root node.public NodeDescriptor(OntologyHandle handle, int id, String name)
handle
- is the handle of the ontology the node should belong toid
- is the id of the described node.name
- is a single name that should be attached to the node.public NodeHandle getHandle()
public OntologyHandle getOntology()
public int getId()
public Collection<NodeName> getNames()
public NodeName getPrimaryNameDescr()
public String getPrimaryName()
public boolean isRoot()
Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie