public interface TraitableBean<K,X extends TraitableBean>
Modifier and Type | Field and Description |
---|---|
static String |
FIELDTMS_FIELD_NAME |
static String |
MAP_FIELD_NAME |
static String |
TRAITSET_FIELD_NAME |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
_getDynamicProperties() |
TraitFieldTMS |
_getFieldTMS() |
Map<String,Thing<K>> |
_getTraitMap() |
void |
_setBottomTypeCode(BitSet code) |
void |
_setDynamicProperties(Map<String,Object> map) |
void |
_setFieldTMS(TraitFieldTMS traitFieldTMS) |
void |
_setTraitMap(Map<String,Thing<K>> map) |
void |
addTrait(String type,
Thing<K> proxy) |
BitSet |
getCurrentTypeCode() |
Collection<Thing> |
getMostSpecificTraits() |
Thing<K> |
getTrait(String type) |
Collection<String> |
getTraits() |
boolean |
hasTrait(String type) |
boolean |
hasTraits() |
Collection<Thing<K>> |
removeTrait(BitSet typeCode) |
Collection<Thing<K>> |
removeTrait(String type) |
static final String MAP_FIELD_NAME
static final String TRAITSET_FIELD_NAME
static final String FIELDTMS_FIELD_NAME
void addTrait(String type, Thing<K> proxy) throws LogicalTypeInconsistencyException
boolean hasTrait(String type)
boolean hasTraits()
Collection<Thing<K>> removeTrait(String type)
Collection<Thing<K>> removeTrait(BitSet typeCode)
Collection<String> getTraits()
Collection<Thing> getMostSpecificTraits()
BitSet getCurrentTypeCode()
void _setBottomTypeCode(BitSet code)
TraitFieldTMS _getFieldTMS()
void _setFieldTMS(TraitFieldTMS traitFieldTMS)
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.