|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.lang.Construct
net.dpml.metro.data.ValueDirective
public final class ValueDirective
A ValueDirective represents a single constructed argument value. The directive
holds a classname (default value of java.lang.String) and possible sub-directives.
The directives value is established by creating a new instance using the classname
together with the values directived from the sub-sidiary directives as constructor arguments.
XML
A value is a nested structure containing a string value or contructor parameter arguments.
<-- Simple string param declaration -->
<value>London</value>
<-- Typed value declaration -->
<value class="java.io.File">./home</value>
<-- Multi-argument parameter declaration -->
<value class="MyClass">
<value class="java.io.File">./home</value>
<value>London</value>
</value>
| Constructor Summary | |
|---|---|
ValueDirective(String value)
Create a new construct using the default java.lang.String class as the base type. |
|
ValueDirective(String target,
String value)
Create a new construct using a supplied target defintion. |
|
ValueDirective(String target,
String method,
String value)
Create a new construct using a supplied target defintion. |
|
ValueDirective(String target,
String method,
Value[] args)
Create a new construct using a supplied target defintion. |
|
ValueDirective(String target,
Value[] args)
Create a new construct using a supplied target defintion. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
Test if the supplied object is equal to this object. |
URI |
getPartHandlerURI()
Return the part handler uri. |
int |
hashCode()
Return the hashcode for the instance. |
protected static URI |
setupURI(String spec)
Internal utility to create a static uri. |
| Methods inherited from class net.dpml.lang.Construct |
|---|
getArgs, getBaseValue, getMethodName, getTargetExpression, getValues, isCompound, resolve, resolve, resolve, resolve, resolve, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValueDirective(String value)
value - the construct value
public ValueDirective(String target,
String value)
target - a classname or symbolic referencevalue - the construct value
public ValueDirective(String target,
String method,
String value)
target - a classname or symbolic referencemethod - the method to invoke on the targetvalue - the construct value
public ValueDirective(String target,
Value[] args)
target - the construct classnameargs - an array of unresolved parameter values
public ValueDirective(String target,
String method,
Value[] args)
target - the construct classnamemethod - the method to invoke on the targetargs - an array of unresolved parameter values| Method Detail |
|---|
public boolean equals(Object other)
equals in class Constructother - the object to compare with this instance
public int hashCode()
hashCode in class Constructpublic URI getPartHandlerURI()
protected static URI setupURI(String spec)
spec - the uri spec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||