com.healthmarketscience.jackcess.impl
Class PropertyMapImpl
java.lang.Object
com.healthmarketscience.jackcess.impl.PropertyMapImpl
- All Implemented Interfaces:
- PropertyMap, Iterable<PropertyMap.Property>
public class PropertyMapImpl
- extends Object
- implements PropertyMap
Map of properties for a database object.
- Author:
- James Ahlborn
| Fields inherited from interface com.healthmarketscience.jackcess.PropertyMap |
ACCESS_VERSION_PROP, ALLOW_ZERO_LEN_PROP, AUTHOR_PROP, CAPTION_PROP, COMPANY_PROP, DECIMAL_PLACES_PROP, DEFAULT_VALUE_PROP, DESCRIPTION_PROP, FORMAT_PROP, GUID_PROP, INPUT_MASK_PROP, REQUIRED_PROP, TITLE_PROP, VALIDATION_RULE_PROP, VALIDATION_TEXT_PROP |
PropertyMapImpl
public PropertyMapImpl(String name,
short type,
PropertyMaps owner)
getName
public String getName()
- Specified by:
getName in interface PropertyMap
getType
public short getType()
getOwner
public PropertyMaps getOwner()
getSize
public int getSize()
- Specified by:
getSize in interface PropertyMap
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface PropertyMap
get
public PropertyMap.Property get(String name)
- Specified by:
get in interface PropertyMap
- Returns:
- the property with the given name, if any
getValue
public Object getValue(String name)
- Specified by:
getValue in interface PropertyMap
- Returns:
- the value of the property with the given name, if any
getValue
public Object getValue(String name,
Object defaultValue)
- Specified by:
getValue in interface PropertyMap
- Returns:
- the value of the property with the given name, if any, otherwise
the given defaultValue
put
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(String name,
DataType type,
Object value)
- Description copied from interface:
PropertyMap
- Creates a new (or updates an existing) property in the map.
Note, this change will not be persisted until the
PropertyMap.save() method
has been called.
- Specified by:
put in interface PropertyMap
- Returns:
- the newly created (or updated) property
put
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl put(String name,
DataType type,
byte flag,
Object value)
- Puts a property into this map with the given information.
remove
public com.healthmarketscience.jackcess.impl.PropertyMapImpl.PropertyImpl remove(String name)
- Description copied from interface:
PropertyMap
- Removes the property with the given name
- Specified by:
remove in interface PropertyMap
- Returns:
- the removed property, or
null if none found
iterator
public Iterator<PropertyMap.Property> iterator()
- Specified by:
iterator in interface Iterable<PropertyMap.Property>
save
public void save()
throws IOException
- Description copied from interface:
PropertyMap
- Saves the current state of this map.
- Specified by:
save in interface PropertyMap
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2005-2013 Health Market Science. All Rights Reserved.