public class ElementIgnoringMapper extends MapperWrapper
Mapper.ImplicitCollectionMapping, Mapper.Null
Modifier and Type | Field and Description |
---|---|
protected Set |
fieldsToOmit |
protected Set |
unknownElementsToIgnore |
Constructor and Description |
---|
ElementIgnoringMapper(Mapper wrapped) |
Modifier and Type | Method and Description |
---|---|
void |
addElementsToIgnore(Pattern pattern) |
boolean |
isIgnoredElement(String name)
Whether this name can be ignored.
|
void |
omitField(Class definedIn,
String fieldName) |
boolean |
shouldSerializeMember(Class definedIn,
String fieldName)
Determine whether a specific member should be serialized.
|
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember
protected final Set fieldsToOmit
protected final Set unknownElementsToIgnore
public ElementIgnoringMapper(Mapper wrapped)
public void addElementsToIgnore(Pattern pattern)
public boolean shouldSerializeMember(Class definedIn, String fieldName)
Mapper
shouldSerializeMember
in interface Mapper
shouldSerializeMember
in class MapperWrapper
public boolean isIgnoredElement(String name)
Mapper
isIgnoredElement
in interface Mapper
isIgnoredElement
in class MapperWrapper
Copyright © 2004–2017 XStream. All rights reserved.