net.dpml.lang
Class ValueDecoder

java.lang.Object
  extended by net.dpml.lang.ValueDecoder

public final class ValueDecoder
extends Object

Utility used to decode values from DOM elements.

Version:
1.1.0
Author:
Digital Product Meta Library

Constructor Summary
ValueDecoder()
           
 
Method Summary
 Value decodeValue(Element element)
          Build a single value instance from a supplied element.
 Value decodeValue(Element element, Resolver resolver)
          Build a single value instance from a supplied element.
 Value[] decodeValues(Element[] elements)
          Build an array of values for the supplied element array.
 Value[] decodeValues(Element[] elements, Resolver resolver)
          Build an array of values for the supplied element array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueDecoder

public ValueDecoder()
Method Detail

decodeValues

public Value[] decodeValues(Element[] elements)
Build an array of values for the supplied element array.

Parameters:
elements - the elements
Returns:
the resolved values

decodeValues

public Value[] decodeValues(Element[] elements,
                            Resolver resolver)
Build an array of values for the supplied element array.

Parameters:
elements - the elements
Returns:
the resolved values

decodeValue

public Value decodeValue(Element element)
Build a single value instance from a supplied element.

Parameters:
element - the element
Returns:
the resolved value

decodeValue

public Value decodeValue(Element element,
                         Resolver resolver)
Build a single value instance from a supplied element.

Parameters:
element - the element
Returns:
the resolved value