public class FromEntityPropertyValueRangeDescriptor extends AbstractFromPropertyValueRangeDescriptor
collectionWrapping, countable, readMethodAccessor
addNullInValueRange, variableDescriptor
Constructor and Description |
---|
FromEntityPropertyValueRangeDescriptor(GenuineVariableDescriptor variableDescriptor,
boolean addNullInValueRange,
Method readMethod) |
Modifier and Type | Method and Description |
---|---|
ValueRange<?> |
extractValueRange(Solution solution,
Object entity) |
boolean |
isEntityIndependent()
If this method return true, this instance is safe to cast to
EntityIndependentValueRangeDescriptor ,
otherwise it requires an entity to determine the ValueRange . |
isCountable, readValueRange
doNullInValueRangeWrapping, getVariableDescriptor, mightContainEntity, toString
public FromEntityPropertyValueRangeDescriptor(GenuineVariableDescriptor variableDescriptor, boolean addNullInValueRange, Method readMethod)
public boolean isEntityIndependent()
ValueRangeDescriptor
EntityIndependentValueRangeDescriptor
,
otherwise it requires an entity to determine the ValueRange
.ValueRange
is the same for all entities of the same solutionpublic ValueRange<?> extractValueRange(Solution solution, Object entity)
solution
- never nullentity
- never null. To avoid this parameter,
use EntityIndependentValueRangeDescriptor.extractValueRange(Solution)
instead.Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.