com.healthmarketscience.jackcess
Class PropertyMap

java.lang.Object
  extended by com.healthmarketscience.jackcess.PropertyMap
All Implemented Interfaces:
Iterable<PropertyMap.Property>

public class PropertyMap
extends Object
implements Iterable<PropertyMap.Property>

Map of properties for a given database object.

Author:
James Ahlborn

Nested Class Summary
static class PropertyMap.Property
          Info about a property defined in a PropertyMap.
 
Field Summary
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 FORMAT_PROP
           
static String GUID_PROP
           
static String INPUT_MASK_PROP
           
static String REQUIRED_PROP
           
static String TITLE_PROP
           
static String VALIDATION_RULE_PROP
           
static String VALIDATION_TEXT_PROP
           
 
Method Summary
 PropertyMap.Property get(String name)
           
 String getName()
           
 int getSize()
           
 short getType()
           
 Object getValue(String name)
           
 Object getValue(String name, Object defaultValue)
           
 boolean isEmpty()
           
 Iterator<PropertyMap.Property> iterator()
           
 void put(String name, DataType type, byte flag, Object value)
          Puts a property into this map with the given information.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACCESS_VERSION_PROP

public static final String ACCESS_VERSION_PROP
See Also:
Constant Field Values

TITLE_PROP

public static final String TITLE_PROP
See Also:
Constant Field Values

AUTHOR_PROP

public static final String AUTHOR_PROP
See Also:
Constant Field Values

COMPANY_PROP

public static final String COMPANY_PROP
See Also:
Constant Field Values

DEFAULT_VALUE_PROP

public static final String DEFAULT_VALUE_PROP
See Also:
Constant Field Values

REQUIRED_PROP

public static final String REQUIRED_PROP
See Also:
Constant Field Values

ALLOW_ZERO_LEN_PROP

public static final String ALLOW_ZERO_LEN_PROP
See Also:
Constant Field Values

DECIMAL_PLACES_PROP

public static final String DECIMAL_PLACES_PROP
See Also:
Constant Field Values

FORMAT_PROP

public static final String FORMAT_PROP
See Also:
Constant Field Values

INPUT_MASK_PROP

public static final String INPUT_MASK_PROP
See Also:
Constant Field Values

CAPTION_PROP

public static final String CAPTION_PROP
See Also:
Constant Field Values

VALIDATION_RULE_PROP

public static final String VALIDATION_RULE_PROP
See Also:
Constant Field Values

VALIDATION_TEXT_PROP

public static final String VALIDATION_TEXT_PROP
See Also:
Constant Field Values

GUID_PROP

public static final String GUID_PROP
See Also:
Constant Field Values

DESCRIPTION_PROP

public static final String DESCRIPTION_PROP
See Also:
Constant Field Values
Method Detail

getName

public String getName()

getType

public short getType()

getSize

public int getSize()

isEmpty

public boolean isEmpty()

get

public PropertyMap.Property get(String name)
Returns:
the property with the given name, if any

getValue

public Object getValue(String name)
Returns:
the value of the property with the given name, if any

getValue

public Object getValue(String name,
                       Object defaultValue)
Returns:
the value of the property with the given name, if any, otherwise the given defaultValue

put

public void put(String name,
                DataType type,
                byte flag,
                Object value)
Puts a property into this map with the given information.


iterator

public Iterator<PropertyMap.Property> iterator()
Specified by:
iterator in interface Iterable<PropertyMap.Property>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2013 Health Market Science. All Rights Reserved.