| java.lang.Object org.quartz.utils.PropertiesParser
PropertiesParser | public class PropertiesParser (Code) | |
This is an utility calss used to parse the properties.
author: James House |
Method Summary | |
public boolean | getBooleanProperty(String name) | public boolean | getBooleanProperty(String name, boolean def) | public byte | getByteProperty(String name) | public byte | getByteProperty(String name, byte def) | public char | getCharProperty(String name) | public char | getCharProperty(String name, char def) | public double | getDoubleProperty(String name) | public double | getDoubleProperty(String name, double def) | public float | getFloatProperty(String name) | public float | getFloatProperty(String name, float def) | public int[] | getIntArrayProperty(String name) | public int[] | getIntArrayProperty(String name, int[] def) | public int | getIntProperty(String name) | public int | getIntProperty(String name, int def) | public long | getLongProperty(String name) | public long | getLongProperty(String name, long def) | public Properties | getPropertyGroup(String prefix) | public Properties | getPropertyGroup(String prefix, boolean stripPrefix) | public Properties | getPropertyGroup(String prefix, boolean stripPrefix, String[] excludedPrefixes) Get all properties that start with the given prefix. | public String[] | getPropertyGroups(String prefix) | public short | getShortProperty(String name) | public short | getShortProperty(String name, short def) | public String[] | getStringArrayProperty(String name) | public String[] | getStringArrayProperty(String name, String[] def) | public String | getStringProperty(String name) Get the trimmed String value of the property with the given
name . | public String | getStringProperty(String name, String def) Get the trimmed String value of the property with the given
name or the given default value if the value is
null or empty after trimming. | public Properties | getUnderlyingProperties() |
getBooleanProperty | public boolean getBooleanProperty(String name)(Code) | | |
getBooleanProperty | public boolean getBooleanProperty(String name, boolean def)(Code) | | |
getCharProperty | public char getCharProperty(String name)(Code) | | |
getCharProperty | public char getCharProperty(String name, char def)(Code) | | |
getPropertyGroup | public Properties getPropertyGroup(String prefix, boolean stripPrefix, String[] excludedPrefixes)(Code) | | Get all properties that start with the given prefix.
Parameters: prefix - The prefix for which to search. If it does not end in a "." then one will be added to it for search purposes. Parameters: stripPrefix - Whether to strip off the given prefix in the result's keys. Parameters: excludedPrefixes - Optional array of fully qualified prefixes toexclude. For example if prefix is "a.b.c", then excludedPrefixes might be "a.b.c.ignore". Group of Properties that start with the given prefix, optionally have that prefix removed, and do not include properties that start with one of the given excluded prefixes. |
getStringProperty | public String getStringProperty(String name)(Code) | | Get the trimmed String value of the property with the given
name . If the value the empty String (after
trimming), then it returns null.
|
getStringProperty | public String getStringProperty(String name, String def)(Code) | | Get the trimmed String value of the property with the given
name or the given default value if the value is
null or empty after trimming.
|
|
|