org.jasig.portal
Class StylesheetSet.OrderedProps

java.lang.Object
  extended by org.jasig.portal.StylesheetSet.OrderedProps
Enclosing class:
StylesheetSet

 class StylesheetSet.OrderedProps
extends java.lang.Object

COPIED FROM XALAN SOURCE Stores the keys and values from a file (similar to a properties file) and can return the first value which has a key contained in its string. File can have comment lines starting with '#" and for each line the entries are separated by tabs and '=' char.


Field Summary
private  java.util.Vector attVec
          Stores the Key and Values as an array of Strings
 
Constructor Summary
StylesheetSet.OrderedProps(java.io.InputStream inputStream)
          Constructor.
 
Method Summary
(package private)  java.lang.String getValue(java.lang.String s)
          Iterates through the Key list and returns the first value for whose key the given string contains.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attVec

private java.util.Vector attVec
Stores the Key and Values as an array of Strings

Constructor Detail

StylesheetSet.OrderedProps

StylesheetSet.OrderedProps(java.io.InputStream inputStream)
                     throws java.io.IOException
Constructor.

Parameters:
inputStream - Stream containing the properties file.
Throws:
java.io.IOException - Thrown if unable to read from stream
Method Detail

getValue

java.lang.String getValue(java.lang.String s)
Iterates through the Key list and returns the first value for whose key the given string contains. Returns "unknown" if no key is contained in the string.

Parameters:
s - String being searched for a key.
Returns:
Value for key found in string, otherwise "unknown"