de.smartics.properties.api.core.domain
Class PropertyExpression

Package class diagram package PropertyExpression
java.lang.Object
  extended by de.smartics.properties.api.core.domain.PropertyExpression
All Implemented Interfaces:
Serializable

public final class PropertyExpression
     
     
extends Object
implements Serializable

Provides information about the expression to evaluate a default value for a property.

See Also:
Serialized Form

Field Summary
static PropertyExpression NO_EXPRESSION
          The expression instance to signal that there is no property expression.
 
Method Summary
static PropertyExpression create(String expression)
          Creates an instance of PropertyExpression with the given expression string.
 String getExpression()
          Returns the expression string.
 boolean hasExpression()
          Checks if an expression string is present.
 String toString()
          Returns the name of the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_EXPRESSION

public static final PropertyExpression NO_EXPRESSION
The expression instance to signal that there is no property expression.

Method Detail

create

public static PropertyExpression create(String expression)
Creates an instance of PropertyExpression with the given expression string.

Parameters:
expression - the expression string.
Returns:
the created instance. If the expression is blank, the singleton expression NO_EXPRESSION is returned.

hasExpression

public boolean hasExpression()
Checks if an expression string is present.

Returns:
true if the expression string is not null , false if it is null.

getExpression

public String getExpression()
Returns the expression string.

Returns:
the expression string. May be null.

toString

public String toString()
Returns the name of the type.

Overrides:
toString in class Object
Returns:
the name of the type.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.