Package org.simpleframework.xml.core
Interface Policy
- All Known Subinterfaces:
Scanner
- All Known Implementing Classes:
DefaultScanner
,ObjectScanner
,PrimitiveScanner
interface Policy
The
Policy
interface is used to represent the XML
mapping policy used by the current serialization schema. The
policies supported are strict and non-strict mappings. For the
strict mapping policy all attributes and elements within the
XML document must map to a field or method within the object
that is being serialized.-
Method Summary
Modifier and TypeMethodDescriptionboolean
isStrict()
This method is used to determine whether strict mappings are required.
-
Method Details
-
isStrict
boolean isStrict()This method is used to determine whether strict mappings are required. Strict mapping means that all labels in the class schema must match the XML elements and attributes in the source XML document. When strict mapping is disabled, then XML elements and attributes that do not exist in the schema class will be ignored without breaking the parser.- Returns:
- true if strict parsing is enabled, false otherwise
-