OptaPlanner core 6.2.0.Beta1

org.optaplanner.core.impl.domain.variable.descriptor
Class VariableDescriptor

java.lang.Object
  extended by org.optaplanner.core.impl.domain.variable.descriptor.VariableDescriptor
Direct Known Subclasses:
GenuineVariableDescriptor, ShadowVariableDescriptor

public abstract class VariableDescriptor
extends Object


Field Summary
protected  EntityDescriptor entityDescriptor
           
protected  String variableName
           
protected  PropertyAccessor variablePropertyAccessor
           
 
Constructor Summary
VariableDescriptor(EntityDescriptor entityDescriptor, PropertyDescriptor propertyDescriptor)
           
 
Method Summary
 List<VariableListener> buildVariableListenerList()
           
 EntityDescriptor getEntityDescriptor()
           
 String getSimpleEntityAndVariableName()
           
 Object getValue(Object entity)
           
 String getVariableName()
           
 Class<?> getVariablePropertyType()
           
 boolean hasAnyShadow()
           
 void registerShadowVariableDescriptor(ShadowVariableDescriptor shadowVariableDescriptor)
           
 void setValue(Object entity, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

entityDescriptor

protected final EntityDescriptor entityDescriptor

variablePropertyAccessor

protected final PropertyAccessor variablePropertyAccessor

variableName

protected final String variableName
Constructor Detail

VariableDescriptor

public VariableDescriptor(EntityDescriptor entityDescriptor,
                          PropertyDescriptor propertyDescriptor)
Method Detail

getEntityDescriptor

public EntityDescriptor getEntityDescriptor()

getVariableName

public String getVariableName()

getSimpleEntityAndVariableName

public String getSimpleEntityAndVariableName()

getVariablePropertyType

public Class<?> getVariablePropertyType()

registerShadowVariableDescriptor

public void registerShadowVariableDescriptor(ShadowVariableDescriptor shadowVariableDescriptor)

hasAnyShadow

public boolean hasAnyShadow()

buildVariableListenerList

public List<VariableListener> buildVariableListenerList()

getValue

public Object getValue(Object entity)

setValue

public void setValue(Object entity,
                     Object value)

toString

public String toString()
Overrides:
toString in class Object

OptaPlanner core 6.2.0.Beta1

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.