public class PropertyMapImpl extends Object implements PropertyMap
PropertyMap.DisplayControl, PropertyMap.EnumValue, PropertyMap.IMEMode, PropertyMap.IMESentenceMode, PropertyMap.Property, PropertyMap.TextFormat
ACCESS_VERSION_PROP, ALLOW_MULTI_VALUE_PROP, ALLOW_ZERO_LEN_PROP, AUTHOR_PROP, CAPTION_PROP, COMPANY_PROP, DECIMAL_PLACES_PROP, DEFAULT_VALUE_PROP, DESCRIPTION_PROP, DISPLAY_CONTROL_PROP, EXPRESSION_PROP, FORMAT_PROP, GUID_PROP, IME_MODE_PROP, IME_SENTENCE_MODE_PROP, INPUT_MASK_PROP, REQUIRED_PROP, RESULT_TYPE_PROP, ROW_SOURCE_PROP, ROW_SOURCE_TYPE_PROP, TEXT_FORMAT_PROP, TITLE_PROP, VALIDATION_RULE_PROP, VALIDATION_TEXT_PROP
Constructor and Description |
---|
PropertyMapImpl(String name,
short type,
PropertyMaps owner) |
Modifier and Type | Method and Description |
---|---|
static PropertyMap.Property |
createProperty(String name,
DataType type,
Object value) |
static PropertyMap.Property |
createProperty(String name,
DataType type,
Object value,
boolean isDdl) |
PropertyMap.Property |
get(String name) |
String |
getName() |
PropertyMaps |
getOwner() |
int |
getSize() |
short |
getType() |
Object |
getValue(String name) |
Object |
getValue(String name,
Object defaultValue) |
boolean |
isEmpty() |
Iterator<PropertyMap.Property> |
iterator() |
com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl |
put(PropertyMap.Property prop) |
com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl |
put(String name,
DataType type,
Object value)
Creates a new (or updates an existing) property in the map.
|
com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl |
put(String name,
DataType type,
Object value,
boolean isDdl)
Puts a property into this map with the given information.
|
com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl |
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.
|
com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl |
remove(String name)
Removes the property with the given name
|
void |
save()
Saves the current state of this map.
|
String |
toString() |
static String |
toString(PropertyMap map) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
stream
forEach, spliterator
public PropertyMapImpl(String name, short type, PropertyMaps owner)
public String getName()
getName
in interface PropertyMap
public short getType()
public PropertyMaps getOwner()
public int getSize()
getSize
in interface PropertyMap
public boolean isEmpty()
isEmpty
in interface PropertyMap
public PropertyMap.Property get(String name)
get
in interface PropertyMap
public Object getValue(String name)
getValue
in interface PropertyMap
public Object getValue(String name, Object defaultValue)
getValue
in interface PropertyMap
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(String name, Object value)
PropertyMap
Note, this change will not be persisted until the PropertyMap.save()
method
has been called.
put
in interface PropertyMap
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(String name, DataType type, Object value)
PropertyMap
Note, this change will not be persisted until the PropertyMap.save()
method
has been called.
put
in interface PropertyMap
public void putAll(Iterable<? extends PropertyMap.Property> props)
PropertyMap
putAll
in interface PropertyMap
props
- the properties to put into this map (null
is
tolerated and ignored).public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(PropertyMap.Property prop)
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(String name, DataType type, Object value, boolean isDdl)
put
in interface PropertyMap
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl remove(String name)
PropertyMap
remove
in interface PropertyMap
null
if none foundpublic Iterator<PropertyMap.Property> iterator()
iterator
in interface Iterable<PropertyMap.Property>
public void save() throws IOException
PropertyMap
save
in interface PropertyMap
IOException
public static String toString(PropertyMap map)
public static PropertyMap.Property createProperty(String name, DataType type, Object value)
public static PropertyMap.Property createProperty(String name, DataType type, Object value, boolean isDdl)
Copyright © 2005–2024 OpenHMS. All rights reserved.