org.drools.factmodel.traits
Class Entity
java.lang.Object
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
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>
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>
removeTrait
public Thing removeTrait(String type)
- Specified by:
removeTrait in interface TraitableBean<Entity,Entity>
getTraits
public Collection<String> getTraits()
- Specified by:
getTraits in interface TraitableBean<Entity,Entity>
denyTrait
public void denyTrait(Class trait)
throws LogicalTypeInconsistencyException
- Specified by:
denyTrait in interface TraitableBean<Entity,Entity>
- Throws:
LogicalTypeInconsistencyException
allowTrait
public void allowTrait(Class trait)
- Specified by:
allowTrait 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()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.