Class ElementIgnoringMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.ElementIgnoringMapper
- All Implemented Interfaces:
Mapper
Mapper that allows an field of a specific class to be omitted entirely.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElementsToIgnore(Pattern pattern) booleanisIgnoredElement(String name) Whether this name can be ignored.voidbooleanshouldSerializeMember(Class definedIn, String fieldName) Determine whether a specific member should be serialized.Methods inherited from class MapperWrapper
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember
-
Field Details
-
fieldsToOmit
-
unknownElementsToIgnore
-
-
Constructor Details
-
ElementIgnoringMapper
-
-
Method Details
-
addElementsToIgnore
-
omitField
-
shouldSerializeMember
Description copied from interface:MapperDetermine whether a specific member should be serialized.- Specified by:
shouldSerializeMemberin interfaceMapper- Overrides:
shouldSerializeMemberin classMapperWrapper
-
isIgnoredElement
Description copied from interface:MapperWhether this name can be ignored.- Specified by:
isIgnoredElementin interfaceMapper- Overrides:
isIgnoredElementin classMapperWrapper
-