org.deegree.gml.dictionary
Class GenericDictionary

java.lang.Object
  extended by org.deegree.gml.dictionary.GenericDefinition
      extended by org.deegree.gml.dictionary.GenericDictionary
All Implemented Interfaces:
Iterable<Definition>, Collection<Definition>, List<Definition>, GMLObject, Object, TypedObjectNode, Definition, Dictionary

public class GenericDictionary
extends GenericDefinition
implements Dictionary

Default implementation of Dictionary.

Version:
$Revision: 31639 $, $Date: 2011-08-24 21:02:10 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
GenericDictionary(String id, GMLStdProps gmlProps, List<Definition> members, boolean isDefinitionCollection)
          Creates a new GenericDictionary instance.
 
Method Summary
 boolean add(Definition e)
           
 void add(int index, Definition element)
           
 boolean addAll(Collection<? extends Definition> c)
           
 boolean addAll(int index, Collection<? extends Definition> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 boolean equals(Object o)
           
 Definition get(int index)
           
 int hashCode()
           
 int indexOf(Object o)
           
 boolean isDefinitionCollection()
          Returns whether the Dictionary represents a generic GML dictionary or a GML definition collection.
 boolean isEmpty()
           
 Iterator<Definition> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<Definition> listIterator()
           
 ListIterator<Definition> listIterator(int index)
           
 Definition remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 Definition set(int index, Definition element)
           
 int size()
           
 List<Definition> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class org.deegree.gml.dictionary.GenericDefinition
getDescription, getGMLProperties, getId, getNames
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.gml.dictionary.Definition
getDescription, getNames
 
Methods inherited from interface org.deegree.commons.tom.gml.GMLObject
getGMLProperties
 
Methods inherited from interface org.deegree.commons.tom.Object
getId
 

Constructor Detail

GenericDictionary

public GenericDictionary(String id,
                         GMLStdProps gmlProps,
                         List<Definition> members,
                         boolean isDefinitionCollection)
Creates a new GenericDictionary instance.

Parameters:
id - id of the dictionary, can be null
gmlProps - GML standard properties (which contain description and names), must not be null
members - dictionary entries, must not be null
isDefinitionCollection - true, if this is a defininition collection, false otherwise
Method Detail

isDefinitionCollection

public boolean isDefinitionCollection()
Description copied from interface: Dictionary
Returns whether the Dictionary represents a generic GML dictionary or a GML definition collection.

Specified by:
isDefinitionCollection in interface Dictionary
Returns:
true, if this is a defininition collection, false otherwise

add

public boolean add(Definition e)
Specified by:
add in interface Collection<Definition>
Specified by:
add in interface List<Definition>

add

public void add(int index,
                Definition element)
Specified by:
add in interface List<Definition>

addAll

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

addAll

public boolean addAll(int index,
                      Collection<? extends Definition> c)
Specified by:
addAll in interface List<Definition>

clear

public void clear()
Specified by:
clear in interface Collection<Definition>
Specified by:
clear in interface List<Definition>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<Definition>
Specified by:
contains in interface List<Definition>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<Definition>
Specified by:
containsAll in interface List<Definition>

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection<Definition>
Specified by:
equals in interface List<Definition>
Overrides:
equals in class Object

get

public Definition get(int index)
Specified by:
get in interface List<Definition>

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<Definition>
Specified by:
hashCode in interface List<Definition>
Overrides:
hashCode in class Object

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<Definition>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<Definition>
Specified by:
isEmpty in interface List<Definition>

iterator

public Iterator<Definition> iterator()
Specified by:
iterator in interface Iterable<Definition>
Specified by:
iterator in interface Collection<Definition>
Specified by:
iterator in interface List<Definition>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<Definition>

listIterator

public ListIterator<Definition> listIterator()
Specified by:
listIterator in interface List<Definition>

listIterator

public ListIterator<Definition> listIterator(int index)
Specified by:
listIterator in interface List<Definition>

remove

public Definition remove(int index)
Specified by:
remove in interface List<Definition>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<Definition>
Specified by:
remove in interface List<Definition>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<Definition>
Specified by:
removeAll in interface List<Definition>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<Definition>
Specified by:
retainAll in interface List<Definition>

set

public Definition set(int index,
                      Definition element)
Specified by:
set in interface List<Definition>

size

public int size()
Specified by:
size in interface Collection<Definition>
Specified by:
size in interface List<Definition>

subList

public List<Definition> subList(int fromIndex,
                                int toIndex)
Specified by:
subList in interface List<Definition>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<Definition>
Specified by:
toArray in interface List<Definition>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<Definition>
Specified by:
toArray in interface List<Definition>


Copyright © 2011. All Rights Reserved.