public class PropertyMapImpl extends java.lang.Object implements PropertyMap
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PropertyMapImpl.PropertyImpl
Info about a property defined in a PropertyMap.
|
PropertyMap.Property| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_mapName |
private short |
_mapType |
private PropertyMaps |
_owner |
private java.util.Map<java.lang.String,PropertyMap.Property> |
_props |
private static java.util.Map<java.lang.String,DataType> |
DEFAULT_TYPES |
ACCESS_VERSION_PROP, ALLOW_ZERO_LEN_PROP, AUTHOR_PROP, CAPTION_PROP, COMPANY_PROP, DECIMAL_PLACES_PROP, DEFAULT_VALUE_PROP, DESCRIPTION_PROP, EXPRESSION_PROP, FORMAT_PROP, GUID_PROP, INPUT_MASK_PROP, REQUIRED_PROP, RESULT_TYPE_PROP, TITLE_PROP, VALIDATION_RULE_PROP, VALIDATION_TEXT_PROP| Constructor and Description |
|---|
PropertyMapImpl(java.lang.String name,
short type,
PropertyMaps owner) |
| Modifier and Type | Method and Description |
|---|---|
static PropertyMap.Property |
createProperty(java.lang.String name,
DataType type,
byte flag,
java.lang.Object value) |
static PropertyMap.Property |
createProperty(java.lang.String name,
DataType type,
java.lang.Object value) |
PropertyMap.Property |
get(java.lang.String name) |
java.lang.String |
getName() |
PropertyMaps |
getOwner() |
int |
getSize() |
short |
getType() |
java.lang.Object |
getValue(java.lang.String name) |
java.lang.Object |
getValue(java.lang.String name,
java.lang.Object defaultValue) |
boolean |
isEmpty() |
java.util.Iterator<PropertyMap.Property> |
iterator() |
PropertyMapImpl.PropertyImpl |
put(java.lang.String name,
DataType type,
byte flag,
java.lang.Object value)
Puts a property into this map with the given information.
|
PropertyMapImpl.PropertyImpl |
put(java.lang.String name,
DataType type,
java.lang.Object value)
Creates a new (or updates an existing) property in the map.
|
PropertyMapImpl.PropertyImpl |
put(java.lang.String name,
java.lang.Object value)
Creates a new (or updates an existing) property in the map.
|
void |
putAll(java.lang.Iterable<? extends PropertyMap.Property> props)
Puts all the given properties into this map.
|
PropertyMapImpl.PropertyImpl |
remove(java.lang.String name)
Removes the property with the given name
|
void |
save()
Saves the current state of this map.
|
java.lang.String |
toString() |
private static final java.util.Map<java.lang.String,DataType> DEFAULT_TYPES
private final java.lang.String _mapName
private final short _mapType
private final java.util.Map<java.lang.String,PropertyMap.Property> _props
private final PropertyMaps _owner
public PropertyMapImpl(java.lang.String name,
short type,
PropertyMaps owner)
public java.lang.String getName()
getName in interface PropertyMappublic short getType()
public PropertyMaps getOwner()
public int getSize()
getSize in interface PropertyMappublic boolean isEmpty()
isEmpty in interface PropertyMappublic PropertyMap.Property get(java.lang.String name)
get in interface PropertyMappublic java.lang.Object getValue(java.lang.String name)
getValue in interface PropertyMappublic java.lang.Object getValue(java.lang.String name,
java.lang.Object defaultValue)
getValue in interface PropertyMappublic PropertyMapImpl.PropertyImpl put(java.lang.String name, java.lang.Object value)
PropertyMapPropertyMap.save() method
has been called.put in interface PropertyMappublic PropertyMapImpl.PropertyImpl put(java.lang.String name, DataType type, java.lang.Object value)
PropertyMapPropertyMap.save() method
has been called.put in interface PropertyMappublic void putAll(java.lang.Iterable<? extends PropertyMap.Property> props)
PropertyMapputAll in interface PropertyMapprops - the properties to put into this map (null is
tolerated and ignored).public PropertyMapImpl.PropertyImpl put(java.lang.String name, DataType type, byte flag, java.lang.Object value)
public PropertyMapImpl.PropertyImpl remove(java.lang.String name)
PropertyMapremove in interface PropertyMapnull if none foundpublic java.util.Iterator<PropertyMap.Property> iterator()
iterator in interface java.lang.Iterable<PropertyMap.Property>public void save()
throws java.io.IOException
PropertyMapsave in interface PropertyMapjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static PropertyMap.Property createProperty(java.lang.String name, DataType type, java.lang.Object value)
public static PropertyMap.Property createProperty(java.lang.String name, DataType type, byte flag, java.lang.Object value)