org.joda.beans.impl.direct
Class DirectMetaPropertyMap

java.lang.Object
  extended by org.joda.beans.impl.direct.DirectMetaPropertyMap
All Implemented Interfaces:
Map<String,MetaProperty<?>>

public final class DirectMetaPropertyMap
extends Object
implements Map<String,MetaProperty<?>>

A map of name to meta-property designed for use by the code generator.

This meta-property map implementation is designed primarily for code-generation. It stores a reference to the meta-bean and the meta-properties. The meta-properties are accessed using DirectMetaBean.metaPropertyGet(String).

This class is immutable and thread-safe.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
DirectMetaPropertyMap(DirectMetaBean metaBean, DirectMetaPropertyMap parent, String... propertyNames)
          Constructor.
 
Method Summary
 void clear()
           
 boolean containsKey(Object propertyName)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,MetaProperty<?>>> entrySet()
           
 MetaProperty<Object> get(Object propertyName)
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 MetaProperty<?> put(String key, MetaProperty<?> value)
           
 void putAll(Map<? extends String,? extends MetaProperty<?>> m)
           
 MetaProperty<?> remove(Object key)
           
 int size()
           
 Collection<MetaProperty<?>> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

DirectMetaPropertyMap

public DirectMetaPropertyMap(DirectMetaBean metaBean,
                             DirectMetaPropertyMap parent,
                             String... propertyNames)
Constructor.

Parameters:
metaBean - the meta-bean, not null
parent - the superclass parent, may be null
propertyNames - the property names, not null
Method Detail

size

public int size()
Specified by:
size in interface Map<String,MetaProperty<?>>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,MetaProperty<?>>

get

public MetaProperty<Object> get(Object propertyName)
Specified by:
get in interface Map<String,MetaProperty<?>>

containsKey

public boolean containsKey(Object propertyName)
Specified by:
containsKey in interface Map<String,MetaProperty<?>>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,MetaProperty<?>>

put

public MetaProperty<?> put(String key,
                           MetaProperty<?> value)
Specified by:
put in interface Map<String,MetaProperty<?>>

remove

public MetaProperty<?> remove(Object key)
Specified by:
remove in interface Map<String,MetaProperty<?>>

putAll

public void putAll(Map<? extends String,? extends MetaProperty<?>> m)
Specified by:
putAll in interface Map<String,MetaProperty<?>>

clear

public void clear()
Specified by:
clear in interface Map<String,MetaProperty<?>>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,MetaProperty<?>>

values

public Collection<MetaProperty<?>> values()
Specified by:
values in interface Map<String,MetaProperty<?>>

entrySet

public Set<Map.Entry<String,MetaProperty<?>>> entrySet()
Specified by:
entrySet in interface Map<String,MetaProperty<?>>


Copyright © 2007–2014 Joda.org. All rights reserved.