|
|||||||||
| 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(Mediator 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(java.lang.String prefix)
finds a namespace by its prefix |
Namespace |
getDefaultNamespace()
retrieve the default namespace |
java.lang.String |
getWsmlVariant()
returns the WSML variant used for the definition of this entity |
java.util.Set |
listMediators()
Returns the list of used mediators. |
java.util.Set |
listNamespaces()
retrieves all avalible namespaces |
java.util.Set |
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 |
removeMediator(Mediator mediator)
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(java.lang.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(java.lang.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 |
|---|
java.lang.String getWsmlVariant()
WSML,
setWsmlVariant(String variant)void setWsmlVariant(java.lang.String variant)
variant - the name of the WSML variant (as string)WSMLjava.util.Set listNamespaces()
Namespacevoid addNamespace(Namespace ns)
ns - to addremoveNamespace(String),
removeNamespace(Namespace)void removeNamespace(java.lang.String prefix)
prexif - prexif of the namespcae to be removedvoid removeNamespace(Namespace ns)
ns - namespace to be removedNamespace findNamespace(java.lang.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(Mediator mediator)
mediator - the used mediator referenceremoveMediator(Mediator mediator)void removeMediator(Mediator mediator)
mediator - The mediator to be removed from this element's list of used mediators.void removeMediator(IRI iri)
iri - The ID of the mediator to be removed from this element's list of used mediators.java.util.Set 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.java.util.Set listOntologies()
Ontology
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||