Package org.jboss.logmanager.config
Interface ValueExpression<T>
-
public interface ValueExpression<T>Represents a possible value expression. A value is said to be an expression if it matches a${system.property:DEFAULT_VALUE}pattern.- Author:
- James R. Perkins
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceValueExpression.Resolver<T>Resolves the value expression from an expression.
-
Field Summary
Fields Modifier and Type Field Description static ValueExpression.Resolver<java.lang.Boolean>BOOLEAN_RESOLVERstatic ValueExpression<java.lang.Boolean>NULL_BOOLEAN_EXPRESSIONstatic ValueExpression<java.lang.String>NULL_STRING_EXPRESSIONstatic ValueExpression.Resolver<java.lang.String>STRING_RESOLVER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetResolvedValue()The resolved value.java.lang.StringgetValue()Gets the value of the value which may or may not be anexpression.booleanisExpression()Checks whether this is an expression or not.java.lang.StringtoString()
-
-
-
Field Detail
-
NULL_STRING_EXPRESSION
static final ValueExpression<java.lang.String> NULL_STRING_EXPRESSION
-
NULL_BOOLEAN_EXPRESSION
static final ValueExpression<java.lang.Boolean> NULL_BOOLEAN_EXPRESSION
-
STRING_RESOLVER
static final ValueExpression.Resolver<java.lang.String> STRING_RESOLVER
-
BOOLEAN_RESOLVER
static final ValueExpression.Resolver<java.lang.Boolean> BOOLEAN_RESOLVER
-
-
Method Detail
-
getResolvedValue
T getResolvedValue()
The resolved value. If this is anexpressionthe 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 anexpressionthe value returned will be the non-expression value ornullif allowed for the property.- Returns:
- the resolved value
-
isExpression
boolean isExpression()
Checks whether this is an expression or not.- Returns:
trueif this is an expression, otherwisefalse
-
getValue
java.lang.String getValue()
Gets the value of the value which may or may not be anexpression.- Returns:
- the value
-
toString
java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-