Class PropertyMaps
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.PropertyMaps
-
- All Implemented Interfaces:
Iterable<PropertyMapImpl>
public class PropertyMaps extends Object implements Iterable<PropertyMapImpl>
Collection of PropertyMap instances read from a single property data block.- Author:
- James Ahlborn
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePropertyMaps.OwnerUtility interface for the object which owns the PropertyMaps
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_NAMEthe name of the "default" properties for a PropertyMaps instance
-
Constructor Summary
Constructors Constructor Description PropertyMaps(int objectId, RowIdImpl rowId, com.healthmarketscience.jackcess.impl.PropertyMaps.Handler handler, PropertyMaps.Owner owner)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyMapImplget(String name)PropertyMapImplgetDefault()PropertyMapImplgetIndex(String name)intgetObjectId()intgetSize()static StringgetTrimmedStringProperty(PropertyMap props, String propName)booleanisEmpty()Iterator<PropertyMapImpl>iterator()voidsave()StringtoString()byte[]write()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
DEFAULT_NAME
public static final String DEFAULT_NAME
the name of the "default" properties for a PropertyMaps instance- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertyMaps
public PropertyMaps(int objectId, RowIdImpl rowId, com.healthmarketscience.jackcess.impl.PropertyMaps.Handler handler, PropertyMaps.Owner owner)
-
-
Method Detail
-
getObjectId
public int getObjectId()
-
getSize
public int getSize()
-
isEmpty
public boolean isEmpty()
-
getDefault
public PropertyMapImpl getDefault()
- Returns:
- the unnamed "default" PropertyMap in this group, creating if necessary.
-
get
public PropertyMapImpl get(String name)
- Returns:
- the PropertyMap with the given name in this group, creating if necessary
-
getIndex
public PropertyMapImpl getIndex(String name)
- Returns:
- the PropertyMap for the index with the given name in this group,
creating if necessary. An index has its own block, and access
names an index after its column by default, so this is a separate
map from the one
get(java.lang.String)returns for the same name.
-
iterator
public Iterator<PropertyMapImpl> iterator()
- Specified by:
iteratorin interfaceIterable<PropertyMapImpl>
-
write
public byte[] write() throws IOException- Throws:
IOException
-
save
public void save() throws IOException- Throws:
IOException
-
getTrimmedStringProperty
public static String getTrimmedStringProperty(PropertyMap props, String propName)
-
-