Package org.simpleframework.xml.core
Interface Policy
-
- All Known Subinterfaces:
Scanner
- All Known Implementing Classes:
DefaultScanner
,ObjectScanner
,PrimitiveScanner
interface Policy
ThePolicy
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isStrict()
This method is used to determine whether strict mappings are required.
-
-
-
Method Detail
-
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
-
-