org.ow2.util.substitution.engine.element
Class VariableElement

java.lang.Object
  extended by org.ow2.util.substitution.engine.element.CompositeElement
      extended by org.ow2.util.substitution.engine.element.VariableElement
All Implemented Interfaces:
IResolvableElement

public class VariableElement
extends CompositeElement

A VariableElement is a CompositeElement that knows how to handle multiple level resolution. Example: ${composite.${value}}

Author:
Guillaume Sauthier

Constructor Summary
VariableElement()
           
 
Method Summary
 String getValue(IPropertyResolver resolver)
          Resolve the value result of the composite resolution.
 String toString(int indent)
          Produces an indented String representation of this element.
 
Methods inherited from class org.ow2.util.substitution.engine.element.CompositeElement
getElements, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VariableElement

public VariableElement()
Method Detail

getValue

public String getValue(IPropertyResolver resolver)
Resolve the value result of the composite resolution.

Specified by:
getValue in interface IResolvableElement
Overrides:
getValue in class CompositeElement
Parameters:
resolver - IPropertyResolver to be used
Returns:
a String representation of this resolved element

toString

public String toString(int indent)
Produces an indented String representation of this element.

Specified by:
toString in interface IResolvableElement
Overrides:
toString in class CompositeElement
Parameters:
indent - indentation value
Returns:
a String representation


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.