org.odftoolkit.odfdom.dom
public enum OdfSchemaConstraint extends Enum<OdfSchemaConstraint> implements ValidationConstraint
ValidationException
for ODF validation.
The validation is enabled, when an ErrorHandler
was provided to the OdfPackage
.Enum Constant and Description |
---|
DOCUMENT_WITHOUT_CONTENT_NOR_STYLES_XML
At least \'content.xml' or 'styles.xml' have to be contained in the ODF XML Schema package.
|
DOCUMENT_WITHOUT_ODF_MIMETYPE
A ODF mimetype is invalid for the ODF XML Schema document.
|
PACKAGE_SHALL_CONTAIN_MIMETYPE
The 'mimetype' file have to be contained in the ODF XML Schema package.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedMessage()
Creates a localized description of a Constraint.
|
String |
getMessage()
Returns the detail message string of this Constraint.
|
static OdfSchemaConstraint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OdfSchemaConstraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OdfSchemaConstraint DOCUMENT_WITHOUT_ODF_MIMETYPE
public static final OdfSchemaConstraint DOCUMENT_WITHOUT_CONTENT_NOR_STYLES_XML
public static final OdfSchemaConstraint PACKAGE_SHALL_CONTAIN_MIMETYPE
public static OdfSchemaConstraint[] values()
for (OdfSchemaConstraint c : OdfSchemaConstraint.values()) System.out.println(c);
public static OdfSchemaConstraint valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String getLocalizedMessage()
getMessage()
.getLocalizedMessage
in interface ValidationConstraint
public String getMessage()
getMessage
in interface ValidationConstraint
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.