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

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

public final class ValidatedProperty
     
     
extends DescribedProperty

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

See Also:
Serialized Form

Constructor Summary
ValidatedProperty(DescribedProperty describedProperty, String expression, Object validatedValue)
          Default constructor.
 
Method Summary
 List<String> getDependencies()
          Returns the names of properties this property depends on.
 Object getValidatedValue()
          Returns the validated value.
 String toString()
          Returns the string representation of the object.
 
Methods inherited from class de.smartics.properties.api.config.domain.DescribedProperty
getConfigurationKey, getDescriptor
 
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

ValidatedProperty

public ValidatedProperty(DescribedProperty describedProperty,
                         String expression,
                         Object validatedValue)
Default constructor.

Parameters:
describedProperty - provides the information to be copied.
expression - the property expression.
validatedValue - the validated value. The property value is resolved, converted, and validated to this value. May be null.
Method Detail

getValidatedValue

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

Returns:
the validated 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: DescribedProperty
Returns the string representation of the object.

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


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