|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.Utility.NamedValues
Provides support for extracting fields from a name pair string, such as x509 distinguised/issuer names Eg. "DN= Charlie Smith, email=charlie@abc.com" would build a hash table with (DN,Charlie Smith) and (email, charlie@abc.com) and one could search for the value associated with DN or email.
| Constructor Summary | |
NamedValues(java.util.Properties props)
Constructor for NamedValues from a Properties sheeet |
|
NamedValues(java.lang.String inString)
Constructor for the NamedValues, preserving case. |
|
NamedValues(java.lang.String inString,
boolean inLowerCaseOnly)
Constructor for the NamedValues |
|
| Method Summary | |
java.lang.String |
get(java.lang.String inName)
Find and return the value associated with the key. |
java.lang.String |
getLike(java.lang.String inName)
Find and return the property associated with a key which has inName as a substring |
java.util.Properties |
getProperties()
get the underlying Properties object |
java.lang.String |
toString()
Convert the NamedValues to a String representation (name1 = value1, name2 = value2, ...) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NamedValues(java.lang.String inString,
boolean inLowerCaseOnly)
inString - is the string to be parsed into name pairs,
assuming key value pairs separated by =, commas, newlines, tabs or
carriage returns. Builds a structure for querering.public NamedValues(java.lang.String inString)
inString - is the string to be parsed into name pairspublic NamedValues(java.util.Properties props)
props - | Method Detail |
public java.lang.String get(java.lang.String inName)
inName - is the key whose value is wanted
public java.lang.String getLike(java.lang.String inName)
inName - is the substring to look for in a key
public java.util.Properties getProperties()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||