org.ephman.abra.tools
Class PropertyTable
java.lang.Object
|
+--org.ephman.abra.tools.PropertyTable
- public class PropertyTable
- extends java.lang.Object
encapsulate the properties in the xml file..
- Version:
- 0.0.2
- Author:
- Paul M. Bethe
Field Summary |
(package private) java.lang.String |
mapFileName
|
(package private) java.util.HashMap |
pairs
|
(package private) java.util.HashMap |
un_resolved
|
static java.lang.String |
varexp
|
org.apache.regexp.RE |
varRegex
|
Method Summary |
void |
addNode(org.ephman.xml.XmlNode aNode)
|
void |
addProperties(java.util.Vector nodes,
java.lang.String mapFileName)
add properties to the table.. |
(package private) void |
addToUnresolved(org.ephman.xml.XmlNode node,
java.lang.String varName)
|
java.lang.String |
replace(java.lang.String input)
search input for ${foo} and replace with lookup to 42.. |
java.lang.String |
replace(java.lang.String input,
int index)
|
java.util.Map |
replaceAll(java.util.Map map)
|
(package private) void |
resolve(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pairs
java.util.HashMap pairs
mapFileName
java.lang.String mapFileName
un_resolved
java.util.HashMap un_resolved
varexp
public static final java.lang.String varexp
- See Also:
- Constant Field Values
varRegex
public org.apache.regexp.RE varRegex
PropertyTable
public PropertyTable()
throws org.ephman.xml.XmlException
addProperties
public void addProperties(java.util.Vector nodes,
java.lang.String mapFileName)
throws SchemaException
- add properties to the table..
- Parameters:
nodes
- a Vector of XmlNodes of type
SchemaException
addNode
public void addNode(org.ephman.xml.XmlNode aNode)
throws SchemaException
SchemaException
resolve
void resolve(java.lang.String name)
throws SchemaException
SchemaException
addToUnresolved
void addToUnresolved(org.ephman.xml.XmlNode node,
java.lang.String varName)
throws SchemaException
SchemaException
replaceAll
public java.util.Map replaceAll(java.util.Map map)
replace
public java.lang.String replace(java.lang.String input)
- search input for ${foo} and replace with lookup to 42..
- Parameters:
input
- the string to use
- Returns:
- a fixed string (same if no ${})
replace
public java.lang.String replace(java.lang.String input,
int index)