com.prowidesoftware.swift.model
Class PropertyResource

java.lang.Object
  extended by com.prowidesoftware.swift.model.PropertyResource
Direct Known Subclasses:
ISOCountries, ISOCurrencies

public abstract class PropertyResource
extends java.lang.Object

Common code for subclasses.

Since:
3.3
Version:
$Id: PropertyResource.java,v 1.1.1.1 2013/04/10 17:04:50 mgriffa Exp $
Author:
www.prowidesoftware.com

Field Summary
protected static java.util.Properties prop
          Property object to handle
 
Constructor Summary
protected PropertyResource()
          Default constructor, loads the property file
 
Method Summary
protected abstract  java.lang.String getResourceName()
          Gets the resource name for the managed property
 boolean isValidCode(java.lang.String code)
          Checks the parameter code in the managed prperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prop

protected static final java.util.Properties prop
Property object to handle

Constructor Detail

PropertyResource

protected PropertyResource()
Default constructor, loads the property file

Method Detail

getResourceName

protected abstract java.lang.String getResourceName()
Gets the resource name for the managed property

Returns:
String containing the resource name

isValidCode

public boolean isValidCode(java.lang.String code)
Checks the parameter code in the managed prperty

Parameters:
code - key to look for in the properties
Returns:
true if the property contains code as key