net.dpml.metro.tools
Class ValueDataType

java.lang.Object
  extended by net.dpml.metro.tools.ValueDataType
All Implemented Interfaces:
ValueBuilder
Direct Known Subclasses:
EntryDataType

public class ValueDataType
extends Object
implements ValueBuilder

Defintion of a context entry parameter directive.

Version:
1.1.3
Author:
Digital Product Meta Library

Constructor Summary
ValueDataType()
           
 
Method Summary
 Value buildValue(ClassLoader classloader)
          Build a value datastructure.
 ValueDataType createValue()
          Create, assign and return a new nested entry constructor parameter.
 String getClassname()
          Return the context entry parameter classname.
 Class getTargetClass(ClassLoader classloader)
          Return the base classname.
 String getValue()
          Return the value of the context entry param.
 ValueBuilder[] getValueBuilders()
          Return the set of nested param directives.
 void setClass(String classname)
          Set the context entry classname.
 void setMethod(String method)
          Set the method name.
 void setValue(String value)
          Set the value of the context entry parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueDataType

public ValueDataType()
Method Detail

setClass

public void setClass(String classname)
Set the context entry classname.

Parameters:
classname - the context entry classname

setMethod

public void setMethod(String method)
Set the method name.

Parameters:
method - the name of a static method

getClassname

public String getClassname()
Return the context entry parameter classname.

Returns:
the classname

setValue

public void setValue(String value)
Set the value of the context entry parameter.

Parameters:
value - the param value

getValue

public String getValue()
Return the value of the context entry param.

Returns:
the value

createValue

public ValueDataType createValue()
Create, assign and return a new nested entry constructor parameter.

Returns:
the new context entry param

getValueBuilders

public ValueBuilder[] getValueBuilders()
Return the set of nested param directives.

Returns:
the params

buildValue

public Value buildValue(ClassLoader classloader)
Build a value datastructure.

Specified by:
buildValue in interface ValueBuilder
Parameters:
classloader - the working classloader
Returns:
the serializable value descriptor

getTargetClass

public Class getTargetClass(ClassLoader classloader)
Return the base classname.

Specified by:
getTargetClass in interface ValueBuilder
Parameters:
classloader - the working classloader
Returns:
the target class