com.mymed.properties
Enum PropType

java.lang.Object
  extended by java.lang.Enum<PropType>
      extended by com.mymed.properties.PropType
All Implemented Interfaces:
IPropType, java.io.Serializable, java.lang.Comparable<PropType>

public enum PropType
extends java.lang.Enum<PropType>
implements IPropType

Structure to hold and define a properties type

Author:
Milo Casagrande

Enum Constant Summary
COLUMNS
          The properties for the database schema Here there are the column names
ERRORS
          Holder for error strings
FIELDS
          Holder for the beans field names
GENERAL
          General properties about mymed
 
Method Summary
 java.lang.String getFileName()
           
 java.lang.String getName()
           
static PropType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PropType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COLUMNS

public static final PropType COLUMNS
The properties for the database schema Here there are the column names


GENERAL

public static final PropType GENERAL
General properties about mymed


ERRORS

public static final PropType ERRORS
Holder for error strings


FIELDS

public static final PropType FIELDS
Holder for the beans field names

Method Detail

values

public static PropType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PropType c : PropType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PropType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getName

public java.lang.String getName()
Specified by:
getName in interface IPropType
Returns:
the name of the properties holder

getFileName

public java.lang.String getFileName()
Specified by:
getFileName in interface IPropType
Returns:
the name of the file holding the properties