|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webmacro.engine.PropertyOperatorCache
Constructor Summary | |
PropertyOperatorCache()
|
Method Summary | |
java.util.Iterator |
getIterator(java.lang.Object instance)
Evaluate the supplied object and work out a way to return it as an iterator. |
org.webmacro.engine.PropertyOperator |
getOperator(java.lang.Class type)
|
org.webmacro.engine.PropertyOperator |
getOperator(java.lang.Object obj)
|
java.lang.Object |
getProperty(Context context,
java.lang.Object instance,
java.lang.Object[] names)
Calls getProperty(context, instance, names, 0) |
java.lang.Object |
getProperty(Context context,
java.lang.Object instance,
java.lang.Object[] names,
int start)
Attempt to retrieve a property using the rules of property introspection described above. |
void |
init(Broker b,
Settings config)
|
boolean |
setProperty(Context context,
java.lang.Object instance,
java.lang.Object[] names,
int start,
java.lang.Object value)
Given a property description name, attempt to set the property value to the supplied object. |
boolean |
setProperty(Context context,
java.lang.Object instance,
java.lang.Object[] names,
java.lang.Object value)
Calls setProperty(context, names, 0, value) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyOperatorCache()
Method Detail |
public final void init(Broker b, Settings config) throws InitException
InitException
public final org.webmacro.engine.PropertyOperator getOperator(java.lang.Class type) throws PropertyException
PropertyException
public final org.webmacro.engine.PropertyOperator getOperator(java.lang.Object obj) throws PropertyException
PropertyException
public final java.lang.Object getProperty(Context context, java.lang.Object instance, java.lang.Object[] names, int start) throws PropertyException, java.lang.SecurityException
context
- is used to resolve sub-properties in argumentsinstance
- is the root of introspectionnames
- property names, one per array entry
PropertyException
- the property we'd like to look at
java.lang.SecurityException
- you are not permitted to trypublic final java.lang.Object getProperty(Context context, java.lang.Object instance, java.lang.Object[] names) throws PropertyException, java.lang.SecurityException
PropertyException
java.lang.SecurityException
public final boolean setProperty(Context context, java.lang.Object instance, java.lang.Object[] names, int start, java.lang.Object value) throws PropertyException, java.lang.SecurityException
context
- An object containing a propertynames
- The string names of that propertyvalue
- the new value the property is to be set to
PropertyException
- not possible to set the property
java.lang.SecurityException
- you are not permitted to trypublic final boolean setProperty(Context context, java.lang.Object instance, java.lang.Object[] names, java.lang.Object value) throws PropertyException, java.lang.SecurityException
PropertyException
java.lang.SecurityException
public final java.util.Iterator getIterator(java.lang.Object instance) throws PropertyException
instance
- an object believed to represent a list
PropertyException
- could not extract iterator from instance
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |