org.constretto.internal
Class DefaultConstrettoConfiguration
java.lang.Object
org.constretto.internal.DefaultConstrettoConfiguration
- All Implemented Interfaces:
- java.lang.Iterable<Property>, ConstrettoConfiguration
public class DefaultConstrettoConfiguration
- extends java.lang.Object
- implements ConstrettoConfiguration
- Author:
- Kaare Nilsen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConstrettoConfiguration
public DefaultConstrettoConfiguration(java.util.Map<java.lang.String,java.util.List<ConfigurationValue>> configuration,
java.util.List<java.lang.String> originalTags)
DefaultConstrettoConfiguration
public DefaultConstrettoConfiguration(java.util.Map<java.lang.String,java.util.List<ConfigurationValue>> configuration)
evaluateTo
public <K> K evaluateTo(java.lang.String expression,
K defaultValue)
- Specified by:
evaluateTo in interface ConstrettoConfiguration
evaluateToArray
public <K> java.util.List<K> evaluateToArray(java.lang.Class<K> targetClass,
java.lang.String expression)
- Specified by:
evaluateToArray in interface ConstrettoConfiguration
evaluateToMap
public <K,V> java.util.Map<K,V> evaluateToMap(java.lang.Class<K> keyClass,
java.lang.Class<V> valueClass,
java.lang.String expression)
- Specified by:
evaluateToMap in interface ConstrettoConfiguration
evaluateTo
public <K> K evaluateTo(java.lang.Class<K> targetClass,
java.lang.String expression)
throws ConstrettoExpressionException
- Specified by:
evaluateTo in interface ConstrettoConfiguration
- Throws:
ConstrettoExpressionException
evaluateToString
public java.lang.String evaluateToString(java.lang.String expression)
throws ConstrettoExpressionException
- Specified by:
evaluateToString in interface ConstrettoConfiguration
- Throws:
ConstrettoExpressionException
evaluateToBoolean
public java.lang.Boolean evaluateToBoolean(java.lang.String expression)
throws ConstrettoExpressionException
- Specified by:
evaluateToBoolean in interface ConstrettoConfiguration
- Throws:
ConstrettoExpressionException
evaluateToDouble
public java.lang.Double evaluateToDouble(java.lang.String expression)
throws ConstrettoExpressionException
- Specified by:
evaluateToDouble in interface ConstrettoConfiguration
- Throws:
ConstrettoExpressionException
evaluateToLong
public java.lang.Long evaluateToLong(java.lang.String expression)
throws ConstrettoExpressionException
- Specified by:
evaluateToLong in interface ConstrettoConfiguration
- Throws:
ConstrettoExpressionException
evaluateToFloat
public java.lang.Float evaluateToFloat(java.lang.String expression)
throws ConstrettoExpressionException
- Specified by:
evaluateToFloat in interface ConstrettoConfiguration
- Throws:
ConstrettoExpressionException
evaluateToInt
public java.lang.Integer evaluateToInt(java.lang.String expression)
throws ConstrettoExpressionException
- Specified by:
evaluateToInt in interface ConstrettoConfiguration
- Throws:
ConstrettoExpressionException
evaluateToShort
public java.lang.Short evaluateToShort(java.lang.String expression)
throws ConstrettoExpressionException
- Specified by:
evaluateToShort in interface ConstrettoConfiguration
- Throws:
ConstrettoExpressionException
evaluateToByte
public java.lang.Byte evaluateToByte(java.lang.String expression)
throws ConstrettoExpressionException
- Specified by:
evaluateToByte in interface ConstrettoConfiguration
- Throws:
ConstrettoExpressionException
as
public <T> T as(java.lang.Class<T> configurationClass)
throws ConstrettoException
- Specified by:
as in interface ConstrettoConfiguration
- Throws:
ConstrettoException
on
public <T> T on(T objectToConfigure)
throws ConstrettoException
- Specified by:
on in interface ConstrettoConfiguration
- Throws:
ConstrettoException
hasValue
public boolean hasValue(java.lang.String expression)
- Specified by:
hasValue in interface ConstrettoConfiguration
appendTag
public void appendTag(java.lang.String... newtags)
- Specified by:
appendTag in interface ConstrettoConfiguration
prependTag
public void prependTag(java.lang.String... newtags)
- Specified by:
prependTag in interface ConstrettoConfiguration
resetTags
public void resetTags(boolean reconfigure)
- Specified by:
resetTags in interface ConstrettoConfiguration
clearTags
public void clearTags(boolean reconfigure)
- Specified by:
clearTags in interface ConstrettoConfiguration
removeTag
public void removeTag(java.lang.String... newTags)
- Specified by:
removeTag in interface ConstrettoConfiguration
iterator
public java.util.Iterator<Property> iterator()
- Specified by:
iterator in interface java.lang.Iterable<Property>
reconfigure
public void reconfigure()
- Specified by:
reconfigure in interface ConstrettoConfiguration
Copyright © 2008-2011. All Rights Reserved.