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

# com.beasys.commerce.axiom.util
TypedProperties Class

public class TypedProperties
extends `Properties`

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

Hierarchy
  `Object`
  `Dictionary`
  `Hashtable`
  `Properties`
  `TypedProperties`

All Implemented Interfaces
  `Cloneable`, `Map`, `Serializable`

## Field Summary

Fields from java.util`.`Properties``
`defaults`

## Constructor Summary

TypedProperties() Default constructor.

## Method Summary

`public `String`[]` | `getPropertyAsArray`(`String` aPropertyName) If a property has a comma separated list, this method will parse it into a String array.
`public boolean` | `getPropertyAsBool`(`String` aPropertyName, boolean def) Get a boolean property value.
`public boolean` | `getPropertyAsBool`(`String` aPropertyName) Get a boolean property value.
`public double` | `getPropertyAsDouble`(`String` aPropertyName) Get the property as a double value.
`public float` | `getPropertyAsFloat`(`String` aPropertyName, float def) Get the property as a float value.
`public float` | `getPropertyAsFloat`(`String` aPropertyName) Get the property as a float value.
`public double` | `getPropertyAsFloat`(`String` aPropertyName, double def) Get the property as a double value.
`public int` | `getPropertyAsInt`(`String` aPropertyName, int def) Look for a property and return it as an int.
`public int` | `getPropertyAsInt`(`String` aPropertyName) Look for a property and return it as an int.
`public long` | `getPropertyAsLong`(`String` aPropertyName, long def) Get the property as a long value.
`public long` | `getPropertyAsLong`(`String` aPropertyName) Get the property as a long value.
`public `String`` | `getPropertyAsString`(`String` aPropertyName) Just does getProperty.
`public int` | `getPropertyHexAsInt`(`String` aPropertyName, int def) Return a hex representation of a number as a base 10 int.
`public int` | `getPropertyHexAsInt`(`String` aPropertyName) Return a hex representation of a number as a base 10 int.

Methods from `java.util.`Properties``
`getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store`

Methods from `java.util.`Hashtable``
`clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values`

Methods from `java.util.`Dictionary``
`elements, get, isEmpty, keys, put, remove, size`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `java.util.`Map``
`clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values`

## Constructor Detail

### TypedProperties

    public TypedProperties()

  Default constructor.

## Method Detail

### getPropertyAsArray(String) Method

    public String[] getPropertyAsArray(String aPropertyName)

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

#### Parameters

aPropertyName
  the property name.

#### Returns

String[] the array of values.

### getPropertyAsBool(String, boolean) Method

    public boolean getPropertyAsBool(String aPropertyName,
                                     boolean def)

Get a boolean property value.

#### Parameters

aPropertyName
  the property name

def
  the default value

#### Returns

boolean

### getPropertyAsBool(String) Method

    public boolean getPropertyAsBool(String aPropertyName)

Get a boolean property value.

#### Parameters

aPropertyName
  the property name

#### Returns

boolean (if not found defaults to false)

### getPropertyAsDouble(String) Method

    public double getPropertyAsDouble(String aPropertyName)

Get the property as a double value.

#### Parameters

aPropertyName
  the property name.

#### Returns

double (-1 if not found)

### getPropertyAsFloat(String, float) Method

    public float getPropertyAsFloat(String aPropertyName,
                                    float def)

Get the property as a float value.

#### Parameters

aPropertyName
  the property name.

def
  the default value.

#### Returns

float

### getPropertyAsFloat(String) Method

    public float getPropertyAsFloat(String aPropertyName)

Get the property as a float value.

#### Parameters

aPropertyName
  the property name.

#### Returns

float (-1 if not found)

### getPropertyAsFloat(String, double) Method

    public double getPropertyAsFloat(String aPropertyName,
                                     double def)

Get the property as a double value.

#### Parameters

aPropertyName
  the property name.

def
  the default value.

#### Returns

double

### getPropertyAsInt(String, int) Method

    public int getPropertyAsInt(String aPropertyName,
                                int def)

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(String) Method

    public int getPropertyAsInt(String aPropertyName)

Look for a property and return it as an int.

#### Parameters

aPropertyName
  the property name.

#### Returns

int the value(-1 if not found)

### getPropertyAsLong(String, long) Method

    public long getPropertyAsLong(String aPropertyName,
                                  long def)

Get the property as a long value.

#### Parameters

aPropertyName
  the property name.

def
  the default value.

#### Returns

long

### getPropertyAsLong(String) Method

    public long getPropertyAsLong(String aPropertyName)

Get the property as a long value.

#### Parameters

aPropertyName
  the property name.

#### Returns

long (-1 if not found)

### getPropertyAsString(String) Method

    public String getPropertyAsString(String aPropertyName)

Just does getProperty.

#### Parameters

aPropertyName
  the property name.

#### Returns

String

### getPropertyHexAsInt(String, int) Method

    public int getPropertyHexAsInt(String aPropertyName,
                                   int def)

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(String) Method

    public int getPropertyHexAsInt(String aPropertyName)

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)