Package com.basiscomponents.bl
Class PropertyReader
- java.lang.Object
-
- com.basiscomponents.bl.PropertyReader
-
public class PropertyReader extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertyReader(String filename, String lang)Creates the PropertyReader object which contains a HashMap with all the attribute Lists.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttribute(String attrname, int id)Returns the value for the given attribute name and the specified position.StringgetAttribute(String attrname, String key)Returns the value for the given attribute name and the key.StringgetAttributeKey(String attrname, int id)Returns the key for the given attribute name and the specified position.com.basis.startup.type.BBjVectorgetAttributes(String attrname)Returns a BBjVector with the found values sorted alphabetically or null if nothing was found for the given attribute name.com.basis.startup.type.BBjVectorgetResultSet(String attrname)voidreload()Reloads the property file and all its content to rebuild the map with all the attributes
-
-
-
Method Detail
-
getAttributes
public com.basis.startup.type.BBjVector getAttributes(String attrname)
Returns a BBjVector with the found values sorted alphabetically or null if nothing was found for the given attribute name.- Parameters:
attrname- - The attribute's name- Returns:
- vector which contains all values for the given attribute name or null if nothing was found
-
getAttribute
public String getAttribute(String attrname, int id)
Returns the value for the given attribute name and the specified position.- Parameters:
attrname- - The attribute's nameid- - The position of the key- Returns:
- key or null if nothing was found
-
getAttribute
public String getAttribute(String attrname, String key)
Returns the value for the given attribute name and the key.- Parameters:
attrname- - The attribute's namekey- - The position of the key- Returns:
- key or null if nothing was found
-
getAttributeKey
public String getAttributeKey(String attrname, int id)
Returns the key for the given attribute name and the specified position.- Parameters:
attrname- - The attribute's nameid- - The position of the key- Returns:
- key or null if nothing was found
-
reload
public void reload()
Reloads the property file and all its content to rebuild the map with all the attributes
-
getResultSet
public com.basis.startup.type.BBjVector getResultSet(String attrname)
-
-