public class PropertyList extends java.util.ArrayList<Property> implements java.io.Serializable
Constructor and Description |
---|
PropertyList()
Default constructor.
|
PropertyList(int initialCapacity)
Creates a new instance with the specified initial capacity.
|
PropertyList(PropertyList properties)
Creates a deep copy of the specified property list.
|
Modifier and Type | Method and Description |
---|---|
PropertyList |
getProperties(java.lang.String name)
Returns a list of properties with the specified name.
|
Property |
getProperty(java.lang.String aName)
Returns the first property of specified name.
|
boolean |
remove(Property property)
Remove a property from the list.
|
java.lang.String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public PropertyList()
public PropertyList(int initialCapacity)
initialCapacity
- the initial capacity of the listpublic PropertyList(PropertyList properties) throws java.text.ParseException, java.io.IOException, java.net.URISyntaxException
properties
- a property listjava.text.ParseException
- where property data cannot be parsedjava.io.IOException
- where property data cannot be readjava.net.URISyntaxException
- where a property contains an invalid URIpublic final java.lang.String toString()
toString
in class java.util.AbstractCollection<Property>
public final Property getProperty(java.lang.String aName)
aName
- name of property to returnpublic final PropertyList getProperties(java.lang.String name)
name
- name of properties to returnpublic final boolean remove(Property property)
property
- the property to removeList.remove(java.lang.Object)