Drools :: Core 6.0.0.Beta5

org.drools.core.factmodel
Class MapCore<K>

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.drools.core.factmodel.traits.TraitableBean
MAP_FIELD_NAME, TRAITSET_FIELD_NAME
 
Constructor Summary
MapCore()
           
MapCore(Map map)
           
 
Method Summary
 Map<String,Object> _getDynamicProperties()
           
 Map<String,Thing<Map>> _getTraitMap()
           
 void _setBottomTypeCode(BitSet bottomTypeCode)
           
 void _setDynamicProperties(Map map)
           
 void _setTraitMap(Map map)
           
 void addTrait(String type, Thing proxy)
           
 boolean equals(Object o)
           
 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)
           
 void init(MapCore core)
           
 boolean isTraitMapInitialized()
           
 Collection<Thing<Map>> removeTrait(BitSet typeCode)
           
 Collection<Thing<Map>> removeTrait(String type)
           
 void setId(String id)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapCore

public MapCore()

MapCore

public MapCore(Map map)
Method Detail

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()

Drools :: Core 6.0.0.Beta5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.