org.drools.factmodel.traits
Class TraitField
java.lang.Object
org.drools.factmodel.traits.TraitField
- All Implemented Interfaces:
- Externalizable, Serializable
public class TraitField
- extends Object
- implements Serializable, Externalizable
- See Also:
- Serialized Form
TraitField
public TraitField()
TraitField
public TraitField(TypeWrapper klass,
Object value,
Object defaultValue,
short pos)
set
public Object set(Object value,
TypeWrapper klass,
WorkingMemory wm)
get
public Object get()
get
public Object get(TypeWrapper klass)
don
public Object don(TraitType trait,
Object defaultValue,
TypeWrapper wrapper,
boolean logical,
WorkingMemory wm)
shed
public Object shed(TraitType trait,
TypeWrapper rangeWrapper,
TypeWrapper asWrapper,
WorkingMemory workingMemory)
getDefault
public Object getDefault()
disableExplicitSet
public void disableExplicitSet()
enableExplicitSet
public void enableExplicitSet()
getRangeTypes
public Set<Class<?>> getRangeTypes()
toString
public String toString()
- Overrides:
toString in class Object
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
getPosition
public short getPosition()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.