|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ontotext.wsmo4j.common.EntityImpl
com.ontotext.wsmo4j.ontology.OntologyElementImpl
com.ontotext.wsmo4j.ontology.InstanceImpl
public class InstanceImpl
Constructor Summary | |
---|---|
InstanceImpl(org.wsmo.common.Identifier thisID)
|
Method Summary | |
---|---|
void |
addAttributeValue(org.wsmo.common.Identifier id,
org.omwg.ontology.Value value)
Adds a new attribute value to the list of values associated with the specified attribute of this instance. |
void |
addConcept(org.omwg.ontology.Concept memberOf)
Sets the concept this instance is an instance of. |
boolean |
equals(Object object)
|
Set<org.omwg.ontology.Attribute> |
findAttributeDefinitions(org.wsmo.common.Identifier id)
|
Map<org.wsmo.common.Identifier,Set<org.omwg.ontology.Value>> |
listAttributeValues()
Returns a list of values of a specified attribute. |
Set<org.omwg.ontology.Value> |
listAttributeValues(org.wsmo.common.Identifier id)
Adds a new attribute value to the list of values associated with the specified attribute of this instance. |
Set<org.omwg.ontology.Concept> |
listConcepts()
Lists the axioms defined by this ontology. |
void |
removeAttributeValue(org.wsmo.common.Identifier id,
org.omwg.ontology.Value attrVal)
Removes a particular value associated with an attribute within this instance. |
void |
removeAttributeValues(org.wsmo.common.Identifier id)
clears all the values associated with a particular attribute of this instance. |
void |
removeConcept(org.omwg.ontology.Concept memberOf)
Removes an axiom from the set of axioms defined by this ontology. |
Methods inherited from class com.ontotext.wsmo4j.ontology.OntologyElementImpl |
---|
getOntology, setOntology |
Methods inherited from class com.ontotext.wsmo4j.common.EntityImpl |
---|
addNFPValue, addNFPValue, getIdentifier, hashCode, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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 |
Constructor Detail |
---|
public InstanceImpl(org.wsmo.common.Identifier thisID)
Method Detail |
---|
public void addConcept(org.omwg.ontology.Concept memberOf) throws org.wsmo.common.exception.InvalidModelException
addConcept
in interface org.omwg.ontology.Instance
concept
- The concept that this instance
is an instance of.
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
public void removeConcept(org.omwg.ontology.Concept memberOf) throws org.wsmo.common.exception.InvalidModelException
removeConcept
in interface org.omwg.ontology.Instance
axiom
- The axiom to be removed.
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
public Set<org.omwg.ontology.Concept> listConcepts() throws org.wsmo.common.exception.SynchronisationException
listConcepts
in interface org.omwg.ontology.Instance
org.wsmo.common.exception.SynchronisationException
public Set<org.omwg.ontology.Value> listAttributeValues(org.wsmo.common.Identifier id) throws org.wsmo.common.exception.SynchronisationException
listAttributeValues
in interface org.omwg.ontology.Instance
value
- The value to be added.id
- The attribute's identifier of interest.
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
public Map<org.wsmo.common.Identifier,Set<org.omwg.ontology.Value>> listAttributeValues() throws org.wsmo.common.exception.SynchronisationException
listAttributeValues
in interface org.omwg.ontology.Instance
org.wsmo.common.exception.SynchronisationException
public void addAttributeValue(org.wsmo.common.Identifier id, org.omwg.ontology.Value value) throws org.wsmo.common.exception.SynchronisationException, org.wsmo.common.exception.InvalidModelException
addAttributeValue
in interface org.omwg.ontology.Instance
value
- The value to be added.id
- The attribute's identifier of interest.
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
public void removeAttributeValue(org.wsmo.common.Identifier id, org.omwg.ontology.Value attrVal) throws org.wsmo.common.exception.SynchronisationException, org.wsmo.common.exception.InvalidModelException
removeAttributeValue
in interface org.omwg.ontology.Instance
id
- The attribute's identifier of interest.value
- the attribute value to be removed.
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
#removeAttributeValues(Attribute key)
public void removeAttributeValues(org.wsmo.common.Identifier id) throws org.wsmo.common.exception.SynchronisationException, org.wsmo.common.exception.InvalidModelException
removeAttributeValues
in interface org.omwg.ontology.Instance
attribute
- The attribute of interest.
org.wsmo.common.exception.SynchronisationException
org.wsmo.common.exception.InvalidModelException
removeAttributeValue(Attribute key, Object value)
public Set<org.omwg.ontology.Attribute> findAttributeDefinitions(org.wsmo.common.Identifier id)
findAttributeDefinitions
in interface org.omwg.ontology.Instance
public boolean equals(Object object)
equals
in class EntityImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |