org.deegree.gml.dictionary
Class GenericDictionary
java.lang.Object
org.deegree.gml.dictionary.GenericDefinition
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 $
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
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.