Package eu.bandm.tools.dtd
Enum Class EntityRole
- All Implemented Interfaces:
Serializable
,Comparable<EntityRole>
,java.lang.constant.Constable
Models the different roles (/syntactic positions) and combinations thereof,
the expansion text of a "parameter entity" can be compatible with.
Mostly these are positions in attribute declarations, or as "INCLUDE/IGNORE" switch, OR as parts of element content models, but many of the entity bodies found in practice can (by their syntactic structure only) play more than one role. This list tries to list the "reasonable" combinations. An implementation as a power set of single roles would be more natural in priciple, but could not distinguish between "NTV" and "NTVs". The implications are as follows:
Mostly these are positions in attribute declarations, or as "INCLUDE/IGNORE" switch, OR as parts of element content models, but many of the entity bodies found in practice can (by their syntactic structure only) play more than one role. This list tries to list the "reasonable" combinations. An implementation as a power set of single roles would be more natural in priciple, but could not distinguish between "NTV" and "NTVs". The implications are as follows:
N_V_ContentModel_IncIgn =) N_V_ContentModel NT NTV => NTVs
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionis definitely sub expression of a content modelnone of the abovehas been USED as an "ingore/include" switch.simple id, can be attribute name, attribute value, part of an enumeration type definition, or part of a content modellike preceding, but additionally to be used for the selection "INCLUDE/IGNORE"is definitely a sequence of attribute name and typeis definitely a complete attribute definitionis definitely a sequence of more than one complete attribute definitionsis definitely an attribute type, nothing elseis part of an enumerated attribute type, or disjunction in a content modelis definitely sequence of attribute type and valueis definitely attribute value -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static EntityRole
Returns the enum constant of this class with the specified name.static EntityRole[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
N_V_ContentModel
simple id, can be attribute name, attribute value, part of an enumeration type definition, or part of a content model -
N_V_ContentModel_IncIgn
like preceding, but additionally to be used for the selection "INCLUDE/IGNORE" -
NT
is definitely a sequence of attribute name and type -
NTV
is definitely a complete attribute definition -
NTVs
is definitely a sequence of more than one complete attribute definitions -
T
is definitely an attribute type, nothing else -
T_or_ContentModel
is part of an enumerated attribute type, or disjunction in a content model -
TV
is definitely sequence of attribute type and value -
V
is definitely attribute value -
ContentModel
is definitely sub expression of a content model -
IncIgn
has been USED as an "ingore/include" switch. (This cannot be recognized without context.) -
CrUdE
none of the above
-
-
Field Details
-
maybe_content
protected boolean maybe_content
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
maybe_content
public boolean maybe_content()
-