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

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

public class FixedValueElement
extends Object
implements IResolvableElement

a FixedValueElement is a resolvable element that will always return the same value.

Author:
Guillaume Sauthier

Constructor Summary
FixedValueElement(String value)
           
 
Method Summary
 String getValue(IPropertyResolver resolver)
          Simply return the initially provided value
 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

FixedValueElement

public FixedValueElement(String value)
Method Detail

getValue

public String getValue(IPropertyResolver resolver)
Simply return the initially provided value

Specified by:
getValue in interface IResolvableElement
Parameters:
resolver - not 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.