|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.core.csi.OntPropertyDescriptionImpl
public class OntPropertyDescriptionImpl
This is an implementation of the OntPropertyDescription interface $Revision: 1.14 $
| Constructor Summary | |
|---|---|
OntPropertyDescriptionImpl(java.lang.String name)
Constructor with instance name |
|
| Method Summary | |
|---|---|
void |
addMultipleValues(java.util.Set<java.lang.String> values)
|
void |
addPropertyToOntModel(SerializableOntModelImpl ontModel,
java.lang.String instanceName)
Add this property to the instance definition in the ontology model |
void |
addValue(java.lang.String value)
Add the value to this property. |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getFirstValue()
Get the first value of this property. |
java.lang.String |
getName()
Get the name of this property. |
java.util.Set<java.lang.String> |
getNestedPropertyValues(java.lang.String nestedPropertyName)
Locate the given property nested within one of the value descriptions for this property and return the set of values for that nested property. |
java.lang.Object |
getValueDescForValue(java.lang.String value)
Get the optional description of the given property value. |
java.util.Set<java.lang.String> |
getValues()
Get the values of this property. |
int |
hashCode()
|
void |
removeAllValues()
Clear the property value. |
void |
removeValue(java.lang.String value)
Remove the property value. |
void |
removeValueDescForValue(java.lang.String value)
Remove the optional description of the given property value. |
void |
setValue(java.lang.String value)
Set the value to this property, if previous values exists they will be deleted |
void |
setValueDescForValue(java.lang.String value,
java.lang.Object desc)
Set the optional description of the given property value. |
java.lang.String |
toString()
Returns a String representation of this instance. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OntPropertyDescriptionImpl(java.lang.String name)
throws java.net.URISyntaxException
name - - instance name
java.net.URISyntaxException| Method Detail |
|---|
public void setValue(java.lang.String value)
OntPropertyDescription
setValue in interface OntPropertyDescriptionvalue - String containing the value of the property.OntPropertyDescription.setValue(java.lang.String)public void addValue(java.lang.String value)
OntPropertyDescription
addValue in interface OntPropertyDescriptionvalue - String containing the value of the property.OntPropertyDescription.addValue(java.lang.String)public void addMultipleValues(java.util.Set<java.lang.String> values)
addMultipleValues in interface OntPropertyDescriptionkaos.core.csi.OntPropertyDescription#addValue(Set)
public void setValueDescForValue(java.lang.String value,
java.lang.Object desc)
OntPropertyDescription
setValueDescForValue in interface OntPropertyDescriptionvalue - String containing the value of the property.desc - Object containing the description of the value often it will be kaos.core.csi.OntInstanceDescriptionOntPropertyDescription.setValueDescForValue(java.lang.String, java.lang.Object)public java.lang.String getName()
OntPropertyDescription
getName in interface OntPropertyDescriptionOntPropertyDescription.getName()public java.util.Set<java.lang.String> getValues()
OntPropertyDescription
getValues in interface OntPropertyDescriptionOntPropertyDescription.getValues()public java.lang.String getFirstValue()
OntPropertyDescription
getFirstValue in interface OntPropertyDescriptionOntPropertyDescription.getFirstValue()public java.lang.Object getValueDescForValue(java.lang.String value)
OntPropertyDescription
getValueDescForValue in interface OntPropertyDescriptionvalue - String containing the value of the property.
OntPropertyDescription.getValueDescForValue(java.lang.String)public java.util.Set<java.lang.String> getNestedPropertyValues(java.lang.String nestedPropertyName)
OntPropertyDescription
getNestedPropertyValues in interface OntPropertyDescriptionOntPropertyDescription.getNestedPropertyValues(java.lang.String)public void removeValue(java.lang.String value)
OntPropertyDescription
removeValue in interface OntPropertyDescriptionvalue - String containing the value of the property.OntPropertyDescription.removeValue(java.lang.String)public void removeAllValues()
removeAllValues in interface OntPropertyDescriptionpublic void removeValueDescForValue(java.lang.String value)
OntPropertyDescription
removeValueDescForValue in interface OntPropertyDescriptionvalue - String containing the value of the property.OntPropertyDescription.removeValueDescForValue(java.lang.String)
public void addPropertyToOntModel(SerializableOntModelImpl ontModel,
java.lang.String instanceName)
OntPropertyDescription
addPropertyToOntModel in interface OntPropertyDescriptionontModel - ontology model to which the property is to be addedinstanceName - name of the instance the property is to be added tokaos.core.csi.OntPropertyDescription#raddPropertyToOntModel(kaos.ontology.util.SerializableOntModelImpl, java.lang.String)public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||