|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<AcceptsEnum> sk.uniba.euromath.document.schema.AcceptsEnum
public 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:
foreign
namespace then
accepts(some_ns, some_localname) && !our_ns(some_ns)
must be
true
for some some_ns and some_localname.
local
namespace then
accepts(some_ns, some_localname) && our_ns(some_ns)
must be
true
for some some_ns and some_localname.
If the information is not known then the function should return
EnumSet
containing both flags.
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 |
---|
public static final AcceptsEnum LOCAL
public static final AcceptsEnum FOREIGN
Method Detail |
---|
public static final AcceptsEnum[] values()
for(AcceptsEnum c : AcceptsEnum.values()) System.out.println(c);
public static AcceptsEnum valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |