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:
java.lang.Iterable<Definition>, java.util.Collection<Definition>, java.util.List<Definition>, TypedObjectNode, Definition, Dictionary, GMLObject

public class GenericDictionary
extends GenericDefinition
implements Dictionary

Default implementation of Dictionary.

Version:
$Revision: 21659 $, $Date: 2009-12-23 14:29:54 +0100 (Mi, 23. Dez 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
GenericDictionary(java.lang.String id, GMLStdProps gmlProps, java.util.List<Definition> members, boolean isDefinitionCollection)
          Creates a new GenericDictionary instance.
 
Method Summary
 boolean add(Definition e)
           
 void add(int index, Definition element)
           
 boolean addAll(java.util.Collection<? extends Definition> c)
           
 boolean addAll(int index, java.util.Collection<? extends Definition> c)
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection<?> c)
           
 boolean equals(java.lang.Object o)
           
 Definition get(int index)
           
 int hashCode()
           
 int indexOf(java.lang.Object o)
           
 boolean isDefinitionCollection()
          Returns whether the Dictionary represents a generic GML dictionary or a GML definition collection.
 boolean isEmpty()
           
 java.util.Iterator<Definition> iterator()
           
 int lastIndexOf(java.lang.Object o)
           
 java.util.ListIterator<Definition> listIterator()
           
 java.util.ListIterator<Definition> listIterator(int index)
           
 Definition remove(int index)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> c)
           
 boolean retainAll(java.util.Collection<?> c)
           
 Definition set(int index, Definition element)
           
 int size()
           
 java.util.List<Definition> subList(int fromIndex, int toIndex)
           
 java.lang.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.gml.GMLObject
getGMLProperties, getId
 

Constructor Detail

GenericDictionary

public GenericDictionary(java.lang.String id,
                         GMLStdProps gmlProps,
                         java.util.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 java.util.Collection<Definition>
Specified by:
add in interface java.util.List<Definition>

add

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

addAll

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

addAll

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

clear

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

contains

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

containsAll

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

equals

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

get

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

hashCode

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

indexOf

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

isEmpty

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

iterator

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

lastIndexOf

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

listIterator

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

listIterator

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

remove

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

remove

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

removeAll

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

retainAll

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

set

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

size

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

subList

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

toArray

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

toArray

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


Copyright © 2011. All Rights Reserved.