|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
byte[] |
getBlobProperty(java.lang.String key)
Retrieve a property as a BLOB (byte[]) |
byte[] |
getBlobProperty(java.lang.String key,
byte[] defaultValue)
Retrieve a property as a BLOB ( byte[] ) |
boolean |
getBooleanProperty(java.lang.String key)
Retrieve a property as a boolean |
boolean |
getBooleanProperty(java.lang.String key,
boolean defaultValue)
Retrieve a property as a boolean |
java.util.Date |
getDateProperty(java.lang.String key)
Retrieve a property as a Date |
java.util.Date |
getDateProperty(java.lang.String key,
java.util.Date defaultValue)
Retrieve a property as a Date |
java.util.Date |
getDateProperty(java.lang.String key,
java.lang.String dateFormat)
Retrieve a property as a Date |
java.util.Date |
getDateProperty(java.lang.String key,
java.lang.String dateFormat,
java.util.Date defaultValue)
Retrieve a property as a Date |
double |
getDoubleProperty(java.lang.String key)
Retrieve a property as a double |
double |
getDoubleProperty(java.lang.String key,
double defaultValue)
Retrieve a property as a double |
java.util.Enumeration |
getEnumeratedProperty(java.lang.String key)
Retrieve a set of properties under a common name, as an Enumeration of Strings |
float |
getFloatProperty(java.lang.String key)
Retrieve a property as a float |
float |
getFloatProperty(java.lang.String key,
float defaultValue)
Retrieve a property as a float |
int |
getIntProperty(java.lang.String key)
Retrieve a property as an int |
int |
getIntProperty(java.lang.String key,
int defaultValue)
Retrieve a property as an int |
java.util.Enumeration |
getKeys()
Get the keys set in this properties object |
long |
getLongProperty(java.lang.String key)
Retrieve a property as a long |
long |
getLongProperty(java.lang.String key,
long defaultValue)
Retrieve a property as a long |
java.lang.Object |
getObjectProperty(java.lang.String key)
Retrieve a property as an Object |
java.lang.Object |
getObjectProperty(java.lang.String key,
java.lang.Object defaultValue)
Retrieve a property as an Object |
java.lang.String |
getSectionName()
returns the identifier for this section |
java.lang.String |
getStringProperty(java.lang.String key)
Retrieve a property as a String |
java.lang.String |
getStringProperty(java.lang.String key,
java.lang.String defaultValue)
Retrieve a property as a String |
void |
setBooleanProperty(java.lang.String key,
boolean value)
Set a property as a boolean |
void |
setDateProperty(java.lang.String key,
java.util.Date value)
Set a property as a boolean |
void |
setDateProperty(java.lang.String key,
java.util.Date value,
java.lang.String dateFormat)
Set a property as a boolean |
void |
setDoubleProperty(java.lang.String key,
double value)
Set a property as a double |
void |
setEnumeratedProperty(java.lang.String key,
java.util.Enumeration values)
Set a set of properties under a common name, as an Enumeration of Strings |
void |
setFloatProperty(java.lang.String key,
float value)
Set a property as a float |
void |
setIntProperty(java.lang.String key,
int value)
Set a property as an integer |
void |
setLongProperty(java.lang.String key,
long value)
Set a property as a long |
void |
setObjectProperty(java.lang.String key,
java.lang.Object value)
Set a property as an Object |
void |
setStringProperty(java.lang.String key,
java.lang.String value)
Set a property as a String |
Method Detail |
public java.lang.String getSectionName()
public byte[] getBlobProperty(java.lang.String key) throws MalformedPropertyException, PropertyNotFoundException
key
- the key to useMalformedPropertyException
- could not be parsed to the correct formatPropertyNotFoundException
- if the property does not existpublic byte[] getBlobProperty(java.lang.String key, byte[] defaultValue) throws MalformedPropertyException
key
- the key to usedefaultValue
- the value to use if the entry cannot be foundMalformedPropertyException
- if the value could not be parsed correctlypublic boolean getBooleanProperty(java.lang.String key) throws MalformedPropertyException, PropertyNotFoundException
key
- the key to useMalformedPropertyException
- could not be parsed to the correct formatPropertyNotFoundException
- if the property does not existpublic boolean getBooleanProperty(java.lang.String key, boolean defaultValue) throws MalformedPropertyException
key
- the key to usedefaultValue
- the value to use if the entry cannot be foundMalformedPropertyException
- if the value could not be parsed correctlypublic java.util.Date getDateProperty(java.lang.String key) throws MalformedPropertyException, PropertyNotFoundException
key
- the key to useMalformedPropertyException
- could not be parsed to the correct formatPropertyNotFoundException
- if the property does not existpublic java.util.Date getDateProperty(java.lang.String key, java.lang.String dateFormat) throws MalformedPropertyException, PropertyNotFoundException
key
- the key to usedateFormat
- the format string for the dateMalformedPropertyException
- could not be parsed to the correct formatPropertyNotFoundException
- if the property does not existfor details on the composition of the format string
public java.util.Date getDateProperty(java.lang.String key, java.lang.String dateFormat, java.util.Date defaultValue) throws MalformedPropertyException
key
- the key to usedefaultValue
- the value to use if the entry cannot be founddateFormat
- the format string for the dateMalformedPropertyException
- if the value could not be parsed correctlyfor details on the composition of the format string
public java.util.Date getDateProperty(java.lang.String key, java.util.Date defaultValue) throws MalformedPropertyException
key
- the key to usedefaultValue
- the value to use if the entry cannot be foundMalformedPropertyException
- if the value could not be parsed correctlypublic double getDoubleProperty(java.lang.String key) throws MalformedPropertyException, PropertyNotFoundException
key
- the key to useMalformedPropertyException
- could not be parsed to the correct formatPropertyNotFoundException
- if the property does not existpublic double getDoubleProperty(java.lang.String key, double defaultValue) throws MalformedPropertyException
key
- the key to usedefaultValue
- the value to use if the entry cannot be foundMalformedPropertyException
- if the value could not be parsed correctlypublic java.util.Enumeration getEnumeratedProperty(java.lang.String key) throws PropertyNotFoundException
the
- key to usePropertyNotFoundException
- if the property does not existpublic float getFloatProperty(java.lang.String key) throws MalformedPropertyException, PropertyNotFoundException
key
- the key to useMalformedPropertyException
- could not be parsed to the correct formatPropertyNotFoundException
- if the property does not existpublic float getFloatProperty(java.lang.String key, float defaultValue) throws MalformedPropertyException
key
- the key to usedefaultValue
- the value to use if the entry cannot be foundMalformedPropertyException
- if the value could not be parsed correctlypublic int getIntProperty(java.lang.String key) throws MalformedPropertyException, PropertyNotFoundException
key
- the key to useMalformedPropertyException
- could not be parsed to the correct formatPropertyNotFoundException
- if the property does not existpublic int getIntProperty(java.lang.String key, int defaultValue) throws MalformedPropertyException
key
- the key to usedefaultValue
- the value to use if the entry cannot be foundMalformedPropertyException
- if the value could not be parsed correctlypublic java.util.Enumeration getKeys()
public long getLongProperty(java.lang.String key) throws MalformedPropertyException, PropertyNotFoundException
key
- the key to useMalformedPropertyException
- could not be parsed to the correct formatPropertyNotFoundException
- if the property does not existpublic long getLongProperty(java.lang.String key, long defaultValue) throws MalformedPropertyException
key
- the key to usedefaultValue
- the value to use if the entry cannot be foundMalformedPropertyException
- if the value could not be parsed correctlypublic java.lang.Object getObjectProperty(java.lang.String key) throws PropertyNotFoundException
key
- the key to usePropertyNotFoundException
- if the property does not existpublic java.lang.Object getObjectProperty(java.lang.String key, java.lang.Object defaultValue)
key
- the key to usedefaultValue
- the value to use if the entry cannot be foundpublic java.lang.String getStringProperty(java.lang.String key) throws PropertyNotFoundException
key
- the key to usePropertyNotFoundException
- if the property does not existpublic java.lang.String getStringProperty(java.lang.String key, java.lang.String defaultValue)
key
- the key to usedefaultValue
- the value to use if the entry cannot be foundpublic void setBooleanProperty(java.lang.String key, boolean value) throws PropertyException
key
- the key to use for this propertyvalue
- the value to storepublic void setDateProperty(java.lang.String key, java.util.Date value) throws PropertyException
key
- the key to use for this propertyvalue
- the value to storepublic void setDateProperty(java.lang.String key, java.util.Date value, java.lang.String dateFormat) throws PropertyException
key
- the key to use for this propertyvalue
- the value to storedateFormat
- the format string for the datefor details on the composition of the format string
public void setDoubleProperty(java.lang.String key, double value) throws PropertyException
key
- the key to use for this propertyvalue
- the value to storepublic void setEnumeratedProperty(java.lang.String key, java.util.Enumeration values) throws PropertyException
the
- key to usepublic void setFloatProperty(java.lang.String key, float value) throws PropertyException
key
- the key to use for this propertyvalue
- the value to storepublic void setIntProperty(java.lang.String key, int value) throws PropertyException
key
- the key to use for this propertyvalue
- the value to storepublic void setLongProperty(java.lang.String key, long value) throws PropertyException
key
- the key to use for this propertyvalue
- the value to storepublic void setObjectProperty(java.lang.String key, java.lang.Object value) throws PropertyException
key
- the key to use for this propertyvalue
- the value to storepublic void setStringProperty(java.lang.String key, java.lang.String value) throws PropertyException
key
- the key to use for this propertyvalue
- the value to store
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |