public class OPCComplianceFlags extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ENFORCE_M4_2_FORBID_MARKUP_COMPATIBILITY_NAMESPACE |
protected boolean |
ENFORCE_M4_3_FORBID_REFINING_DUBLIN_CORE_ELEMENTS
Rule M4.3: Producers shall not create a document element that contains
refinements to the Dublin Core elements, except for the two specified in
the schema: <dcterms:created> and <dcterms:modified> Consumers shall
consider a document element that violates this constraint to be an error.
|
protected boolean |
ENFORCE_M4_4_FORBID_XML_LANG_ATTRIBUTE
Rule M4.4: Producers shall not create a document element that contains
the xml:lang attribute.
|
protected boolean |
ENFORCE_M4_5_RESTRICT_XSI_TYPE_ATTRIBUTE |
| Modifier and Type | Method and Description |
|---|---|
static OPCComplianceFlags |
disableAll() |
static OPCComplianceFlags |
enforceAll() |
boolean |
getForbidMarkupCompatibilityNamespace() |
boolean |
getForbidRefiningDublinCoreElements() |
boolean |
getForbidXmlLangAttributes() |
boolean |
getRestrictXsiTypeAttribute() |
OPCComplianceFlags |
setForbidMarkupCompatibilityNamespace(boolean flag) |
OPCComplianceFlags |
setForbidRefiningDublinCoreElements(boolean flag) |
OPCComplianceFlags |
setForbidXmlLangAttribute(boolean flag) |
OPCComplianceFlags |
setRestrictXsiTypeAttribute(boolean flag) |
protected boolean ENFORCE_M4_2_FORBID_MARKUP_COMPATIBILITY_NAMESPACE
protected boolean ENFORCE_M4_3_FORBID_REFINING_DUBLIN_CORE_ELEMENTS
protected boolean ENFORCE_M4_4_FORBID_XML_LANG_ATTRIBUTE
protected boolean ENFORCE_M4_5_RESTRICT_XSI_TYPE_ATTRIBUTE
public static OPCComplianceFlags enforceAll()
public static OPCComplianceFlags disableAll()
public OPCComplianceFlags setForbidMarkupCompatibilityNamespace(boolean flag)
public OPCComplianceFlags setForbidRefiningDublinCoreElements(boolean flag)
public OPCComplianceFlags setForbidXmlLangAttribute(boolean flag)
public OPCComplianceFlags setRestrictXsiTypeAttribute(boolean flag)
public boolean getForbidMarkupCompatibilityNamespace()
public boolean getForbidRefiningDublinCoreElements()
public boolean getForbidXmlLangAttributes()
public boolean getRestrictXsiTypeAttribute()