public final class NodeHandle extends Handle
Constructor and Description |
---|
NodeHandle(OntologyHandle ontology,
int id)
Constructor of the NodeHandle class.
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns the unique id of the ontology node.
|
OntologyHandle |
getOntology()
Returns the ontology handle.
|
String |
getUniqueName()
Returns a unique name of the scheme "ontology:id", or just "id" if the
ontology is null (which does not happen in a real world application).
|
public NodeHandle(OntologyHandle ontology, int id)
ontology
- is a reference to the ontology handle. The NodeHandle
class supports a value of null in this field, yet this support was only
added to facilitate testing. In the actual application the ontology
should always be non-null.id
- is the unique ID of the ontology node.public OntologyHandle getOntology()
public int getId()
public String getUniqueName()
getUniqueName
in class Handle
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