public interface PropertyMap extends Iterable<PropertyMap.Property>
Modifier and Type | Interface and Description |
---|---|
static class |
PropertyMap.DisplayControl
Enum value constants for the DisplayControl property
|
static interface |
PropertyMap.EnumValue
Interface for enums which can be used as property values.
|
static class |
PropertyMap.IMEMode
Enum value constants for the IMEMode property
|
static class |
PropertyMap.IMESentenceMode
Enum value constants for the IMESentenceMode property
|
static interface |
PropertyMap.Property
Info about a property defined in a PropertyMap.
|
static class |
PropertyMap.TextFormat
Enum value constants for the TextFormat property
|
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_VERSION_PROP |
static String |
ALLOW_MULTI_VALUE_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 |
DISPLAY_CONTROL_PROP |
static String |
EXPRESSION_PROP |
static String |
FORMAT_PROP |
static String |
GUID_PROP |
static String |
IME_MODE_PROP |
static String |
IME_SENTENCE_MODE_PROP |
static String |
INPUT_MASK_PROP |
static String |
REQUIRED_PROP |
static String |
RESULT_TYPE_PROP |
static String |
ROW_SOURCE_PROP |
static String |
ROW_SOURCE_TYPE_PROP |
static String |
TEXT_FORMAT_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,
DataType type,
Object value,
boolean isDdl)
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.
|
default Stream<PropertyMap.Property> |
stream() |
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
static final String ALLOW_MULTI_VALUE_PROP
static final String ROW_SOURCE_TYPE_PROP
static final String ROW_SOURCE_PROP
static final String DISPLAY_CONTROL_PROP
static final String TEXT_FORMAT_PROP
static final String IME_MODE_PROP
static final String IME_SENTENCE_MODE_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)
Note, this change will not be persisted until the 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)
Note, this change will not be persisted until the save()
method
has been called.
PropertyMap.Property put(String name, DataType type, Object value, boolean isDdl)
Note, this change will not be persisted until the 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
default Stream<PropertyMap.Property> stream()
Copyright © 2005–2024 OpenHMS. All rights reserved.