uk.org.ogsadai.common.properties
Class PropertiesImpl
java.lang.Object
|
+--uk.org.ogsadai.common.properties.PropertiesImpl
- All Implemented Interfaces:
- java.util.Map, Properties
- public class PropertiesImpl
- extends java.lang.Object
- implements Properties
|
Method Summary |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.lang.Object key)
|
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Puts a javax.namespace.QName / uk.org.ogsadai.common.properties.Property pair into the Map |
Property |
put(Property property)
Maps the Name held inside the Property object to the Property object specified. |
void |
putAll(java.util.Map t)
|
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
java.util.Collection |
values()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
PropertiesImpl
public PropertiesImpl()
put
public Property put(Property property)
- Description copied from interface:
Properties
- Maps the Name held inside the Property object to the Property object specified.
Neither the Property object nor its Name attribute can be null.
- Specified by:
put in interface Properties
- Parameters:
property - - the Property to add to the Properties map
- Returns:
- the previous Property object mapped to this Name in the Properties map, or null if no mapping exists
- See Also:
Properties.put(uk.org.ogsadai.common.properties.Property)
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Puts a javax.namespace.QName / uk.org.ogsadai.common.properties.Property pair into the Map
- Specified by:
put in interface java.util.Map
- Parameters:
key - The javax.namespace.QName for a Propertyvalue - The uk.org.ogsadai.common.properties.Property for the QName
- Throws:
java.lang.IllegalArgumentException - if key is not a javax.namespace.QName object or
value is not a uk.org.ogsadai.common.properties.Property object or if the key
does not equal the Property object Name attribute- See Also:
Map.put(java.lang.Object, java.lang.Object)
size
public int size()
- Specified by:
size in interface java.util.Map
- See Also:
Map.size()
clear
public void clear()
- Specified by:
clear in interface java.util.Map
- See Also:
Map.clear()
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Map
- See Also:
Map.isEmpty()
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey in interface java.util.Map
- See Also:
Map.containsKey(java.lang.Object)
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue in interface java.util.Map
- See Also:
Map.containsValue(java.lang.Object)
values
public java.util.Collection values()
- Specified by:
values in interface java.util.Map
- See Also:
Map.values()
putAll
public void putAll(java.util.Map t)
- Specified by:
putAll in interface java.util.Map
- See Also:
Map.putAll(java.util.Map)
entrySet
public java.util.Set entrySet()
- Specified by:
entrySet in interface java.util.Map
- See Also:
Map.entrySet()
keySet
public java.util.Set keySet()
- Specified by:
keySet in interface java.util.Map
- See Also:
Map.keySet()
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get in interface java.util.Map
- See Also:
Map.get(java.lang.Object)
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove in interface java.util.Map
- See Also:
Map.remove(java.lang.Object)