|
|||||||||
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 OntPropertyDescription
value
- String containing the value of the property.OntPropertyDescription.setValue(java.lang.String)
public void addValue(java.lang.String value)
OntPropertyDescription
addValue
in interface OntPropertyDescription
value
- 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 OntPropertyDescription
kaos.core.csi.OntPropertyDescription#addValue(Set)
public void setValueDescForValue(java.lang.String value, java.lang.Object desc)
OntPropertyDescription
setValueDescForValue
in interface OntPropertyDescription
value
- 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 OntPropertyDescription
OntPropertyDescription.getName()
public java.util.Set<java.lang.String> getValues()
OntPropertyDescription
getValues
in interface OntPropertyDescription
OntPropertyDescription.getValues()
public java.lang.String getFirstValue()
OntPropertyDescription
getFirstValue
in interface OntPropertyDescription
OntPropertyDescription.getFirstValue()
public java.lang.Object getValueDescForValue(java.lang.String value)
OntPropertyDescription
getValueDescForValue
in interface OntPropertyDescription
value
- 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 OntPropertyDescription
OntPropertyDescription.getNestedPropertyValues(java.lang.String)
public void removeValue(java.lang.String value)
OntPropertyDescription
removeValue
in interface OntPropertyDescription
value
- String containing the value of the property.OntPropertyDescription.removeValue(java.lang.String)
public void removeAllValues()
removeAllValues
in interface OntPropertyDescription
public void removeValueDescForValue(java.lang.String value)
OntPropertyDescription
removeValueDescForValue
in interface OntPropertyDescription
value
- 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 OntPropertyDescription
ontModel
- 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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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 |