Package net.opengis
Class OgcPropertyList<ValueType extends Serializable>
java.lang.Object
net.opengis.OgcPropertyList<ValueType>
- Type Parameters:
 ValueType- Type of the properties value
- All Implemented Interfaces:
 Serializable,Iterable<ValueType>,Collection<ValueType>,List<ValueType>
- Direct Known Subclasses:
 DataComponentPropertyList,SMLPropertyList
public class OgcPropertyList<ValueType extends Serializable>
extends Object
implements List<ValueType>, Serializable
List implementation for holding list of OgcProperty objects. As seen from the interface the elements of the list are actually the properties values which allows for simple browsing when no access to the actual property is needed. For more advanced usage, OgcProperty objects themselves can be retrieved with getProperty() methods.
- Since:
 - Nov 8, 2014
 - See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArrayList<OgcProperty<ValueType>>protected HashMap<String,OgcProperty<ValueType>>  - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a property with the specified name, href, and role to the listAdds a property with the specified name and value to the listvoidadd(OgcProperty<ValueType> prop) Adds a property object to the list The property carries the actual value objectbooleanbooleanaddAll(int index, Collection<? extends ValueType> c) booleanaddAll(Collection<? extends ValueType> c) protected voidvoidclear()booleanbooleancontainsAll(Collection<?> c) voidcopyTo(OgcPropertyList<ValueType> other) get(int i) Retrieves property value by namegetProperty(int i) Retrieves property object at specified index.getProperty(String name) Retrieves property object by name.booleanhasProperty(String name) intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanRemoves property with the given namebooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator 
- 
Field Details
- 
items
 - 
nameMap
 
 - 
 - 
Constructor Details
- 
OgcPropertyList
public OgcPropertyList() - 
OgcPropertyList
public OgcPropertyList(int size)  
 - 
 - 
Method Details
- 
copyTo
 - 
hasProperty
 - 
get
Retrieves property value by name- Parameters:
 name-- Returns:
 - property value object
 
 - 
getProperty
Retrieves property object by name. Property object contains extra info such as name, xlink, etc. about a property- Parameters:
 name-- Returns:
 - property object or null if no property with the given name exists
 
 - 
getProperty
Retrieves property object at specified index. Property object contains extra info such as name, xlink, etc. about a property- Parameters:
 i- index of property- Returns:
 - property object or null
 
 - 
add
Adds a property object to the list The property carries the actual value object- Parameters:
 prop-
 - 
add
Adds a property with the specified name and value to the list- Parameters:
 name- name to use on property (= name attribute)e- the property value object- Returns:
 - the newly created OgcPropery object
 - Throws:
 IllegalArgumentException- if name is already in use
 - 
add
Adds a property with the specified name, href, and role to the list- Parameters:
 name- name to use on property (= name attribute)href-role- can be null- Returns:
 - the newly created OgcPropery object
 - Throws:
 IllegalArgumentException- if name is already in use
 - 
remove
Removes property with the given name- Parameters:
 name-- Returns:
 - The property that was just removed
 
 - 
getPropertyNames
- Returns:
 - Read-only set of all property names
 
 - 
getProperties
- Returns:
 - Read-only list of all properties
 
 - 
add
- Specified by:
 addin interfaceCollection<ValueType extends Serializable>- Specified by:
 addin interfaceList<ValueType extends Serializable>
 - 
add
- Specified by:
 addin interfaceList<ValueType extends Serializable>
 - 
addAll
- Specified by:
 addAllin interfaceCollection<ValueType extends Serializable>- Specified by:
 addAllin interfaceList<ValueType extends Serializable>
 - 
addAll
- Specified by:
 addAllin interfaceList<ValueType extends Serializable>
 - 
clear
public void clear()- Specified by:
 clearin interfaceCollection<ValueType extends Serializable>- Specified by:
 clearin interfaceList<ValueType extends Serializable>
 - 
contains
- Specified by:
 containsin interfaceCollection<ValueType extends Serializable>- Specified by:
 containsin interfaceList<ValueType extends Serializable>
 - 
containsAll
- Specified by:
 containsAllin interfaceCollection<ValueType extends Serializable>- Specified by:
 containsAllin interfaceList<ValueType extends Serializable>
 - 
get
- Specified by:
 getin interfaceList<ValueType extends Serializable>
 - 
indexOf
- Specified by:
 indexOfin interfaceList<ValueType extends Serializable>
 - 
isEmpty
public boolean isEmpty()- Specified by:
 isEmptyin interfaceCollection<ValueType extends Serializable>- Specified by:
 isEmptyin interfaceList<ValueType extends Serializable>
 - 
iterator
- Specified by:
 iteratorin interfaceCollection<ValueType extends Serializable>- Specified by:
 iteratorin interfaceIterable<ValueType extends Serializable>- Specified by:
 iteratorin interfaceList<ValueType extends Serializable>
 - 
lastIndexOf
- Specified by:
 lastIndexOfin interfaceList<ValueType extends Serializable>
 - 
listIterator
- Specified by:
 listIteratorin interfaceList<ValueType extends Serializable>
 - 
listIterator
- Specified by:
 listIteratorin interfaceList<ValueType extends Serializable>
 - 
remove
- Specified by:
 removein interfaceCollection<ValueType extends Serializable>- Specified by:
 removein interfaceList<ValueType extends Serializable>
 - 
remove
- Specified by:
 removein interfaceList<ValueType extends Serializable>
 - 
removeAll
- Specified by:
 removeAllin interfaceCollection<ValueType extends Serializable>- Specified by:
 removeAllin interfaceList<ValueType extends Serializable>
 - 
retainAll
- Specified by:
 retainAllin interfaceCollection<ValueType extends Serializable>- Specified by:
 retainAllin interfaceList<ValueType extends Serializable>
 - 
set
- Specified by:
 setin interfaceList<ValueType extends Serializable>
 - 
size
public int size()- Specified by:
 sizein interfaceCollection<ValueType extends Serializable>- Specified by:
 sizein interfaceList<ValueType extends Serializable>
 - 
subList
- Specified by:
 subListin interfaceList<ValueType extends Serializable>
 - 
toArray
- Specified by:
 toArrayin interfaceCollection<ValueType extends Serializable>- Specified by:
 toArrayin interfaceList<ValueType extends Serializable>
 - 
toArray
public <T> T[] toArray(T[] a) - Specified by:
 toArrayin interfaceCollection<ValueType extends Serializable>- Specified by:
 toArrayin interfaceList<ValueType extends Serializable>
 - 
checkName
 
 -