public class TLcyProperties extends ALcyProperties
ALcyProperties
that stores TLcyStringProperties's supported value types as strings.
Other value types are stored as objects.
This allows to easily load and store the String-convertible values, while still supporting
other value types.Constructor and Description |
---|
TLcyProperties()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears this key-value pair list so that it contains no keys.
|
boolean |
containsKey(String aKey)
Returns true if the key-value pair with the specified key exists.
|
static void |
copyToSFCT(ALcyProperties aSource,
ALcyProperties aDestinationSFCT)
|
protected Object |
getImpl(String aKey)
Implementation version of the get method, which retrieves the value from the underlying store.
|
Class |
getType(String aKey)
Returns the class of the value behind the specified key.
|
Iterator<String> |
keys()
Returns the keys of this
TLcyProperties . |
protected void |
putImpl(String aKey,
Object aNewValue)
Implementation version of the put method, which puts the value in the underlying store.
|
void |
remove(String aKey)
Removes the key (and its corresponding value) from this key-value pair list.
|
int |
size()
Returns the number of key-value pairs.
|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, get, get, getBoolean, getBooleanArray, getColor, getColorArray, getDouble, getDoubleArray, getFloat, getFloatArray, getInt, getIntArray, getLong, getLongArray, getPropertyChangeListeners, getPropertyChangeListeners, getString, getStringArray, isEmpty, put, put, putAll, putAll, putBoolean, putBooleanArray, putColor, putColorArray, putDouble, putDoubleArray, putFloat, putFloatArray, putInt, putIntArray, putLong, putLongArray, putString, putStringArray, removePropertyChangeListener, removePropertyChangeListener, subset, synchronizeSFCT, unmodifiable
protected Object getImpl(String aKey)
ALcyProperties
getImpl
in class ALcyProperties
aKey
- The key, guaranteed to be not null
.null
if no value is associated.protected void putImpl(String aKey, Object aNewValue)
ALcyProperties
putImpl
in class ALcyProperties
aKey
- The key, guaranteed to be not null
.aNewValue
- The value to associate to the key, guaranteed to be not null
.public Class getType(String aKey)
aKey
- the key to querypublic void remove(String aKey)
ALcyProperties
remove
in class ALcyProperties
aKey
- the key to be removedpublic int size()
ALcyProperties
size
in class ALcyProperties
public boolean containsKey(String aKey)
ALcyProperties
containsKey
in class ALcyProperties
aKey
- key to look forpublic Iterator<String> keys()
ALcyProperties
TLcyProperties
.keys
in class ALcyProperties
TLcyProperties
.public void clear()
ALcyProperties
null-null-null
property change event indicating all properties have changed,
or in a separate event for all removed properties (implementation specific).clear
in class ALcyProperties
public static void copyToSFCT(ALcyProperties aSource, ALcyProperties aDestinationSFCT)
ALcyProperties.synchronizeSFCT(com.luciad.lucy.util.properties.ALcyProperties, com.luciad.lucy.util.properties.ALcyProperties)
.aSource
- The properties to synchronize from.aDestinationSFCT
- The properties to make identical to the source properties.