com.beasys.commerce.axiom.util
Class TypedProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by com.beasys.commerce.axiom.util.TypedProperties
All Implemented Interfaces
Serializable, Cloneable, Map<Object,Object>

Deprecated moved to com.bea.p13n.util.TypedProperties

@Deprecated
public class TypedProperties
extends Properties

Extension of properties class to return typed versions of your properties.

See Also
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
TypedProperties()
          Deprecated See BEA Commerce product offering
 
Method Summary
 String[] getPropertyAsArray(String aPropertyName)
          Deprecated See BEA Commerce product offering
 boolean getPropertyAsBool(String aPropertyName)
          Deprecated See BEA Commerce product offering
 boolean getPropertyAsBool(String aPropertyName, boolean def)
          Deprecated See BEA Commerce product offering
 double getPropertyAsDouble(String aPropertyName)
          Deprecated See BEA Commerce product offering
 float getPropertyAsFloat(String aPropertyName)
          Deprecated See BEA Commerce product offering
 double getPropertyAsFloat(String aPropertyName, double def)
          Deprecated See BEA Commerce product offering
 float getPropertyAsFloat(String aPropertyName, float def)
          Deprecated See BEA Commerce product offering
 int getPropertyAsInt(String aPropertyName)
          Deprecated See BEA Commerce product offering
 int getPropertyAsInt(String aPropertyName, int def)
          Deprecated See BEA Commerce product offering
 long getPropertyAsLong(String aPropertyName)
          Deprecated See BEA Commerce product offering
 long getPropertyAsLong(String aPropertyName, long def)
          Deprecated See BEA Commerce product offering
 String getPropertyAsString(String aPropertyName)
          Deprecated See BEA Commerce product offering
 int getPropertyHexAsInt(String aPropertyName)
          Deprecated See BEA Commerce product offering
 int getPropertyHexAsInt(String aPropertyName, int def)
          Deprecated See BEA Commerce product offering
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypedProperties

public TypedProperties()
Deprecated See BEA Commerce product offering

Default constructor.

Method Detail

getPropertyAsInt

public int getPropertyAsInt(String aPropertyName,
                            int def)
Deprecated See BEA Commerce product offering

Look for a property and return it as an int.

Parameters
aPropertyName - the property name.
def - the default int value if the property is not found.
Returns
int the value

getPropertyAsInt

public int getPropertyAsInt(String aPropertyName)
Deprecated See BEA Commerce product offering

Look for a property and return it as an int.

Parameters
aPropertyName - the property name.
Returns
int the value(-1 if not found)

getPropertyHexAsInt

public int getPropertyHexAsInt(String aPropertyName,
                               int def)
Deprecated See BEA Commerce product offering

Return a hex representation of a number as a base 10 int.

Parameters
aPropertyName - the property name to look for.
def - the default value.
Returns
int

getPropertyHexAsInt

public int getPropertyHexAsInt(String aPropertyName)
Deprecated See BEA Commerce product offering

Return a hex representation of a number as a base 10 int.

Parameters
aPropertyName - the property name to look for.
Returns
int (-1 if not found)

getPropertyAsLong

public long getPropertyAsLong(String aPropertyName,
                              long def)
Deprecated See BEA Commerce product offering

Get the property as a long value.

Parameters
aPropertyName - the property name.
def - the default value.
Returns
long

getPropertyAsLong

public long getPropertyAsLong(String aPropertyName)
Deprecated See BEA Commerce product offering

Get the property as a long value.

Parameters
aPropertyName - the property name.
Returns
long (-1 if not found)

getPropertyAsFloat

public float getPropertyAsFloat(String aPropertyName,
                                float def)
Deprecated See BEA Commerce product offering

Get the property as a float value.

Parameters
aPropertyName - the property name.
def - the default value.
Returns
float

getPropertyAsFloat

public float getPropertyAsFloat(String aPropertyName)
Deprecated See BEA Commerce product offering

Get the property as a float value.

Parameters
aPropertyName - the property name.
Returns
float (-1 if not found)

getPropertyAsFloat

public double getPropertyAsFloat(String aPropertyName,
                                 double def)
Deprecated See BEA Commerce product offering

Get the property as a double value.

Parameters
aPropertyName - the property name.
def - the default value.
Returns
double

getPropertyAsDouble

public double getPropertyAsDouble(String aPropertyName)
Deprecated See BEA Commerce product offering

Get the property as a double value.

Parameters
aPropertyName - the property name.
Returns
double (-1 if not found)

getPropertyAsString

public String getPropertyAsString(String aPropertyName)
Deprecated See BEA Commerce product offering

Just does getProperty.

Parameters
aPropertyName - the property name.
Returns
String

getPropertyAsBool

public boolean getPropertyAsBool(String aPropertyName,
                                 boolean def)
Deprecated See BEA Commerce product offering

Get a boolean property value.

Parameters
aPropertyName - the property name
def - the default value
Returns
boolean

getPropertyAsBool

public boolean getPropertyAsBool(String aPropertyName)
Deprecated See BEA Commerce product offering

Get a boolean property value.

Parameters
aPropertyName - the property name
Returns
boolean (if not found defaults to false)

getPropertyAsArray

public String[] getPropertyAsArray(String aPropertyName)
Deprecated See BEA Commerce product offering

If a property has a comma separated list, this method will parse it into a String array.

Parameters
String - the property name.
Returns
String[] the array of values.


Copyright © 2006 BEA Systems, Inc. All Rights Reserved