public class IgnoreAttribute extends Object implements SerializationRule
| Constructor and Description |
|---|
IgnoreAttribute(Class<?> type)
Constructor to ignore all attributes in a class.
|
IgnoreAttribute(Class<?> type,
String name)
Constructor to ignore a specific attribute.
|
IgnoreAttribute(SerializationContextPattern contextPattern)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(SerializationClass type,
SerializationContext context,
List<SerializationRule> rules,
boolean serializing)
Apply the rule to the given type, knowing the given context.
|
boolean |
isEquivalent(SerializationRule rule)
Check if this rule is equivalent to the given rule.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanInstantiate, convertSerializationValue, getDeserializationType, getDeserializationValue, instantiate, onInstantiationpublic IgnoreAttribute(SerializationContextPattern contextPattern)
public IgnoreAttribute(Class<?> type, String name)
public IgnoreAttribute(Class<?> type)
public boolean apply(SerializationClass type, SerializationContext context, List<SerializationRule> rules, boolean serializing)
SerializationRuleapply in interface SerializationRulepublic boolean isEquivalent(SerializationRule rule)
SerializationRuleisEquivalent in interface SerializationRuleCopyright © 2019. All rights reserved.