Enum Class StandaloneDeclaration

java.lang.Object
java.lang.Enum<StandaloneDeclaration>
com.deltaxml.docbook.config.StandaloneDeclaration
All Implemented Interfaces:
com.deltaxml.docbook.DocBookCompareDisplayable, Serializable, Comparable<StandaloneDeclaration>, Constable

public enum StandaloneDeclaration extends Enum<StandaloneDeclaration> implements com.deltaxml.docbook.DocBookCompareDisplayable
Represents the values for the standalone setting in the XML declaration.
  • Enum Constant Details

    • YES

      public static final StandaloneDeclaration YES
      Ensure the standalone attribute is set to 'yes' in the output XML declaration.
    • NO

      public static final StandaloneDeclaration NO
      Ensure the standalone attribute is set to 'no' in the output XML declaration.
    • OMIT

      public static final StandaloneDeclaration OMIT
      Ensure there is no standalone attribute in the output XML declaration.
    • SYSTEM

      public static final StandaloneDeclaration SYSTEM
      Deprecated: has the same affect as the omit value.
  • Method Details

    • values

      public static StandaloneDeclaration[] 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 StandaloneDeclaration 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
    • getDisplayName

      public String getDisplayName()

      Returns the user friendly String name of the StandaloneDeclaration.

      Specified by:
      getDisplayName in interface com.deltaxml.docbook.DocBookCompareDisplayable
      Returns:
      a user friendly String representing the StandaloneDeclaration object
    • getDisplayDescription

      public String getDisplayDescription()

      Returns the user friendly String description of the StandaloneDeclaration.

      Specified by:
      getDisplayDescription in interface com.deltaxml.docbook.DocBookCompareDisplayable
      Returns:
      a user friendly String description representing the StandaloneDeclaration object
    • toString

      public String toString()
      Overrides:
      toString in class Enum<StandaloneDeclaration>