ValueType
- Type of the properties valuepublic class OgcPropertyList<ValueType> extends Object implements List<ValueType>
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.
Constructor and Description |
---|
OgcPropertyList() |
OgcPropertyList(int size) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
ValueType e) |
void |
add(OgcProperty<ValueType> prop)
Adds a property object to the list
The property carries the actual value object
|
OgcProperty<ValueType> |
add(String name,
String href,
String role)
Adds a property with the specified name, href, and role to the list
|
OgcProperty<ValueType> |
add(String name,
ValueType e)
Adds a property with the specified name and value to the list
|
boolean |
add(ValueType e) |
boolean |
addAll(Collection<? extends ValueType> c) |
boolean |
addAll(int index,
Collection<? extends ValueType> c) |
protected void |
checkName(String name) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
void |
copyTo(OgcPropertyList<ValueType> other) |
ValueType |
get(int i) |
ValueType |
get(String name)
Retrieves property value by name
|
OgcProperty<ValueType> |
getProperty(int i)
Retrieves property object at specified index.
|
OgcProperty<ValueType> |
getProperty(String name)
Retrieves property object by name.
|
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<ValueType> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<ValueType> |
listIterator() |
ListIterator<ValueType> |
listIterator(int index) |
ValueType |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
ValueType |
set(int i,
ValueType e) |
int |
size() |
List<ValueType> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
public OgcPropertyList()
public OgcPropertyList(int size)
public void copyTo(OgcPropertyList<ValueType> other)
public ValueType get(String name)
name
- public OgcProperty<ValueType> getProperty(String name)
name
- public OgcProperty<ValueType> getProperty(int i)
i
- index of propertypublic void add(OgcProperty<ValueType> prop)
prop
- public OgcProperty<ValueType> add(String name, ValueType e)
name
- name to use on property (= name attribute)e
- the property value objectIllegalArgumentException
- if name is already in usepublic OgcProperty<ValueType> add(String name, String href, String role)
name
- name to use on property (= name attribute)href
- role
- can be nullIllegalArgumentException
- if name is already in usepublic boolean add(ValueType e)
public boolean addAll(Collection<? extends ValueType> c)
public boolean addAll(int index, Collection<? extends ValueType> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<ValueType>
containsAll
in interface List<ValueType>
public boolean isEmpty()
public int lastIndexOf(Object o)
lastIndexOf
in interface List<ValueType>
public ListIterator<ValueType> listIterator()
listIterator
in interface List<ValueType>
public ListIterator<ValueType> listIterator(int index)
listIterator
in interface List<ValueType>
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] a)
protected void checkName(String name)
Copyright © 2016 Sensia Software LLC. All rights reserved.