O - the ontology returned by this input source.public abstract class AbstractGenericInputSource<O> extends Object implements OntologyInputSource<O>
OntologyInputSource interface which is inherited by all concrete
implementations.| Modifier and Type | Field and Description |
|---|---|
protected Origin<?> |
origin
Where the ontology object was retrieved from.
|
protected O |
rootOntology |
| Constructor and Description |
|---|
AbstractGenericInputSource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindPhysicalOrigin(Origin<?> origin)
This method is used to remind developers to bind a physical reference to the
OntologyInputSource if intending to do so. |
protected void |
bindRootOntology(O ontology)
This method is used to remind developers to bind a root ontology to the
OntologyInputSource if
intending to do so. |
boolean |
equals(Object obj) |
Origin<?> |
getOrigin()
Returns a reference object that can be used for obtaining the supplied ontology.
|
O |
getRootOntology()
Returns the OWL Ontology that imports the whole ontology network addressed by this input source.
|
boolean |
hasOrigin()
Determines if a physical reference is known for this ontology source.
|
boolean |
hasRootOntology()
Determines if a root ontology that imports the entire network is available.
|
abstract String |
toString() |
protected Origin<?> origin
protected O rootOntology
protected void bindPhysicalOrigin(Origin<?> origin)
OntologyInputSource if intending to do so.
Implementations should assign a value to origin.origin - where the ontology object was obtained from.protected void bindRootOntology(O ontology)
OntologyInputSource if
intending to do so.
Implementation should assign a value to rootOntology.ontology - the root ontology.public Origin<?> getOrigin()
OntologyInputSourcegetOrigin in interface OntologyInputSource<O>public O getRootOntology()
OntologyInputSourcegetRootOntology in interface OntologyInputSource<O>public boolean hasOrigin()
OntologyInputSourcehasOrigin in interface OntologyInputSource<O>public boolean hasRootOntology()
OntologyInputSourcehasRootOntology in interface OntologyInputSource<O>Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.