All Packages Class Hierarchy This Package Previous Next Index
Class vnr.util.StemProperties
java.lang.Object
|
+----java.util.Dictionary
|
+----java.util.Hashtable
|
+----java.util.Properties
|
+----vnr.util.StemProperties
- public class StemProperties
- extends Properties
StemProperties a properties class with Rexx stem like functions
19978-01-19 dlg created
- Author:
- dIon Gillard
-
StemProperties()
-
-
StemProperties(Properties)
-
-
addStemValue(String, String)
- Add a value to a stem
i.e.
-
findStemField(String, String, String, boolean)
- finds a property
-
findStemValue(String, String, boolean)
- finds a stem value - returns 0 if not found, the index if found
-
getNumericProperty(String)
- return a property as an int
-
getStemAsArray(String)
- Get stem as array of strings
-
getStemField(String, String, int)
- get a stem field
-
getStemLength(String)
- Get stem length - retrive the .0 field from the properties file as a number
Given a stem of "fred", this method will return the property "fred.0"
as a numeric
-
getStemValue(String, int)
- get stem value - retrive an indexed field as a string
-
put(Object, Object)
- test method - check all puts are done with strings
-
removeEntriesStartingWith(String)
- Remove entries from the projects properties that start with a certain string
-
removeStemValue(String, String)
- remove stem value, shuffle as necessary
-
setStemField(String, String, int, String)
- set a stem field
-
setStemLength(String, int)
- set stem length - set the .0 field in the properties file as a number
-
setStemValue(String, int, String)
- set stem value - set an indexed field as a string
StemProperties
public StemProperties()
StemProperties
public StemProperties(Properties p)
getNumericProperty
public int getNumericProperty(String name)
- return a property as an int
removeEntriesStartingWith
public void removeEntriesStartingWith(String prefix)
- Remove entries from the projects properties that start with a certain string
getStemLength
public int getStemLength(String stem)
- Get stem length - retrive the .0 field from the properties file as a number
Given a stem of "fred", this method will return the property "fred.0"
as a numeric
setStemLength
public void setStemLength(String stem,
int value)
- set stem length - set the .0 field in the properties file as a number
getStemValue
public String getStemValue(String stem,
int index)
- get stem value - retrive an indexed field as a string
setStemValue
public void setStemValue(String stem,
int index,
String value)
- set stem value - set an indexed field as a string
getStemField
public String getStemField(String stem,
String field,
int index)
- get a stem field
setStemField
public void setStemField(String stem,
String field,
int index,
String value)
- set a stem field
findStemField
public int findStemField(String key,
String field,
String value,
boolean ignoreCase)
- finds a property
getStemAsArray
public String[] getStemAsArray(String stem)
- Get stem as array of strings
addStemValue
public void addStemValue(String stem,
String value)
- Add a value to a stem
i.e. junk as the stem, test as the value, puts junk.0 =1, junk.1=test
removeStemValue
public boolean removeStemValue(String stem,
String value)
- remove stem value, shuffle as necessary
findStemValue
public int findStemValue(String stem,
String value,
boolean ignoreCase)
- finds a stem value - returns 0 if not found, the index if found
put
public synchronized Object put(Object key,
Object value)
- test method - check all puts are done with strings
- Overrides:
- put in class Hashtable
All Packages Class Hierarchy This Package Previous Next Index