org.drools.factmodel
Class MapCore<K>

java.lang.Object
  extended by org.drools.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 Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from interface org.drools.factmodel.traits.TraitableBean
FIELDTMS_FIELD_NAME, MAP_FIELD_NAME, TRAITSET_FIELD_NAME
 
Constructor Summary
MapCore()
           
MapCore(Map map)
           
 
Method Summary
 Map<String,Object> _getDynamicProperties()
           
 TraitFieldTMS _getFieldTMS()
           
 Map<String,Thing<Map>> _getTraitMap()
           
 void _setBottomTypeCode(BitSet bottomTypeCode)
           
 void _setDynamicProperties(Map map)
           
 void _setFieldTMS(TraitFieldTMS __$$field_Tms$$)
           
 void _setTraitMap(Map map)
           
 void addTrait(String type, Thing proxy)
           
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,Object>> entrySet()
           
 boolean equals(Object o)
           
 Object get(Object key)
           
 Map getCore()
           
 BitSet getCurrentTypeCode()
           
 String getId()
           
 Collection<Thing> getMostSpecificTraits()
           
 Thing getTrait(String type)
           
 Collection<String> getTraits()
           
static TypeDeclaration getTypeDeclaration()
           
 int hashCode()
           
 boolean hasTrait(String type)
           
 boolean hasTraits()
           
 void init(Map core)
           
 boolean isEmpty()
           
 boolean isTraitMapInitialized()
           
 Set keySet()
           
 Object put(String key, Object value)
           
 void putAll(Map m)
           
 Object remove(Object key)
           
 Collection<Thing<Map>> removeTrait(BitSet typeCode)
           
 Collection<Thing<Map>> removeTrait(String type)
           
 void setId(String id)
           
 int size()
           
 String toString()
           
 Collection values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapCore

public MapCore()

MapCore

public MapCore(Map map)
Method Detail

_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-2013 JBoss by Red Hat. All Rights Reserved.