sk.uniba.euromath.document.schema
Enum SchemaAvailabilityEnum

java.lang.Object
  extended by java.lang.Enum<SchemaAvailabilityEnum>
      extended by sk.uniba.euromath.document.schema.SchemaAvailabilityEnum
All Implemented Interfaces:
Serializable, Comparable<SchemaAvailabilityEnum>

public enum SchemaAvailabilityEnum
extends Enum<SchemaAvailabilityEnum>

Enum constants defining availability of schema.

Author:
Martin Vysny

Enum Constant Summary
BOUND
          States that schema for a namespace is loaded into memory and it is bound (registered) with this document.
LOADABLE
          States that schema for a namespace is not yet loaded but it is known (it is configured properly in the config file) and can be loaded.
LOADED
          States that schema for a namespace is loaded into memory but it is not bounded to this document.
UNAVAILABLE
          States that no schema is defined for a namespace thus cannot be loaded.
 
Method Summary
static SchemaAvailabilityEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SchemaAvailabilityEnum[] 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

LOADED

public static final SchemaAvailabilityEnum LOADED
States that schema for a namespace is loaded into memory but it is not bounded to this document.


BOUND

public static final SchemaAvailabilityEnum BOUND
States that schema for a namespace is loaded into memory and it is bound (registered) with this document.


LOADABLE

public static final SchemaAvailabilityEnum LOADABLE
States that schema for a namespace is not yet loaded but it is known (it is configured properly in the config file) and can be loaded.


UNAVAILABLE

public static final SchemaAvailabilityEnum UNAVAILABLE
States that no schema is defined for a namespace thus cannot be loaded.

Method Detail

values

public static final SchemaAvailabilityEnum[] 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(SchemaAvailabilityEnum c : SchemaAvailabilityEnum.values())
        System.out.println(c);

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

valueOf

public static SchemaAvailabilityEnum 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 © 2003-2006 null. All Rights Reserved.