public abstract class DerivedFromSinglePropertyType<K,T> extends DerivedPropertyType<T>
Constructor and Description |
---|
DerivedFromSinglePropertyType(String typeName,
Property<K> derivedFromType)
Constructor where the default value is
null . |
DerivedFromSinglePropertyType(String typeName,
Property<K> derivedFromType,
T defaultValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Property<K> |
getDerivedFromProperty()
Gets the one Property which this PropertyType is dependent on.
|
K |
getDerivedFromPropertyValue()
Gets the value K of the dependent property.
|
getDerivedFrom, getDerivedFromCount, getDerivedFromProperty, getDerivedFromRestrictions, getDerivedToRestrictions, getMaxDerivedFrom, getMinDerivedFrom, getRestrictions, isMinAndMaxTheSame, isUseMaxDerivedFrom, isUseMinDerivedFrom, validateConstraints, validateDerivedValue, validateValue
equals, getDefaultValue, getDefaultValueAsString, getDefaultValueDescription, getDescription, getDescription, getInitializationPriority, getIo, getLogger, getTypeName, hasDefaultValue, isDefaultValueValid, postGetValueProcessing, setDefaultValue, setInitializationPriority, setIo, setTypedValue, setTypeName, toString, toType, validate, validateNullType
public DerivedFromSinglePropertyType(String typeName, Property<K> derivedFromType) throws NullPointerException
null
.typeName
- a short name of the the resulting type. Example "Text from file", "PublicKey from file", "XML from URL".derivedFromType
- an array of other Property's, at least one must be provided.NullPointerException
- if typeName is null
.public DerivedFromSinglePropertyType(String typeName, Property<K> derivedFromType, T defaultValue) throws NullPointerException
typeName
- a short name of the the resulting type. Example "Text from file", "PublicKey from file", "XML from URL".derivedFromType
- an array of other Property's, at least one must be provided.defaultValue
- a default value of type T.NullPointerException
- if typeName is null
.public final Property<K> getDerivedFromProperty()
public final K getDerivedFromPropertyValue()