Enum Class EPUBProfile

java.lang.Object
java.lang.Enum<EPUBProfile>
com.adobe.epubcheck.api.EPUBProfile
All Implemented Interfaces:
Serializable, Comparable<EPUBProfile>, Constable

public enum EPUBProfile extends Enum<EPUBProfile>
  • Enum Constant Details

  • Constructor Details

    • EPUBProfile

      private EPUBProfile()
  • Method Details

    • values

      public static EPUBProfile[] 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 EPUBProfile 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
    • makeTypeCompatible

      public EPUBProfile makeTypeCompatible(Set<PublicationType> pubTypes)
      Checks this validation profile against the dc:type(s) declared in an OPF and returns a possibly overriden profile.

      For instance, if the publication has a 'edupub' dc:type and the DEFAULT validation profile is given, the EDUPUB profile will be returned instead.

      If the given validation profile is modified, report an INFO message OPF_064.

      Parameters:
      The - publication's dc:type(s).
      Returns:
      This profile if it's compatible with the OPF dc:type(s), or else a compatible non-null validation profile.
    • matchingType

      public PublicationType matchingType()