gnu.mapping
Class PropertySet
java.lang.Object
gnu.mapping.PropertySet
- All Implemented Interfaces:
- Named
- Direct Known Subclasses:
- Environment, Procedure
public abstract class PropertySet
- extends java.lang.Object
- implements Named
Method Summary |
java.lang.String |
getName()
|
java.lang.Object |
getProperty(java.lang.Object key,
java.lang.Object defaultValue)
|
java.lang.Object |
getSymbol()
|
java.lang.Object |
removeProperty(java.lang.Object key)
|
void |
setName(java.lang.String name)
|
static java.lang.Object[] |
setProperty(java.lang.Object[] properties,
java.lang.Object key,
java.lang.Object value)
Given a property list, update it. |
void |
setProperty(java.lang.Object key,
java.lang.Object value)
|
void |
setSymbol(java.lang.Object name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nameKey
public static final Symbol nameKey
PropertySet
public PropertySet()
getName
public java.lang.String getName()
- Specified by:
getName
in interface Named
getSymbol
public java.lang.Object getSymbol()
- Specified by:
getSymbol
in interface Named
setSymbol
public final void setSymbol(java.lang.Object name)
setName
public final void setName(java.lang.String name)
- Specified by:
setName
in interface Named
getProperty
public java.lang.Object getProperty(java.lang.Object key,
java.lang.Object defaultValue)
setProperty
public void setProperty(java.lang.Object key,
java.lang.Object value)
setProperty
public static java.lang.Object[] setProperty(java.lang.Object[] properties,
java.lang.Object key,
java.lang.Object value)
- Given a property list, update it.
- Parameters:
properties
- the input property listkey
- value
- associate this with key in result
- Returns:
- updated property list (maybe the same as the input)
removeProperty
public java.lang.Object removeProperty(java.lang.Object key)