org.drools.factmodel.traits
Class Entity

java.lang.Object
  extended by org.drools.factmodel.traits.Entity
All Implemented Interfaces:
Serializable, TraitableBean<Entity,Entity>

public class Entity
extends Object
implements TraitableBean<Entity,Entity>, Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.drools.factmodel.traits.TraitableBean
FIELDTMS_FIELD_NAME, MAP_FIELD_NAME, TRAITSET_FIELD_NAME
 
Constructor Summary
Entity()
           
Entity(String id)
           
 
Method Summary
 Map<String,Object> _getDynamicProperties()
           
 TraitFieldTMS _getFieldTMS()
           
 Map<String,Thing<Entity>> _getTraitMap()
           
 void _setBottomTypeCode(BitSet bottomTypeCode)
           
 void _setDynamicProperties(Map map)
           
 void _setFieldTMS(TraitFieldTMS __$$field_Tms$$)
           
 void _setTraitMap(Map map)
           
 void addTrait(String type, Thing proxy)
           
 boolean equals(Object o)
           
 BitSet getCurrentTypeCode()
           
 String getId()
           
 Collection<Thing> getMostSpecificTraits()
           
 Thing getTrait(String type)
           
 Collection<String> getTraits()
           
 int hashCode()
           
 boolean hasTrait(String type)
           
 boolean hasTraits()
           
 boolean isTraitMapInitialized()
           
 Collection<Thing<Entity>> removeTrait(BitSet typeCode)
           
 Collection<Thing<Entity>> removeTrait(String type)
           
 void setId(String id)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Entity

public Entity()

Entity

public Entity(String id)
Method Detail

getId

public String getId()

setId

public void setId(String id)

_getDynamicProperties

public Map<String,Object> _getDynamicProperties()
Specified by:
_getDynamicProperties in interface TraitableBean<Entity,Entity>

_setDynamicProperties

public void _setDynamicProperties(Map map)
Specified by:
_setDynamicProperties in interface TraitableBean<Entity,Entity>

_getFieldTMS

public TraitFieldTMS _getFieldTMS()
Specified by:
_getFieldTMS in interface TraitableBean<Entity,Entity>

_setFieldTMS

public void _setFieldTMS(TraitFieldTMS __$$field_Tms$$)

_setTraitMap

public void _setTraitMap(Map map)
Specified by:
_setTraitMap in interface TraitableBean<Entity,Entity>

_getTraitMap

public Map<String,Thing<Entity>> _getTraitMap()
Specified by:
_getTraitMap in interface TraitableBean<Entity,Entity>

addTrait

public void addTrait(String type,
                     Thing proxy)
              throws LogicalTypeInconsistencyException
Specified by:
addTrait in interface TraitableBean<Entity,Entity>
Throws:
LogicalTypeInconsistencyException

getTrait

public Thing getTrait(String type)
Specified by:
getTrait in interface TraitableBean<Entity,Entity>

hasTrait

public boolean hasTrait(String type)
Specified by:
hasTrait in interface TraitableBean<Entity,Entity>

hasTraits

public boolean hasTraits()
Specified by:
hasTraits in interface TraitableBean<Entity,Entity>

removeTrait

public Collection<Thing<Entity>> removeTrait(String type)
Specified by:
removeTrait in interface TraitableBean<Entity,Entity>

removeTrait

public Collection<Thing<Entity>> removeTrait(BitSet typeCode)
Specified by:
removeTrait in interface TraitableBean<Entity,Entity>

getTraits

public Collection<String> getTraits()
Specified by:
getTraits in interface TraitableBean<Entity,Entity>

getMostSpecificTraits

public Collection<Thing> getMostSpecificTraits()
Specified by:
getMostSpecificTraits in interface TraitableBean<Entity,Entity>

getCurrentTypeCode

public BitSet getCurrentTypeCode()
Specified by:
getCurrentTypeCode in interface TraitableBean<Entity,Entity>

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isTraitMapInitialized

public boolean isTraitMapInitialized()

_setBottomTypeCode

public void _setBottomTypeCode(BitSet bottomTypeCode)
Specified by:
_setBottomTypeCode in interface TraitableBean<Entity,Entity>

toString

public String toString()
Overrides:
toString in class Object


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