Package com.thoughtworks.xstream.mapper
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 com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addElementsToIgnore
(Pattern pattern) boolean
isIgnoredElement
(String name) Whether this name can be ignored.private Object
void
boolean
shouldSerializeMember
(Class definedIn, String fieldName) Determine whether a specific member should be serialized.Methods inherited from class com.thoughtworks.xstream.mapper.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:Mapper
Determine whether a specific member should be serialized.- Specified by:
shouldSerializeMember
in interfaceMapper
- Overrides:
shouldSerializeMember
in classMapperWrapper
-
isIgnoredElement
Description copied from interface:Mapper
Whether this name can be ignored.- Specified by:
isIgnoredElement
in interfaceMapper
- Overrides:
isIgnoredElement
in classMapperWrapper
-
key
-