sk.uniba.euromath.document.schema.impl.tools
Enum ExpFinderLevel

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

public enum ExpFinderLevel
extends Enum<ExpFinderLevel>

Specifies level that shall be used for obtaining an expression.

Author:
Martin Vysny

Enum Constant Summary
Basic
          Performs only basic tests.
ContentTest
          Performs parent test, and if there are more than one expression, then for each element checks element contents against this rule.
ParentTest
          Performs basic test, and if there are more than one expression, perform following test: check for each expression, if path from this element to root element complies with at least one possible path from this expression to root expression.
 
Method Summary
static ExpFinderLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ExpFinderLevel[] 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

Basic

public static final ExpFinderLevel Basic
Performs only basic tests. Result is set of element rules, whose NameClass accepts given element localName.


ParentTest

public static final ExpFinderLevel ParentTest
Performs basic test, and if there are more than one expression, perform following test: check for each expression, if path from this element to root element complies with at least one possible path from this expression to root expression.


ContentTest

public static final ExpFinderLevel ContentTest
Performs parent test, and if there are more than one expression, then for each element checks element contents against this rule.

Method Detail

values

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

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

valueOf

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