public interface PropertyMap extends Iterable<PropertyMap.Property>
Modifier and Type | Interface and Description |
---|---|
static interface |
PropertyMap.Property
Info about a property defined in a PropertyMap.
|
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_VERSION_PROP |
static String |
ALLOW_ZERO_LEN_PROP |
static String |
AUTHOR_PROP |
static String |
CAPTION_PROP |
static String |
COMPANY_PROP |
static String |
DECIMAL_PLACES_PROP |
static String |
DEFAULT_VALUE_PROP |
static String |
DESCRIPTION_PROP |
static String |
EXPRESSION_PROP |
static String |
FORMAT_PROP |
static String |
GUID_PROP |
static String |
INPUT_MASK_PROP |
static String |
REQUIRED_PROP |
static String |
RESULT_TYPE_PROP |
static String |
TITLE_PROP |
static String |
VALIDATION_RULE_PROP |
static String |
VALIDATION_TEXT_PROP |
Modifier and Type | Method and Description |
---|---|
PropertyMap.Property |
get(String name) |
String |
getName() |
int |
getSize() |
Object |
getValue(String name) |
Object |
getValue(String name,
Object defaultValue) |
boolean |
isEmpty() |
PropertyMap.Property |
put(String name,
DataType type,
Object value)
Creates a new (or updates an existing) property in the map.
|
PropertyMap.Property |
put(String name,
Object value)
Creates a new (or updates an existing) property in the map.
|
void |
putAll(Iterable<? extends PropertyMap.Property> props)
Puts all the given properties into this map.
|
PropertyMap.Property |
remove(String name)
Removes the property with the given name
|
void |
save()
Saves the current state of this map.
|
forEach, iterator, spliterator
static final String ACCESS_VERSION_PROP
static final String TITLE_PROP
static final String AUTHOR_PROP
static final String COMPANY_PROP
static final String DEFAULT_VALUE_PROP
static final String REQUIRED_PROP
static final String ALLOW_ZERO_LEN_PROP
static final String DECIMAL_PLACES_PROP
static final String FORMAT_PROP
static final String INPUT_MASK_PROP
static final String CAPTION_PROP
static final String VALIDATION_RULE_PROP
static final String VALIDATION_TEXT_PROP
static final String GUID_PROP
static final String DESCRIPTION_PROP
static final String RESULT_TYPE_PROP
static final String EXPRESSION_PROP
String getName()
int getSize()
boolean isEmpty()
PropertyMap.Property get(String name)
Object getValue(String name)
Object getValue(String name, Object defaultValue)
PropertyMap.Property put(String name, Object value)
save()
method
has been called.IllegalArgumentException
- if the type of the property could not be
determined automaticallyPropertyMap.Property put(String name, DataType type, Object value)
save()
method
has been called.void putAll(Iterable<? extends PropertyMap.Property> props)
props
- the properties to put into this map (null
is
tolerated and ignored).PropertyMap.Property remove(String name)
null
if none foundvoid save() throws IOException
IOException
Copyright © 2005–2018. All rights reserved.