Package org.apache.juneau
Class MarshalledFilter
java.lang.Object
org.apache.juneau.MarshalledFilter
Parent class for all non-bean filters.
Marshalled filters are used to control aspects of how POJOs are handled during serialization and parsing.
Marshalled filters are created by MarshalledFilter.Builder
which is the programmatic equivalent to the @Marshalled
annotation.
See Also:
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
MarshalledFilter
(MarshalledFilter.Builder builder) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MarshalledFilter.Builder
Create a new instance of this POJO filter.Returns the example string with this class.Class<?>
Returns the implementation class associated with this class.Class<?>
Returns the class that this filter applies to.
-
Constructor Details
-
MarshalledFilter
Constructor.- Parameters:
builder
- The builder for this object.
-
-
Method Details
-
create
Create a new instance of this POJO filter.- Type Parameters:
T
- The POJO class being filtered.- Parameters:
marshalledClass
- The POJO class being filtered.- Returns:
- A new
MarshalledFilter.Builder
object.
-
getMarshalledClass
Returns the class that this filter applies to.- Returns:
- The class that this filter applies to.
-
getImplClass
Returns the implementation class associated with this class.- Returns:
- The implementation class associated with this class, or
null if no implementation class is associated.
-
getExample
Returns the example string with this class.- Returns:
- The example string associated with this class, or
null if no example string is associated.
-