Enum Class EntityRole

java.lang.Object
java.lang.Enum<EntityRole>
eu.bandm.tools.dtd.EntityRole
All Implemented Interfaces:
Serializable, Comparable<EntityRole>, java.lang.constant.Constable

public enum EntityRole extends Enum<EntityRole>
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:
         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 Constants
    Enum Constant
    Description
    is definitely sub expression of a content model
    none of the above
    has 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 model
    like preceding, but additionally to be used for the selection "INCLUDE/IGNORE"
    is definitely a sequence of attribute name and type
    is definitely a complete attribute definition
    is definitely a sequence of more than one complete attribute definitions
    is definitely an attribute type, nothing else
    is part of an enumerated attribute type, or disjunction in a content model
    is definitely sequence of attribute type and value
    is definitely attribute value
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static EntityRole
    Returns the enum constant of this class with the specified name.
    static EntityRole[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • N_V_ContentModel

      public static final EntityRole 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

      public static final EntityRole N_V_ContentModel_IncIgn
      like preceding, but additionally to be used for the selection "INCLUDE/IGNORE"
    • NT

      public static final EntityRole NT
      is definitely a sequence of attribute name and type
    • NTV

      public static final EntityRole NTV
      is definitely a complete attribute definition
    • NTVs

      public static final EntityRole NTVs
      is definitely a sequence of more than one complete attribute definitions
    • T

      public static final EntityRole T
      is definitely an attribute type, nothing else
    • T_or_ContentModel

      public static final EntityRole T_or_ContentModel
      is part of an enumerated attribute type, or disjunction in a content model
    • TV

      public static final EntityRole TV
      is definitely sequence of attribute type and value
    • V

      public static final EntityRole V
      is definitely attribute value
    • ContentModel

      public static final EntityRole ContentModel
      is definitely sub expression of a content model
    • IncIgn

      public static final EntityRole IncIgn
      has been USED as an "ingore/include" switch. (This cannot be recognized without context.)
    • CrUdE

      public static final EntityRole CrUdE
      none of the above
  • Field Details

    • maybe_content

      protected boolean maybe_content
  • Method Details

    • values

      public static EntityRole[] 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

      public static EntityRole valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • maybe_content

      public boolean maybe_content()