| 
||||||||||
| 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(Identifier id,
                  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.  | 
 Set<Attribute> | 
findAttributeDefinitions(Identifier id)
Search this concept and all super concepts for a specified attribute.  | 
 Map<Identifier,Set<Value>> | 
listAttributeValues()
Returns all attribute values for this instance.  | 
 Set<Value> | 
listAttributeValues(Identifier key)
Returns a list of values of a specified attribute.  | 
 Set<Concept> | 
listConcepts()
Returns a list of the concepts this instance belongs to  | 
 void | 
removeAttributeValue(Identifier key,
                     Value value)
Removes a particular value associated with an attribute within this instance.  | 
 void | 
removeAttributeValues(Identifier id)
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
InvalidModelExceptionremoveConcept(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
Set<Concept> listConcepts()
                          throws SynchronisationException
SynchronisationExceptionConcept
void addAttributeValue(Identifier id,
                       Value value)
                       throws SynchronisationException,
                              InvalidModelException
id - the attribute's indentifier of interestvalue - The value to be added
SynchronisationException
InvalidModelExceptionConcept#createAttribute(IRI), 
removeAttributeValue(Identifier, Value), 
removeAttributeValues(Identifier)
void removeAttributeValue(Identifier key,
                          Value value)
                          throws SynchronisationException,
                                 InvalidModelException
id - The attribute's indentifier of interestvalue - the attribute value to be removed
SynchronisationException
InvalidModelExceptionremoveAttributeValues(Identifier id)
void removeAttributeValues(Identifier id)
                           throws SynchronisationException,
                                  InvalidModelException
id - The attribute's indentifier of interest
SynchronisationException
InvalidModelException#removeAttributeValue(Identifier id, Object value)
Set<Value> listAttributeValues(Identifier key)
                               throws SynchronisationException
key - The attribute of interest.
SynchronisationExceptionlistAttributeValues()
Map<Identifier,Set<Value>> listAttributeValues()
                                               throws SynchronisationException
SynchronisationExceptionlistAttributeValues(Identifier id)
Set<Attribute> findAttributeDefinitions(Identifier id)
                                        throws SynchronisationException
id - of the attribute
SynchronisationException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||