|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.primordion.xholon.base.ReflectionJavaMicro
Reflection supports a metadata capability. ReflectionJavaMicro implements a limited form of reflection. It does NOT use the Java Standard Edition reflection mechanism.
Constructor Summary | |
ReflectionJavaMicro()
|
Method Summary | |
int |
getAttributeIntVal(java.lang.Class aClass,
java.lang.String attrName)
Get the current value of an int attribute. |
int |
getAttributeIntVal(IXholon xhNode,
java.lang.String attrName)
Get the current value of an int attribute. |
java.lang.Object[][] |
getAttributes(IXholon node)
Get all attributes that are accessible using a method that starts with "get". |
java.lang.String |
getAttributeStringVal(IXholon xhNode,
java.lang.String attrName)
XPath uses this to get the current value of a String attribute. |
int |
setAttributeArrayVal(IXholon tNode,
java.lang.String attrName,
java.lang.String val,
int valIx,
int arraySubscript)
Set the value of one slot in a named array attribute. |
boolean |
setAttributeBooleanVal(IXholon tNode,
java.lang.String attrName,
boolean val)
Set the value of a boolean attribute. |
int |
setAttributeVal(IXholon tNode,
java.lang.String attrName,
java.lang.String val,
int valIx)
Set the value of a named attribute. |
boolean |
setParam(java.lang.String pName,
java.lang.String pValue,
Application app)
Application uses this to set parameters. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReflectionJavaMicro()
Method Detail |
public boolean setParam(java.lang.String pName, java.lang.String pValue, Application app)
IReflection
setParam
in interface IReflection
pName
- Parameter name.pValue
- Parameter value.app
- The Application.
public java.lang.Object[][] getAttributes(IXholon node)
IReflection
getAttributes
in interface IReflection
node
- An instance of IXholon.
public java.lang.String getAttributeStringVal(IXholon xhNode, java.lang.String attrName)
IReflection
getAttributeStringVal
in interface IReflection
attrName
- The name of a String attribute.
public int getAttributeIntVal(IXholon xhNode, java.lang.String attrName)
IReflection
getAttributeIntVal
in interface IReflection
attrName
- The name of an int attribute.
public int getAttributeIntVal(java.lang.Class aClass, java.lang.String attrName)
IReflection
getAttributeIntVal
in interface IReflection
aClass
- A Java class, typically a Xh concrete class.attrName
- The name of an int attribute.
public int setAttributeVal(IXholon tNode, java.lang.String attrName, java.lang.String val, int valIx)
IReflection
setAttributeVal
in interface IReflection
attrName
- The name of an attribute.val
- A String that contains the value that the attribute should be set to.valIx
- An index into the String. The location within the String where the value begins.
public boolean setAttributeBooleanVal(IXholon tNode, java.lang.String attrName, boolean val)
IReflection
setAttributeBooleanVal
in interface IReflection
tNode
- An IXholon instance.attrName
- The name of a boolean attribute.val
- The value that this boolean attribute should be set to.
public int setAttributeArrayVal(IXholon tNode, java.lang.String attrName, java.lang.String val, int valIx, int arraySubscript)
IReflection
setAttributeArrayVal
in interface IReflection
tNode
- An IXholon instance.attrName
- The name of an array attribute.val
- A String that contains the value that the attribute should be set to.valIx
- An index into the String. The location within the String where the value begins.arraySubscript
- The Zero-indexed subscript of the slot within the array.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |