|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KAoSInstanceBuilder
Method Summary | |
---|---|
void |
addDatatypePropertyValue(java.lang.String propertyName,
java.lang.Object val)
Add a value to given Datatype property such as a String, Integer, Float, etc. |
void |
addObjectPropertyValue(java.lang.String propertyName,
java.lang.String resourceName)
Add a value to given Object property. |
java.util.Enumeration |
getAllPropertyNames()
Get the names of all properties contained within this ontology instance. |
java.lang.String |
getClassName()
Get the name of the class of this instance. |
java.util.Vector |
getDatatypePropertyValues(java.lang.String propertyName)
Get the values of the given Datatype property. |
java.lang.String |
getInstanceName()
Get the name of this instance. |
SerializableOntModelImpl |
getInstanceOntModel()
Get the jena-based Ontology Model object for this instance. |
java.util.Vector |
getObjectPropertyValues(java.lang.String propertyName)
Get the values of the given Object property. |
void |
showInstance()
Show the properties and their values in this instance. |
void |
write(java.io.OutputStream out)
Write the XML (OWL) representation of this instance to the text output stream provided |
Method Detail |
---|
java.lang.String getClassName()
java.lang.String getInstanceName()
SerializableOntModelImpl getInstanceOntModel()
void addDatatypePropertyValue(java.lang.String propertyName, java.lang.Object val) throws ValueNotSet
String
- propertyName the URI that is the name of the property to setObject
- val the value of the Datatype property which
must support the toString() method
ValueNotSet
- if the property is not part of the underlying class.java.util.Enumeration getAllPropertyNames()
java.util.Vector getDatatypePropertyValues(java.lang.String propertyName) throws ValueNotSet
propertyName
- the URI that is the name of the property
ValueNotSet
- if the property is not part of the underlying class.void addObjectPropertyValue(java.lang.String propertyName, java.lang.String resourceName) throws ValueNotSet
String
- propertyName the URI that is the name of the propertyString
- resourceURI the URI of the resource which
is set as the value of this Object property
ValueNotSet
- if the property is not part of the underlying class.java.util.Vector getObjectPropertyValues(java.lang.String propertyName) throws ValueNotSet
propertyName
- the name of the property
ValueNotSet
- if the property is not part of the underlying class.void showInstance()
void write(java.io.OutputStream out)
out
- The OutputStream that will receive the XML representation of this instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |