Reflection methods for concepts.
Note - In the Instance.Reflection functions, you will see references to
"concepts". In the context of ActiveMatrix Decisions, concepts are equivalent to
BOM types.
Name | Signature and Synopsis |
---|---|
getAllProperties | Property[] getAllProperties(Concept instance) This method returns all properties of a Concept Instance. |
getAllPropertyNames | String[] getAllPropertyNames(Concept instance) This method returns all property names of a Concept Instance. |
getProperty | Property getProperty(Concept instance, String propertyName) This method returns a property of a Concept Instance given the property name. |
getPropertyArrayLength | int 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 |
isProperty | boolean isProperty(Object obj) This method checks if an object is a Property object. |
isPropertyArray | boolean isPropertyArray(Object obj) This method checks if an object is a PropertyArray object. |
isPropertyAtom | boolean isPropertyAtom(Object obj) This method checks if an object is a PropertyAtom object. |
isPropertyBoolean | boolean isPropertyBoolean(Object obj) This method checks if an object is a PropertyBoolean object. |
isPropertyConcept | boolean isPropertyConcept(Object obj) This method checks if an object is a PropertyConcept object. |
isPropertyConceptReference | boolean isPropertyConceptReference(Object obj) This method checks if an object is a PropertyConceptReference object. |
isPropertyContainedConcept | boolean isPropertyContainedConcept(Object obj) This method checks if an object is a PropertyContainedConcept object. |
isPropertyDateTime | boolean isPropertyDateTime(Object obj) This method checks if an object is a PropertyDateTime object. |
isPropertyDouble | boolean isPropertyDouble(Object obj) This method checks if an object is a PropertyDouble object. |
isPropertyInt | boolean isPropertyInt(Object obj) This method checks if an object is a PropertyInt object. |
isPropertyLong | boolean isPropertyLong(Object obj) This method checks if an object is a PropertyLong object. |
isPropertyString | boolean isPropertyString(Object obj) This method checks if an object is a PropertyString object. |
setPropertyArrayValue | boolean 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. |
setPropertyAtomValue | boolean setPropertyAtomValue(Concept instance, String name, Object value) Given the concept instance and property name, set the value of a PropertyAtom to the value passed. |
toObject | Object toObject(Property pa) This method explicitly casts the property to an object. It returns the property object, not the value in the property. |