Class SimpleProperties
- java.lang.Object
-
- com.macrofocus.properties.implementation.AbstractProperties<java.lang.String>
-
- com.macrofocus.properties.implementation.SimpleProperties
-
- All Implemented Interfaces:
MutableProperties<java.lang.String>
,Properties<java.lang.String>
,java.lang.Iterable<java.lang.String>
public class SimpleProperties extends AbstractProperties<java.lang.String> implements MutableProperties<java.lang.String>
Default data model for a collection of properties.
-
-
Constructor Summary
Constructors Constructor Description SimpleProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> MutableProperty<T>
addProperty(java.lang.String name, MutableProperty<T> property)
<T> MutableProperty<T>
createProperty(java.lang.String name, T value)
MutableProperty
getProperty(java.lang.String name)
java.lang.Object
getValue(java.lang.String name)
java.util.Iterator<java.lang.String>
iterator()
<T> MutableProperty<T>
replaceProperty(java.lang.String name, MutableProperty<T> property)
void
setValue(java.lang.String name, java.lang.Object value)
-
Methods inherited from class com.macrofocus.properties.implementation.AbstractProperties
addPropertiesListener, addWeakPropertiesListener, notifyPropertyChanged, removePropertiesListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.properties.Properties
addPropertiesListener, addWeakPropertiesListener, removePropertiesListener
-
-
-
-
Method Detail
-
iterator
public java.util.Iterator<java.lang.String> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.lang.String>
-
createProperty
public <T> MutableProperty<T> createProperty(java.lang.String name, T value)
- Specified by:
createProperty
in interfaceMutableProperties<java.lang.String>
-
addProperty
public <T> MutableProperty<T> addProperty(java.lang.String name, MutableProperty<T> property)
- Specified by:
addProperty
in interfaceMutableProperties<java.lang.String>
-
replaceProperty
public <T> MutableProperty<T> replaceProperty(java.lang.String name, MutableProperty<T> property)
- Specified by:
replaceProperty
in interfaceMutableProperties<java.lang.String>
-
getValue
public java.lang.Object getValue(java.lang.String name)
- Specified by:
getValue
in interfaceProperties<java.lang.String>
-
setValue
public void setValue(java.lang.String name, java.lang.Object value)
- Specified by:
setValue
in interfaceMutableProperties<java.lang.String>
-
getProperty
public MutableProperty getProperty(java.lang.String name)
- Specified by:
getProperty
in interfaceMutableProperties<java.lang.String>
- Specified by:
getProperty
in interfaceProperties<java.lang.String>
-
-