org.drools.core.factmodel
Class MapCore<K>
java.lang.Object
org.drools.core.factmodel.MapCore<K>
- All Implemented Interfaces:
- Serializable, TraitableBean<Map,CoreWrapper<Map>>
public class MapCore<K>
- extends Object
- implements TraitableBean<Map,CoreWrapper<Map>>, Serializable
- See Also:
- Serialized Form
MapCore
public MapCore()
MapCore
public MapCore(Map map)
getId
public String getId()
setId
public void setId(String id)
_getDynamicProperties
public Map<String,Object> _getDynamicProperties()
- Specified by:
_getDynamicProperties in interface TraitableBean<Map,CoreWrapper<Map>>
_setDynamicProperties
public void _setDynamicProperties(Map map)
- Specified by:
_setDynamicProperties in interface TraitableBean<Map,CoreWrapper<Map>>
_setTraitMap
public void _setTraitMap(Map map)
- Specified by:
_setTraitMap in interface TraitableBean<Map,CoreWrapper<Map>>
_getTraitMap
public Map<String,Thing<Map>> _getTraitMap()
- Specified by:
_getTraitMap in interface TraitableBean<Map,CoreWrapper<Map>>
addTrait
public void addTrait(String type,
Thing proxy)
throws LogicalTypeInconsistencyException
- Specified by:
addTrait in interface TraitableBean<Map,CoreWrapper<Map>>
- Throws:
LogicalTypeInconsistencyException
getTrait
public Thing getTrait(String type)
- Specified by:
getTrait in interface TraitableBean<Map,CoreWrapper<Map>>
hasTrait
public boolean hasTrait(String type)
- Specified by:
hasTrait in interface TraitableBean<Map,CoreWrapper<Map>>
removeTrait
public Collection<Thing<Map>> removeTrait(String type)
- Specified by:
removeTrait in interface TraitableBean<Map,CoreWrapper<Map>>
removeTrait
public Collection<Thing<Map>> removeTrait(BitSet typeCode)
- Specified by:
removeTrait in interface TraitableBean<Map,CoreWrapper<Map>>
getTraits
public Collection<String> getTraits()
- Specified by:
getTraits in interface TraitableBean<Map,CoreWrapper<Map>>
getMostSpecificTraits
public Collection<Thing> getMostSpecificTraits()
- Specified by:
getMostSpecificTraits in interface TraitableBean<Map,CoreWrapper<Map>>
getCurrentTypeCode
public BitSet getCurrentTypeCode()
- Specified by:
getCurrentTypeCode in interface TraitableBean<Map,CoreWrapper<Map>>
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<Map,CoreWrapper<Map>>
init
public void init(MapCore core)
getCore
public Map getCore()
getTypeDeclaration
public static TypeDeclaration getTypeDeclaration()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.