com.sourceforge.jpatterns.core.configuration
Enum PropertiesProvider.OverridingDepths

java.lang.Object
  extended by java.lang.Enum<PropertiesProvider.OverridingDepths>
      extended by com.sourceforge.jpatterns.core.configuration.PropertiesProvider.OverridingDepths
All Implemented Interfaces:
Serializable, Comparable<PropertiesProvider.OverridingDepths>
Enclosing class:
PropertiesProvider

public static enum PropertiesProvider.OverridingDepths
extends Enum<PropertiesProvider.OverridingDepths>

This enum defines the depths we could use for the defining the overriding types.
Consider the idea of the common stuff for the converting possible types of the properties files to the enum (check how it is done fore the castor - may be it is worth to use castor for it) - idea of Prosper!!!
Please review the comments to the jpatterns.configuration.xml.overriding.depth property in the jpatterns.properties properties file.


Enum Constant Summary
OVERRIDING_LEVEL_ITEM
          Says it is correct case of existence of two section objects with identical path (scope, section name, priorities) - just because it is allowed to extend the existed sections items configuration by the additional items.
OVERRIDING_LEVEL_SECTION
          Says that it is incorrect case when the sections contains two section with identical pathes (scopes, section names, priorities).
 
Method Summary
static PropertiesProvider.OverridingDepths valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PropertiesProvider.OverridingDepths[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OVERRIDING_LEVEL_SECTION

public static final PropertiesProvider.OverridingDepths OVERRIDING_LEVEL_SECTION
Says that it is incorrect case when the sections contains two section with identical pathes (scopes, section names, priorities).


OVERRIDING_LEVEL_ITEM

public static final PropertiesProvider.OverridingDepths OVERRIDING_LEVEL_ITEM
Says it is correct case of existence of two section objects with identical path (scope, section name, priorities) - just because it is allowed to extend the existed sections items configuration by the additional items.

Method Detail

values

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

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

valueOf

public static PropertiesProvider.OverridingDepths valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2007 jzmicer.team. All Rights Reserved.