|
uPortal 2.3.2 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.PropertiesManager
Provides access to properties and manages the portal base directory.
Constructor Summary | |
PropertiesManager()
|
Method Summary | |
static java.lang.String |
getProperty(java.lang.String name)
Returns the value of a property for a given name. |
static boolean |
getPropertyAsBoolean(java.lang.String name)
Returns the value of a property for a given name. |
static byte |
getPropertyAsByte(java.lang.String name)
Returns the value of a property for a given name as a byte |
static double |
getPropertyAsDouble(java.lang.String name)
Returns the value of a property for a given name as a long |
static float |
getPropertyAsFloat(java.lang.String name)
Returns the value of a property for a given name as a float |
static int |
getPropertyAsInt(java.lang.String name)
Returns the value of a property for a given name as an int |
static long |
getPropertyAsLong(java.lang.String name)
Returns the value of a property for a given name as a long |
static short |
getPropertyAsShort(java.lang.String name)
Returns the value of a property for a given name as a short |
static java.lang.String |
getPropertyUntrimmed(java.lang.String name)
Returns the value of a property for a given name including any whitespace that may be at the beginning or end of the property value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertiesManager()
Method Detail |
public static java.lang.String getProperty(java.lang.String name)
name
- the name of the requested property
public static java.lang.String getPropertyUntrimmed(java.lang.String name)
name
- the name of the requested property
public static boolean getPropertyAsBoolean(java.lang.String name)
true
is
returned if the property is set to "true", "yes", "y", or "on"
(regardless of case),
and false
is returned in all other cases.
name
- the name of the requested property
true
if property is set to "true", "yes", "y", or "on" regardless of case, otherwise false
public static byte getPropertyAsByte(java.lang.String name)
byte
name
- the name of the requested property
byte
public static short getPropertyAsShort(java.lang.String name)
short
name
- the name of the requested property
short
public static int getPropertyAsInt(java.lang.String name)
int
name
- the name of the requested property
int
public static long getPropertyAsLong(java.lang.String name)
long
name
- the name of the requested property
long
public static float getPropertyAsFloat(java.lang.String name)
float
name
- the name of the requested property
float
public static double getPropertyAsDouble(java.lang.String name)
long
name
- the name of the requested property
long
|
uPortal 2.3.2 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |