org.drools.core.factmodel.traits
Class Entity
java.lang.Object
org.drools.core.factmodel.traits.Entity
- All Implemented Interfaces:
- Serializable, TraitableBean<Entity,Entity>
public class Entity
- extends Object
- implements TraitableBean<Entity,Entity>, Serializable
- See Also:
- Serialized Form
Entity
public Entity()
Entity
public Entity(String id)
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.