de.smartics.properties.api.config.domain
Class ResolvedProperty

Package class diagram package ResolvedProperty
java.lang.Object
  extended by de.smartics.properties.api.config.domain.Property
      extended by de.smartics.properties.api.config.domain.ResolvedProperty
All Implemented Interfaces:
Serializable, Comparable< Property>

public final class ResolvedProperty
     
     
extends Property

A resolved property provides, in addition to a Property also the resolved and converted value.

See Also:
Serialized Form

Constructor Summary
ResolvedProperty(PropertyLocation source, String name, String value, String expression, Object resolvedValue)
          Default constructor.
ResolvedProperty(Property plainProperty, String expression, Object resolvedValue)
          Copy constructor.
 
Method Summary
 List<String> getDependencies()
          Returns the names of properties this property depends on.
 Object getResolvedValue()
          Returns the resolved value.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class de.smartics.properties.api.config.domain.Property
compareTo, equals, getName, getSource, getValue, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResolvedProperty

public ResolvedProperty(PropertyLocation source,
                        String name,
                        String value,
                        String expression,
                        Object resolvedValue)
                 throws IllegalArgumentException
Default constructor.

Parameters:
source - the mandatory source where the property value has been defined.
name - the name of the property.
value - the value of the property.
expression - the property expression.
resolvedValue - the resolved value.
Throws:
IllegalArgumentException - if name is blank.

ResolvedProperty

public ResolvedProperty(Property plainProperty,
                        String expression,
                        Object resolvedValue)
Copy constructor.

Parameters:
plainProperty - provides the information to be copied.
expression - the property expression.
resolvedValue - the resolved value.
Method Detail

getResolvedValue

public Object getResolvedValue()
Returns the resolved value. The property value is resolved and converted to this value.

Returns:
the resolved value. May be null.

getDependencies

public List<String> getDependencies()
Returns the names of properties this property depends on. May be null, if this property does not refer to other properties.

Returns:
the names of properties this property depends on.

toString

public String toString()
Description copied from class: Property
Returns the string representation of the object.

Overrides:
toString in class Property
Returns:
the string representation of the object.


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