sk.uniba.euromath.document.schema
Enum AcceptsEnum

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

public enum AcceptsEnum
extends Enum<AcceptsEnum>

Determines type of qnames, that some rule accepts.

Let our_ns(ns) be boolean expression, equal to ns.equals(schema_namespace) when representing elements, or ns.equals(schema_namespace) || ns.equals("") when representing attributes. Then:

If the information is not known then the function should return EnumSet containing both flags.

Author:
Martin Vysny

Enum Constant Summary
FOREIGN
          The rule accepts qnames not from schema's namespace.
LOCAL
          The rule accepts qnames from schema's namespace.
 
Method Summary
static AcceptsEnum valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AcceptsEnum[] 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

LOCAL

public static final AcceptsEnum LOCAL
The rule accepts qnames from schema's namespace.


FOREIGN

public static final AcceptsEnum FOREIGN
The rule accepts qnames not from schema's namespace.

Method Detail

values

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

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

valueOf

public static AcceptsEnum 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.