JBoss Metadata Common 7.2.2.Final

org.jboss.metadata.property
Class SimpleExpressionResolver.ResolutionResult

java.lang.Object
  extended by org.jboss.metadata.property.SimpleExpressionResolver.ResolutionResult
Enclosing interface:
SimpleExpressionResolver

public static class SimpleExpressionResolver.ResolutionResult
extends Object

The result of resolving some expression content.


Constructor Summary
SimpleExpressionResolver.ResolutionResult(String value, boolean isDefault)
          Creates a new ResolutionResult.
 
Method Summary
 String getValue()
          Gets the resolved value;
 boolean isDefault()
          Gets whether the resolved value represents some sort of default value that was embedded in the expression content; e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleExpressionResolver.ResolutionResult

public SimpleExpressionResolver.ResolutionResult(String value,
                                                 boolean isDefault)
Creates a new ResolutionResult.

Parameters:
value - the resolved value. Cannot be null.
isDefault - true if value was a default value encoded in the expression content; false otherwise
Method Detail

getValue

public String getValue()
Gets the resolved value;

Returns:
the value. Will not be null

isDefault

public boolean isDefault()
Gets whether the resolved value represents some sort of default value that was embedded in the expression content; e.g. defaultValue in a traditional JBoss AS style expression with syntax propertyName[,propertyName]*[:defaultValue].

Returns:
true if the value is a default value.

JBoss Metadata Common 7.2.2.Final

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.