exedio cope

com.exedio.cope.pattern
Class EnumMapField<K extends Enum<K>,V>

java.lang.Object
  extended by com.exedio.cope.Feature
      extended by com.exedio.cope.Pattern
          extended by com.exedio.cope.pattern.EnumMapField<K,V>

public final class EnumMapField<K extends Enum<K>,V>
extends Pattern


Nested Class Summary
 
Nested classes/interfaces inherited from class com.exedio.cope.Pattern
Pattern.BackedItem
 
Method Summary
 V get(Item item, K key)
           
 FunctionField<V> getAttribute(K key)
          Deprecated. renamed to getField(Enum).
 FunctionField<V> getField(K key)
           
 Class<K> getKeyClass()
           
 List<Wrapper> getWrappers()
           
static
<K extends Enum<K>,V>
EnumMapField<K,V>
newMap(Class<K> keyClass, FunctionField<V> value)
           
 void set(Item item, K key, V value)
           
 
Methods inherited from class com.exedio.cope.Pattern
addSource, getGeneratedTypes, getSourceFields, getSources, getSourceTypes, getType, initialize, newSourceType, newSourceType, newType, newType, registerSource
 
Methods inherited from class com.exedio.cope.Feature
getAnnotation, getID, getName, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

newMap

public static final <K extends Enum<K>,V> EnumMapField<K,V> newMap(Class<K> keyClass,
                                                                   FunctionField<V> value)

getKeyClass

public Class<K> getKeyClass()

getField

public FunctionField<V> getField(K key)

getAttribute

@Deprecated
public FunctionField<V> getAttribute(K key)
Deprecated. renamed to getField(Enum).


getWrappers

public List<Wrapper> getWrappers()
Overrides:
getWrappers in class Feature

get

public V get(Item item,
             K key)

set

public void set(Item item,
                K key,
                V value)

Cope with
Object
Persistence

SourceForge.net LogoCopyright © 2004-2008 exedio Gesellschaft für Softwareentwicklung mbH. All rights reserved.
svn.12752 build.5319 20090312135114