org.drools.factmodel.traits
Class TraitField

java.lang.Object
  extended by org.drools.factmodel.traits.TraitField
All Implemented Interfaces:
Externalizable, Serializable

public class TraitField
extends Object
implements Serializable, Externalizable

See Also:
Serialized Form

Constructor Summary
TraitField()
           
TraitField(TypeWrapper klass, Object value, Object defaultValue, short pos)
           
 
Method Summary
 void disableExplicitSet()
           
 Object don(TraitType trait, Object defaultValue, TypeWrapper wrapper, boolean logical, WorkingMemory wm)
           
 void enableExplicitSet()
           
 Object get()
           
 Object get(TypeWrapper klass)
           
 Object getDefault()
           
 short getPosition()
           
 Set<Class<?>> getRangeTypes()
           
 void readExternal(ObjectInput in)
           
 Object set(Object value, TypeWrapper klass, WorkingMemory wm)
           
 Object shed(TraitType trait, TypeWrapper rangeWrapper, TypeWrapper asWrapper, WorkingMemory workingMemory)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TraitField

public TraitField()

TraitField

public TraitField(TypeWrapper klass,
                  Object value,
                  Object defaultValue,
                  short pos)
Method Detail

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-2013 JBoss by Red Hat. All Rights Reserved.