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)MutablePropertygetProperty(java.lang.String name)java.lang.ObjectgetValue(java.lang.String name)java.util.Iterator<java.lang.String>iterator()<T> MutableProperty<T>replaceProperty(java.lang.String name, MutableProperty<T> property)voidsetValue(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:
iteratorin interfacejava.lang.Iterable<java.lang.String>
-
createProperty
public <T> MutableProperty<T> createProperty(java.lang.String name, T value)
- Specified by:
createPropertyin interfaceMutableProperties<java.lang.String>
-
addProperty
public <T> MutableProperty<T> addProperty(java.lang.String name, MutableProperty<T> property)
- Specified by:
addPropertyin interfaceMutableProperties<java.lang.String>
-
replaceProperty
public <T> MutableProperty<T> replaceProperty(java.lang.String name, MutableProperty<T> property)
- Specified by:
replacePropertyin interfaceMutableProperties<java.lang.String>
-
getValue
public java.lang.Object getValue(java.lang.String name)
- Specified by:
getValuein interfaceProperties<java.lang.String>
-
setValue
public void setValue(java.lang.String name, java.lang.Object value)- Specified by:
setValuein interfaceMutableProperties<java.lang.String>
-
getProperty
public MutableProperty getProperty(java.lang.String name)
- Specified by:
getPropertyin interfaceMutableProperties<java.lang.String>- Specified by:
getPropertyin interfaceProperties<java.lang.String>
-
-