Enum Class EPUBProfile
- All Implemented Interfaces:
Serializable, Comparable<EPUBProfile>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmakeTypeCompatible(Set<PublicationType> pubTypes) Checks this validation profile against the dc:type(s) declared in an OPF and returns a possibly overriden profile.static EPUBProfileReturns the enum constant of this class with the specified name.static EPUBProfile[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
-
IDX
-
DICT
-
EDUPUB
-
PREVIEW
-
-
Constructor Details
-
EPUBProfile
private EPUBProfile()
-
-
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
-
makeTypeCompatible
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
-