|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TopEntity
Base class for top level WSMO entities (ontologies, mediators, goals, services + capabilities and interfaces)
| Method Summary | |
|---|---|
void |
addMediator(IRI mediator)
Adds a reference to a new mediator to this element's used mediators list. |
void |
addNamespace(Namespace ns)
add a namespace in the contaioner |
void |
addOntology(Ontology ontology)
Adds an ontology to this element's imported ontologies list |
Namespace |
findNamespace(String prefix)
finds a namespace by its prefix |
Namespace |
getDefaultNamespace()
retrieve the default namespace |
String |
getWsmlVariant()
returns the WSML variant used for the definition of this entity |
Set<IRI> |
listMediators()
Returns the list of used mediators. |
Set<Namespace> |
listNamespaces()
retrieves all avalible namespaces (prefix/iri pairs). |
Set<Ontology> |
listOntologies()
Returns a list of ontologies which this element imports. |
void |
removeMediator(IRI iri)
Removes a reference to a mediator from this element's used mediator list. |
void |
removeNamespace(Namespace ns)
remove namespace from the top entity |
void |
removeNamespace(String prefix)
remove namespace from the top entity |
void |
removeOntology(IRI iri)
Removes an ontology from the list of ontolgies which this element imports. |
void |
removeOntology(Ontology ontology)
Removes an ontology from the list of ontolgies which this element imports. |
void |
setDefaultNamespace(IRI iri)
sets a default namespace for the container |
void |
setDefaultNamespace(Namespace ns)
sets a default namespace for the container |
void |
setWsmlVariant(String variant)
specifies the WSML variant used for the definition of this entity |
| Methods inherited from interface org.wsmo.common.Entity |
|---|
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue |
| Method Detail |
|---|
String getWsmlVariant()
WSML,
setWsmlVariant(String variant)void setWsmlVariant(String variant)
variant - the name of the WSML variant (as string)WSMLSet<Namespace> listNamespaces()
Namespace,
getDefaultNamespace()void addNamespace(Namespace ns)
ns - to addremoveNamespace(String),
removeNamespace(Namespace)void removeNamespace(String prefix)
prexif - prexif of the namespcae to be removedvoid removeNamespace(Namespace ns)
ns - namespace to be removedNamespace findNamespace(String prefix)
prefix - of a namespace to look for
Namespace getDefaultNamespace()
setDefaultNamespace(Namespace ns),
setDefaultNamespace(IRI iri)void setDefaultNamespace(Namespace ns)
ns - namespace to set as defaultsetDefaultNamespace(IRI iri)void setDefaultNamespace(IRI iri)
iri - IRI of namespace to set as defaultsetDefaultNamespace(Namespace ns)void addMediator(IRI mediator)
iri - the ID of the used mediator referenceremoveMediator(IRI mediator)void removeMediator(IRI iri)
iri - The ID of the mediator to be removed from this element's list of used mediators.Set<IRI> listMediators()
Mediatorvoid addOntology(Ontology ontology)
ontology - The ontology to be imported.removeOntology(Ontology ontology),
removeOntology(IRI iri)void removeOntology(IRI iri)
iri - The ID of the ontology to be removed from this element's imported ontologies list.void removeOntology(Ontology ontology)
ontology - The ontology to be removed from this element's imported ontologies list.Set<Ontology> listOntologies()
Ontology
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||