Enum Class Element.ElementType

java.lang.Object
java.lang.Enum<Element.ElementType>
org.x4o.xml.element.Element.ElementType
All Implemented Interfaces:
Serializable, Comparable<Element.ElementType>, Constable
Enclosing interface:
Element

public static enum Element.ElementType extends Enum<Element.ElementType>
The ElementTypes which are possible.
Version:
1.0 Feb 01, 2005
Author:
Willem Cazander
  • Enum Constant Details

    • element

      public static final Element.ElementType element
      The normale ElementType, which is mostly bound to an object.
    • characters

      public static final Element.ElementType characters
      Extra meta characters in xml.
    • comment

      public static final Element.ElementType comment
      The xml comments in xml.
    • ignorableWhitespace

      public static final Element.ElementType ignorableWhitespace
      ignorableWhitespace in xml.
    • overrideSax

      public static final Element.ElementType overrideSax
      Receive raw sax event on elementObject.
  • Method Details

    • values

      public static Element.ElementType[] 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 Element.ElementType 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
    • filterElements

      public static List<Element> filterElements(List<Element> elements, Element.ElementType elementType)
      Filters the given elments list to elementType.
      Parameters:
      elements - The elements to filter.
      elementType - The elementType to filter on.
      Returns:
      Always returns List of Elements of filter type.