|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Instance
This class represents an instance of a WSMO concept.
Concept
Method Summary | |
---|---|
void |
addAttributeValue(Attribute key,
Value value)
Adds a new attribute value to the list of values associated with the specified attribute of this instance. |
void |
addConcept(Concept memberOf)
Sets the concept this instance is an instance of. |
java.util.Map |
listAttributeValues()
Returns all attribute values for this instance. |
java.util.Set |
listAttributeValues(Attribute key)
Returns a list of values of a specified attribute. |
java.util.Set |
listConcepts()
Returns a list of the concepts this instance belongs to |
void |
removeAttributeValue(Attribute key,
Value value)
removes a particular value associated with an attribute within this instance |
void |
removeAttributeValues(Attribute key)
clears all the values associated with a particular attribute of this instance. |
void |
removeConcept(Concept memberOf)
Removes a concept from the set of concepts that this entity is an instance of |
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 addConcept(Concept memberOf) throws SynchronisationException, InvalidModelException
memberOf
- The concept that this instance is an instance of.
SynchronisationException
InvalidModelException
removeConcept(Concept memberOf)
,
Concept.addInstance(Instance inst)
void removeConcept(Concept memberOf) throws SynchronisationException, InvalidModelException
memberOf
- the concept (the entity is no longer an instance of it)
SynchronisationException
InvalidModelException
java.util.Set listConcepts() throws SynchronisationException
SynchronisationException
Concept
void addAttributeValue(Attribute key, Value value) throws SynchronisationException, InvalidModelException
key
- The attribute of interest.value
- The value to be added.
SynchronisationException
InvalidModelException
Concept.createAttribute(IRI)
,
removeAttributeValue(Attribute, Value)
,
removeAttributeValues(Attribute)
void removeAttributeValue(Attribute key, Value value) throws SynchronisationException, InvalidModelException
key
- The attribute of interest.value
- the attribute value to be removed
SynchronisationException
InvalidModelException
removeAttributeValues(Attribute key)
void removeAttributeValues(Attribute key) throws SynchronisationException, InvalidModelException
key
- The attribute of interest.
SynchronisationException
InvalidModelException
#removeAttributeValue(Attribute key, Object value)
java.util.Set listAttributeValues(Attribute key) throws SynchronisationException
key
- The attribute of interest.
SynchronisationException
listAttributeValues()
java.util.Map listAttributeValues() throws SynchronisationException
SynchronisationException
listAttributeValues(Attribute key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |