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

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

public class CompositeElement
extends Object
implements IResolvableElement

A CompositeElement is a resolvable element that contains inner resolvable elements. Example: composite.${value}

Author:
Guillaume Sauthier

Constructor Summary
CompositeElement()
           
 
Method Summary
 List<IResolvableElement> getElements()
           
 String getValue(IPropertyResolver resolver)
          Resolve the value of this element using the given resolver.
 String toString()
           
 String toString(int indent)
          Produces an indented String representation of this element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeElement

public CompositeElement()
Method Detail

getElements

public List<IResolvableElement> getElements()

getValue

public String getValue(IPropertyResolver resolver)
Resolve the value of this element using the given resolver. The composite simply concatenate the resolved value of all inner resolvable elements

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

toString

public String toString()
Overrides:
toString in class Object

toString

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

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


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