| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| protected int[] | |
| protected String[] | |
| protected FileAccess | |
| protected String | |
| protected String | |
| public static final int | |
| protected Properties |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | |
| public void | |
| public static HsqlProperties | argArrayToProps(String[] arg, String type)
Creates and populates an HsqlProperties Object from the arguments array of a Main method. |
| public static HsqlProperties | delimitedArgPairsToProps(String s, String pairsep, String dlimiter, String type)
Creates and populates a new HsqlProperties Object using a string such as "key1=value1;key2=value2". |
| public String[] | |
| public int | |
| public static int | |
| public Properties | |
| public String | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public static HsqlProperties. | |
| public static HsqlProperties. | |
| public static HsqlProperties. | |
| public static HsqlProperties. | |
| public static HsqlProperties. | |
| public static HsqlProperties. | |
| public boolean | |
| public Enumeration | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public void | |
| public static String | validateProperty(String key, String value, HsqlProperties.
Performs any range checking for property and return an error message |
| ANY_ERROR | back to summary |
|---|---|
| public static final int ANY_ERROR | |
| errorCodes | back to summary |
|---|---|
| protected int[] errorCodes | |
| errorKeys | back to summary |
|---|---|
| protected String[] errorKeys | |
| fa | back to summary |
|---|---|
| protected FileAccess fa | |
| fileExtension | back to summary |
|---|---|
| protected String fileExtension | |
| fileName | back to summary |
|---|---|
| protected String fileName | |
| NO_VALUE_FOR_KEY | back to summary |
|---|---|
| public static final int NO_VALUE_FOR_KEY | |
| stringProps | back to summary |
|---|---|
| protected Properties stringProps | |
| HsqlProperties | back to summary |
|---|---|
| public HsqlProperties() | |
| HsqlProperties | back to summary |
|---|---|
| public HsqlProperties(String fileName) | |
| HsqlProperties | back to summary |
|---|---|
| public HsqlProperties(String fileName, String fileExtension) | |
| HsqlProperties | back to summary |
|---|---|
| public HsqlProperties(String fileName, FileAccess accessor, boolean b) | |
| HsqlProperties | back to summary |
|---|---|
| public HsqlProperties(Properties props) | |
| addError | back to summary |
|---|---|
| protected void addError(int code, String key) Adds the error code and the key to the list of errors. This list is populated during construction or addition of elements and is used outside this class to act upon the errors. | |
| addProperties | back to summary |
|---|---|
| public void addProperties(Properties props) | |
| addProperties | back to summary |
|---|---|
| public void addProperties(HsqlProperties props) | |
| argArrayToProps | back to summary |
|---|---|
| public static HsqlProperties argArrayToProps(String[] arg, String type) Creates and populates an HsqlProperties Object from the arguments array of a Main method. Properties are in the form of "-key value" pairs. Each key is prefixed with the type argument and a dot before being inserted into the properties Object. "--help" is treated as a key with no value and not inserted. | |
| delimitedArgPairsToProps | back to summary |
|---|---|
| public static HsqlProperties delimitedArgPairsToProps(String s, String pairsep, String dlimiter, String type) Creates and populates a new HsqlProperties Object using a string such as "key1=value1;key2=value2". The string that represents the = sign above is specified as pairsep and the one that represents the semicolon is specified as delimiter, allowing any string to be used for either. Leading / trailing spaces around the keys and values are discarded. The string is parsed by (1) subdividing into segments by delimiter (2) subdividing each segment in two by finding the first instance of the pairsep (3) trimming each pair of segments from step 2 and inserting into the properties object. Each key is prefixed with the type argument and a dot before being inserted. Any key without a value is added to the list of errors. | |
| getErrorKeys | back to summary |
|---|---|
| public String[] getErrorKeys() | |
| getIntegerProperty | back to summary |
|---|---|
| public int getIntegerProperty(String key, int defaultValue) | |
| getIntegerProperty | back to summary |
|---|---|
| public static int getIntegerProperty(Properties props, String key, int defaultValue) | |
| getProperties | back to summary |
|---|---|
| public Properties getProperties() | |
| getProperty | back to summary |
|---|---|
| public String getProperty(String key) | |
| getProperty | back to summary |
|---|---|
| public String getProperty(String key, String defaultValue) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| isPropertyTrue | back to summary |
|---|---|
| public boolean isPropertyTrue(String key) | |
| isPropertyTrue | back to summary |
|---|---|
| public boolean isPropertyTrue(String key, boolean defaultValue) | |
| load | back to summary |
|---|---|
| public boolean load() throws Exception | |
| newMeta | back to summary |
|---|---|
| public static HsqlProperties. | |
| newMeta | back to summary |
|---|---|
| public static HsqlProperties. | |
| newMeta | back to summary |
|---|---|
| public static HsqlProperties. | |
| newMeta | back to summary |
|---|---|
| public static HsqlProperties. | |
| newMeta | back to summary |
|---|---|
| public static HsqlProperties. | |
| newMeta | back to summary |
|---|---|
| public static HsqlProperties. | |
| propertiesFileExists | back to summary |
|---|---|
| public boolean propertiesFileExists() | |
| propertyNames | back to summary |
|---|---|
| public Enumeration | |
| removeProperty | back to summary |
|---|---|
| public void removeProperty(String key) | |
| save | back to summary |
|---|---|
| public void save() throws Exception Saves the properties. | |
| save | back to summary |
|---|---|
| public void save(String fileString) throws Exception Saves the properties | |
| setFileName | back to summary |
|---|---|
| public void setFileName(String name) | |
| setProperty | back to summary |
|---|---|
| public String setProperty(String key, int value) | |
| setProperty | back to summary |
|---|---|
| public String setProperty(String key, boolean value) | |
| setProperty | back to summary |
|---|---|
| public String setProperty(String key, String value) | |
| setPropertyIfNotExists | back to summary |
|---|---|
| public String setPropertyIfNotExists(String key, String value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| validate | back to summary |
|---|---|
| public void validate() | |
| validateProperty | back to summary |
|---|---|
| public static String validateProperty(String key, String value, HsqlProperties. Performs any range checking for property and return an error message | |
| Modifier and Type | Field and Description |
|---|---|
| public String | |
| public Object | |
| public boolean | |
| public String | |
| public String[] | |
| public int | |
| public int | |
| public int | |
| public int[] |
| Access | Constructor and Description |
|---|---|
| public |
| propClass | back to summary |
|---|---|
| public String propClass | |
| propDefaultValue | back to summary |
|---|---|
| public Object propDefaultValue | |
| propIsRange | back to summary |
|---|---|
| public boolean propIsRange | |
| propName | back to summary |
|---|---|
| public String propName | |
| propOptions | back to summary |
|---|---|
| public String[] propOptions | |
| propRangeHigh | back to summary |
|---|---|
| public int propRangeHigh | |
| propRangeLow | back to summary |
|---|---|
| public int propRangeLow | |
| propType | back to summary |
|---|---|
| public int propType | |
| propValues | back to summary |
|---|---|
| public int[] propValues | |
| PropertyMeta | back to summary |
|---|---|
| public PropertyMeta() | |