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

Constructor Index

 o StemProperties()
 o StemProperties(Properties)

Method Index

 o addStemValue(String, String)
Add a value to a stem i.e.
 o findStemField(String, String, String, boolean)
finds a property
 o findStemValue(String, String, boolean)
finds a stem value - returns 0 if not found, the index if found
 o getNumericProperty(String)
return a property as an int
 o getStemAsArray(String)
Get stem as array of strings
 o getStemField(String, String, int)
get a stem field
 o 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
 o getStemValue(String, int)
get stem value - retrive an indexed field as a string
 o put(Object, Object)
test method - check all puts are done with strings
 o removeEntriesStartingWith(String)
Remove entries from the projects properties that start with a certain string
 o removeStemValue(String, String)
remove stem value, shuffle as necessary
 o setStemField(String, String, int, String)
set a stem field
 o setStemLength(String, int)
set stem length - set the .0 field in the properties file as a number
 o setStemValue(String, int, String)
set stem value - set an indexed field as a string

Constructors

 o StemProperties
 public StemProperties()
 o StemProperties
 public StemProperties(Properties p)

Methods

 o getNumericProperty
 public int getNumericProperty(String name)
return a property as an int

 o removeEntriesStartingWith
 public void removeEntriesStartingWith(String prefix)
Remove entries from the projects properties that start with a certain string

 o 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

 o setStemLength
 public void setStemLength(String stem,
                           int value)
set stem length - set the .0 field in the properties file as a number

 o getStemValue
 public String getStemValue(String stem,
                            int index)
get stem value - retrive an indexed field as a string

 o setStemValue
 public void setStemValue(String stem,
                          int index,
                          String value)
set stem value - set an indexed field as a string

 o getStemField
 public String getStemField(String stem,
                            String field,
                            int index)
get a stem field

 o setStemField
 public void setStemField(String stem,
                          String field,
                          int index,
                          String value)
set a stem field

 o findStemField
 public int findStemField(String key,
                          String field,
                          String value,
                          boolean ignoreCase)
finds a property

 o getStemAsArray
 public String[] getStemAsArray(String stem)
Get stem as array of strings

 o 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

 o removeStemValue
 public boolean removeStemValue(String stem,
                                String value)
remove stem value, shuffle as necessary

 o findStemValue
 public int findStemValue(String stem,
                          String value,
                          boolean ignoreCase)
finds a stem value - returns 0 if not found, the index if found

 o 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