Package org.jboss.logmanager.config
Class ValueExpressionImpl<T>
- java.lang.Object
-
- org.jboss.logmanager.config.ValueExpressionImpl<T>
-
- All Implemented Interfaces:
ValueExpression<T>
class ValueExpressionImpl<T> extends java.lang.Object implements ValueExpression<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.logmanager.config.ValueExpression
ValueExpression.Resolver<T>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
expression
private T
resolvedValue
-
Fields inherited from interface org.jboss.logmanager.config.ValueExpression
BOOLEAN_RESOLVER, NULL_BOOLEAN_EXPRESSION, NULL_STRING_EXPRESSION, STRING_RESOLVER
-
-
Constructor Summary
Constructors Constructor Description ValueExpressionImpl(java.lang.String expression, T resolvedValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getResolvedValue()
The resolved value.java.lang.String
getValue()
Gets the value of the value which may or may not be anexpression
.boolean
isExpression()
Checks whether this is an expression or not.java.lang.String
toString()
-
-
-
Field Detail
-
expression
private final java.lang.String expression
-
resolvedValue
private final T resolvedValue
-
-
Constructor Detail
-
ValueExpressionImpl
ValueExpressionImpl(java.lang.String expression, T resolvedValue)
-
-
Method Detail
-
getResolvedValue
public T getResolvedValue()
Description copied from interface:ValueExpression
The resolved value. If this is anexpression
the resolved value will be the value from a system property or the default value from the expression if the system property is not set. If this is not anexpression
the value returned will be the non-expression value ornull
if allowed for the property.- Specified by:
getResolvedValue
in interfaceValueExpression<T>
- Returns:
- the resolved value
-
isExpression
public boolean isExpression()
Description copied from interface:ValueExpression
Checks whether this is an expression or not.- Specified by:
isExpression
in interfaceValueExpression<T>
- Returns:
true
if this is an expression, otherwisefalse
-
getValue
public java.lang.String getValue()
Description copied from interface:ValueExpression
Gets the value of the value which may or may not be anexpression
.- Specified by:
getValue
in interfaceValueExpression<T>
- Returns:
- the value
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfaceValueExpression<T>
- Overrides:
toString
in classjava.lang.Object
-
-