Instance.Reflection

Description

Reflection method for Concept

Functions

NameSignature and Synopsis
getAllPropertiesProperty[] getAllProperties(Concept instance)
This method returns all properties of a Concept Instance.
getAllPropertyNamesString[] getAllPropertyNames(Concept instance)
This method returns all property names of a Concept Instance.
getPropertyProperty getProperty(Concept instance, String propertyName)
This method returns a property of a Concept Instance given the property name.
getPropertyArrayLengthint getPropertyArrayLength(Concept instance, String name)
This method returns the length of a PropertyArray given the Concept instance and the property name. It returns -1 if the length can't be determined. e.g. no such propertyArray exception
getPropertyArrayValueObject getPropertyArrayValue(Concept instance, String name, int index)
Given the concept instance and property name, get the value of a PropertyArray at index to the value passed.
isPropertyboolean isProperty(Object obj)
This method checks if an object is a Property object.
isPropertyArrayboolean isPropertyArray(Object obj)
This method checks if an object is a PropertyArray object.
isPropertyAtomboolean isPropertyAtom(Object obj)
This method checks if an object is a PropertyAtom object.
isPropertyBooleanboolean isPropertyBoolean(Object obj)
This method checks if an object is a PropertyBoolean object.
isPropertyConceptboolean isPropertyConcept(Object obj)
This method checks if an object is a PropertyConcept object.
isPropertyConceptReferenceboolean isPropertyConceptReference(Object obj)
This method checks if an object is a PropertyConceptReference object.
isPropertyContainedConceptboolean isPropertyContainedConcept(Object obj)
This method checks if an object is a PropertyContainedConcept object.
isPropertyDateTimeboolean isPropertyDateTime(Object obj)
This method checks if an object is a PropertyDateTime object.
isPropertyDoubleboolean isPropertyDouble(Object obj)
This method checks if an object is a PropertyDouble object.
isPropertyIntboolean isPropertyInt(Object obj)
This method checks if an object is a PropertyInt object.
isPropertyLongboolean isPropertyLong(Object obj)
This method checks if an object is a PropertyLong object.
isPropertyStringboolean isPropertyString(Object obj)
This method checks if an object is a PropertyString object.
setPropertyArrayValueboolean setPropertyArrayValue(Concept instance, String name, int index, Object value)
Given the concept instance and property name, set the value of a PropertyArray at index to the value passed.
setPropertyAtomValueboolean setPropertyAtomValue(Concept instance, String name, Object value)
Given the concept instance and property name, set the value of a PropertyAtom to the value passed.
toObjectObject toObject(Property pa)
This method explicitly casts the property to an object. It returns the property object, not the value in the property.