public abstract class AbstractPropertyReader extends Object implements PropertyReader
PropertyReader implementations that use an underlying
Map instance.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPropertyReader(Map map)
Constructs a new
AbstractPropertyReader. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this object with the specified argument for equality.
|
String |
get(String name)
Gets the value of the property with the specified name.
|
Iterator |
getNames()
Gets an iterator that iterates over all the property names.
|
protected Map |
getPropertiesMap()
Returns the
Map that contains the properties. |
int |
hashCode()
Returns a hash code value for this object.
|
int |
size()
Returns the number of entries.
|
protected AbstractPropertyReader(Map map) throws IllegalArgumentException
AbstractPropertyReader.map - the map containing the data of this PropertyReader,
cannot be null.IllegalArgumentException - if map == null.public String get(String name) throws IllegalArgumentException
get in interface PropertyReadername - the name of the property, cannot be null.null if it is not set.IllegalArgumentException - if name == null.public Iterator getNames()
Iterator will return only String instances.getNames in interface PropertyReaderIterator that will iterate over all the names, never
null.public int size()
size in interface PropertyReaderprotected Map getPropertiesMap()
Map that contains the properties.Map used to store the properties in, cannot be
null.public boolean equals(Object obj)
See http://www.xins.org/.