public class Directives extends Object
| Modifier and Type | Method and Description |
|---|---|
static Exclusion |
all(Exclusion... directives)
Returns the directive that excludes all fields that satisfy simultaneously two or more other exclusions.
|
static Exclusion |
annotation(Class<? extends Annotation> annotation)
Returns the directive that excludes all fields that have a given annotation.
|
static Directives |
by()
Creates a set of directives.
|
static Mapping |
classesOntoSimpleNames()
Returns the directive that map all
Class fields onto their simple names |
static Exclusion |
emptyStrings()
Returns the directive that excludes all String fields with an empty value.
|
Directives |
excluding(Exclusion... directives)
Adds a set of
Exclusions to these directives. |
Directives |
excluding(List<Exclusion> directives)
Adds a set of
Exclusions to these directives. |
Directives |
mapping(List<Mapping> directives)
Adds a set of
Mappings to these directives. |
Directives |
mapping(Mapping... directives)
Adds a set of
Mappings to these directives. |
static Exclusion |
name(Pattern pattern)
Returns the directive that excludes all fields that match a given regular expression.
|
static Exclusion |
name(String name)
Returns the directive that excludes all fields that have a given name.
|
static Exclusion |
not(Exclusion directive)
Returns the directive that excludes all fields that do not satisfy a given directive.
|
static Exclusion |
object(Object o)
Returns the directive that excludes all fields within a given object.
|
static Exclusion |
objectLike(Object parent)
Returns the directive that excludes all fields of an object equivalent to a given object.
|
static Mapping |
objectsToStringFor(Class<?> type)
Returns the directive that map alls fields of a given type onto strings (in the sense of
Class.isAssignableFrom(Class) and Object.toString()). |
static Exclusion |
type(Class<?> type)
Returns the directive that excludes all fields that have a given type (in the sense of
Class.isAssignableFrom(Class)). |
static Exclusion |
value(Object value)
Returns the directive that excludes all fields with a given value.
|
static Exclusion |
valueLike(Object value)
Returns the directive that excludes all fields with a value which is equivalent to a given value (in the sense
of
Object.equals(Object)). |
public static Directives by()
public Directives excluding(Exclusion... directives)
Exclusions to these directives.directives - the exclude directivespublic Directives excluding(List<Exclusion> directives)
Exclusions to these directives.directives - the exclude directivespublic Directives mapping(List<Mapping> directives)
Mappings to these directives.directives - the map directivespublic Directives mapping(Mapping... directives)
Mappings to these directives.directives - the map directivespublic static Exclusion not(Exclusion directive)
directive - the directivepublic static Exclusion all(Exclusion... directives)
directives - the directivespublic static Exclusion annotation(Class<? extends Annotation> annotation)
annotation - the given expressionpublic static Exclusion type(Class<?> type)
Class.isAssignableFrom(Class)).type - the given typepublic static Exclusion object(Object o)
o - the given objectpublic static Exclusion value(Object value)
value - the given valuepublic static Exclusion objectLike(Object parent)
parent - the given objectpublic static Exclusion valueLike(Object value)
Object.equals(Object)).value - the given valuepublic static Exclusion name(String name)
name - the namepublic static Exclusion name(Pattern pattern)
pattern - the regular expressionpublic static Exclusion emptyStrings()
public static Mapping objectsToStringFor(Class<?> type)
Class.isAssignableFrom(Class) and Object.toString()).type - the given typeCopyright © 2014. All Rights Reserved.