JBoss Metadata Common 7.0.4.Final-redhat-1

org.jboss.metadata.javaee.support
Class MappedMetaDataWithDescriptions<T extends MappableMetaData>

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
          extended by org.jboss.metadata.javaee.support.MappedMetaDataWithDescriptions<T>
Type Parameters:
T - the metadata type
All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, IdMetaData, MappedMetaData<T>, WithDescriptions
Direct Known Subclasses:
ResourceManagersMetaData

public abstract class MappedMetaDataWithDescriptions<T extends MappableMetaData>
extends IdMetaDataImplWithDescriptions
implements MappedMetaData<T>

MappedMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
protected MappedMetaDataWithDescriptions(String keyName)
          Create a new MappedMetaData.
 
Method Summary
 boolean add(T o)
           
 boolean addAll(Collection<? extends T> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 boolean containsKey(String key)
          Returns true if this mapped meta data contains a meta data entry for the specified key.
 boolean equals(Object obj)
           
 T get(String key)
          Get the metadata for the given key
 int hashCode()
           
 boolean isEmpty()
           
 Iterator<T> iterator()
           
 Set<String> keySet()
          Get the key set
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 int size()
           
 Object[] toArray()
           
<X> X[]
toArray(X[] a)
           
 String toString()
           
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImplWithDescriptions
getDescriptions, setDescriptions
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, getId, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.javaee.support.IdMetaData
getId, setId
 

Constructor Detail

MappedMetaDataWithDescriptions

protected MappedMetaDataWithDescriptions(String keyName)
Create a new MappedMetaData.

Parameters:
keyName - the key name
Method Detail

containsKey

public boolean containsKey(String key)
Description copied from interface: MappedMetaData
Returns true if this mapped meta data contains a meta data entry for the specified key.

Specified by:
containsKey in interface MappedMetaData<T extends MappableMetaData>
Parameters:
key - the key of the mappable meta data
Returns:
true if the key can be found

get

public T get(String key)
Get the metadata for the given key

Specified by:
get in interface MappedMetaData<T extends MappableMetaData>
Parameters:
key - the key
Returns:
the metadata for the given key, or null if the map contains no mapping for this key

keySet

public Set<String> keySet()
Description copied from interface: MappedMetaData
Get the key set

Specified by:
keySet in interface MappedMetaData<T extends MappableMetaData>
Returns:
the key set

add

public boolean add(T o)
Specified by:
add in interface Collection<T extends MappableMetaData>

clear

public void clear()
Specified by:
clear in interface Collection<T extends MappableMetaData>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<T extends MappableMetaData>

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T extends MappableMetaData>
Specified by:
iterator in interface Collection<T extends MappableMetaData>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<T extends MappableMetaData>

size

public int size()
Specified by:
size in interface Collection<T extends MappableMetaData>

addAll

public boolean addAll(Collection<? extends T> c)
Specified by:
addAll in interface Collection<T extends MappableMetaData>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<T extends MappableMetaData>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<T extends MappableMetaData>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<T extends MappableMetaData>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<T extends MappableMetaData>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<T extends MappableMetaData>

toArray

public <X> X[] toArray(X[] a)
Specified by:
toArray in interface Collection<T extends MappableMetaData>

equals

public boolean equals(Object obj)
Specified by:
equals in interface Collection<T extends MappableMetaData>
Overrides:
equals in class IdMetaDataImpl

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<T extends MappableMetaData>
Overrides:
hashCode in class IdMetaDataImpl

toString

public String toString()
Overrides:
toString in class Object

JBoss Metadata Common 7.0.4.Final-redhat-1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.