|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Concept
This interface represents a WSMO concept.
Instance
Method Summary | |
---|---|
void |
addInstance(Instance inst)
Adds a new instance to the set of instances of this concept The instance will also add this concept to the list of its concepts |
void |
addSubConcept(Concept subConcept)
Adds a new concept to the set of sub-concepts of this concept The sub concept will also add this concept to the list of its super-concepts. |
void |
addSuperConcept(Concept superConcept)
Adds a new concept to the set of super-concepts of this concept The super concept will also add this concept to the list of its sub-concepts |
Attribute |
createAttribute(Identifier id)
Create an Attribute for a Concept |
Set<Attribute> |
findAttributes(Identifier id)
Searches for all attributes with the specified ID. |
Set<Attribute> |
listAttributes()
Returns a list of this concept's attributes. |
Set<Instance> |
listInstances()
Returns a list of this concept's instances |
Set<Concept> |
listSubConcepts()
Lists the sub-concepts of this concept |
Set<Concept> |
listSuperConcepts()
Lists the super-concepts of this concept. |
void |
removeAttribute(Attribute attr)
Removes an attribute from this concept's list of attributes. |
void |
removeAttribute(Identifier identifier)
Removes an attribute from this concept's list of attributes. |
void |
removeInstance(Instance inst)
Removes an instance from the set of instances of this concept The instance will also remove this concept from the list of its concepts |
void |
removeSubConcept(Concept subConcept)
Removes a concept from the set of sub-concepts of this concept The sub concept will also remove this concept from the list of its super-concepts. |
void |
removeSuperConcept(Concept superConcept)
Removes a concept from the set of super-concepts of this concept The super concept will also remove this concept from the list of its sub-concepts. |
Methods inherited from interface org.omwg.ontology.OntologyElement |
---|
getOntology, setOntology |
Methods inherited from interface org.wsmo.common.Entity |
---|
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue |
Method Detail |
---|
void addSuperConcept(Concept superConcept) throws SynchronisationException, InvalidModelException
superConcept
- The new super-concept to be added.
SynchronisationException
InvalidModelException
removeSuperConcept(Concept superConcept)
void removeSuperConcept(Concept superConcept) throws SynchronisationException, InvalidModelException
superConcept
- The super-concept to be removed
SynchronisationException
InvalidModelException
Set<Concept> listSuperConcepts() throws SynchronisationException
SynchronisationException
void addSubConcept(Concept subConcept) throws SynchronisationException, InvalidModelException
subConcept
- The new sub-concept to be added.
SynchronisationException
InvalidModelException
removeSubConcept(Concept subConcept)
void removeSubConcept(Concept subConcept) throws SynchronisationException, InvalidModelException
subConcept
- The sub-concept to be removed
SynchronisationException
InvalidModelException
Set<Concept> listSubConcepts() throws SynchronisationException
SynchronisationException
Attribute createAttribute(Identifier id) throws InvalidModelException
id
- The ID of the new Attribute
InvalidModelException
void removeAttribute(Identifier identifier)
identifier
- The identifier of the attribute to be removed
from the concept's list of attributes.void removeAttribute(Attribute attr) throws SynchronisationException, InvalidModelException
attr
- The attribute to be removed from this concept's list of attributes.
SynchronisationException
InvalidModelException
Set<Attribute> listAttributes() throws SynchronisationException
SynchronisationException
Attribute
Set<Attribute> findAttributes(Identifier id)
id
- identifier of the attribute
SynchronisationException
void addInstance(Instance inst) throws SynchronisationException, InvalidModelException
inst
- The new instance to be added.
SynchronisationException
InvalidModelException
removeInstance(Instance inst)
,
Instance.addConcept(Concept memberOf)
void removeInstance(Instance inst) throws SynchronisationException, InvalidModelException
inst
- The instance to be removed
SynchronisationException
InvalidModelException
Set<Instance> listInstances() throws SynchronisationException
SynchronisationException
Instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |