|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.lang.Construct
A object resolvable from primitive arguments.
Constructor Summary | |
Construct(String value)
Create a new construct using the default java.lang.String class as the base type. |
|
Construct(String target,
String value)
Create a new construct using a supplied target defintion. |
|
Construct(String target,
String method,
String value)
Create a new construct using a supplied target defintion. |
|
Construct(String target,
String method,
Value[] args)
Create a new construct using a supplied target defintion. |
|
Construct(String target,
Value[] args)
Create a new construct using a supplied target defintion. |
|
Construct(ValueDirective directive)
Creation of a new construct using a value directive. |
Method Summary | |
boolean |
equals(Object other)
Compare this instance with a supplied object for equality. |
static Object[] |
getArgs(Map map,
Value[] params,
Object[] args)
Utility operation that consolidates an array of values and supplimentary arguments to an array of objects. |
String |
getBaseValue()
Return the classname of the resolved value. |
String |
getMethodName()
Return the method name to be applied to the target object. |
String |
getTargetExpression()
Return the classname of the resolved value. |
Value[] |
getValues()
Return the set of nested values within this value. |
int |
hashCode()
Compute the instance hashcode value. |
boolean |
isCompound()
Return TRUE if this construct is a compund construct else FALSE. |
Object |
resolve()
Resolve an instance from the value using the context classloader. |
Object |
resolve(boolean isolate)
Resolve an instance from the value using a supplied isolation policy. |
Object |
resolve(Map map)
Resolve an instance from the value using a supplied map. |
Object |
resolve(Map map,
boolean isolate)
Resolve an instance from the value using a supplied context map. |
Object |
resolve(String classname,
Map map,
boolean isolate)
Resolve an instance from the value using a supplied context map. |
String |
toString()
Return a string representation of the construct. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Construct(String value)
value
- the construct valuepublic Construct(String target, String value)
target
- a classname or symbolic referencevalue
- the construct valuepublic Construct(String target, String method, String value)
target
- a classname or symbolic referencemethod
- the method to invoke on the targetvalue
- the construct valuepublic Construct(String target, Value[] args)
target
- the construct classnameargs
- an array of unresolved parameter valuespublic Construct(String target, String method, Value[] args)
target
- the construct classnamemethod
- the method to invoke on the targetargs
- an array of unresolved parameter valuespublic Construct(ValueDirective directive)
directive
- the value directiveMethod Detail |
public static Object[] getArgs(Map map, Value[] params, Object[] args) throws Exception
map
- a map of keys and values used in symbolic target resolutionparams
- the value arrayargs
- supplimentary arguments
Exception
- if an error occurs in argument resolutionpublic boolean isCompound()
public String getMethodName()
public Value[] getValues()
public String getBaseValue()
public String getTargetExpression()
public Object resolve() throws Exception
resolve
in interface Value
Exception
- if an error occurs during value resolutionpublic Object resolve(Map map) throws Exception
resolve
in interface Value
map
- the context map
Exception
- if an error occurs during value resolutionpublic Object resolve(boolean isolate) throws Exception
resolve
in interface Value
isolate
- the isolation policy
Exception
- if an error occurs during value resolutionpublic Object resolve(Map map, boolean isolate) throws Exception
resolve
in interface Value
map
- the context mapisolate
- the isolation policy
Exception
- if error occurs during instance resolutionpublic Object resolve(String classname, Map map, boolean isolate) throws Exception
resolve
in interface Value
classname
- the default classnamemap
- the context mapisolate
- the isolation policy
Exception
- if error occurs during instance resolutionpublic String toString()
public boolean equals(Object other)
other
- the other object
public int hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |