org.drools.core.factmodel
Class MapCore<K>
java.lang.Object
org.drools.core.factmodel.MapCore<K>
- All Implemented Interfaces:
- Serializable, Map<String,Object>, CoreWrapper<Map>, TraitableBean<Map,CoreWrapper<Map>>
- Direct Known Subclasses:
- LogicalMapCore
public class MapCore<K>
- extends Object
- implements TraitableBean<Map,CoreWrapper<Map>>, Serializable, Map<String,Object>, CoreWrapper<Map>
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
MapCore
public MapCore()
MapCore
public MapCore(Map map)
_getFieldTMS
public TraitFieldTMS _getFieldTMS()
- Specified by:
_getFieldTMS in interface TraitableBean<Map,CoreWrapper<Map>>
_setFieldTMS
public void _setFieldTMS(TraitFieldTMS __$$field_Tms$$)
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>>
hasTraits
public boolean hasTraits()
- Specified by:
hasTraits 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>>
size
public int size()
- Specified by:
size in interface Map<String,Object>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map<String,Object>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey in interface Map<String,Object>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue in interface Map<String,Object>
get
public Object get(Object key)
- Specified by:
get in interface Map<String,Object>
put
public Object put(String key,
Object value)
- Specified by:
put in interface Map<String,Object>
remove
public Object remove(Object key)
- Specified by:
remove in interface Map<String,Object>
putAll
public void putAll(Map m)
- Specified by:
putAll in interface Map<String,Object>
clear
public void clear()
- Specified by:
clear in interface Map<String,Object>
keySet
public Set keySet()
- Specified by:
keySet in interface Map<String,Object>
values
public Collection values()
- Specified by:
values in interface Map<String,Object>
entrySet
public Set<Map.Entry<String,Object>> entrySet()
- Specified by:
entrySet in interface Map<String,Object>
equals
public boolean equals(Object o)
- Specified by:
equals in interface Map<String,Object>- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface Map<String,Object>- 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(Map core)
- Specified by:
init in interface CoreWrapper<Map>
getCore
public Map getCore()
- Specified by:
getCore in interface CoreWrapper<Map>
getTypeDeclaration
public static TypeDeclaration getTypeDeclaration()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.