Package io.protostuff.runtime
Class RuntimeView
java.lang.Object
io.protostuff.runtime.RuntimeView
A view schema can choose which fields to include during ser/deser.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The base schema used by the built-in factories.static enum
Built-in view schema factories.static interface
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyAndExclude
(Class<? super T> typeClass, List<Field<T>> fields, Predicate predicate) copyAndExclude
(Class<? super T> typeClass, List<Field<T>> fields, String[] args) static <T> Schema
<T> createFrom
(RuntimeSchema<T> ms, RuntimeEnv.Instantiator<T> instantiator, RuntimeView.Factory vf, Predicate.Factory pf, String... args) Returns a new view schema based from an existing one.static <T> Schema
<T> createFrom
(RuntimeSchema<T> rs, RuntimeView.Factory vf, Predicate.Factory pf, String... args) Returns a new view schema based from an existing one.(package private) static <T> int
includeAndAddTo
(Map<String, Field<T>> map, Class<? super T> typeClass, List<Field<T>> fields, String[] args)
-
Constructor Details
-
RuntimeView
private RuntimeView()
-
-
Method Details
-
createFrom
public static <T> Schema<T> createFrom(RuntimeSchema<T> rs, RuntimeView.Factory vf, Predicate.Factory pf, String... args) Returns a new view schema based from an existing one. -
createFrom
public static <T> Schema<T> createFrom(RuntimeSchema<T> ms, RuntimeEnv.Instantiator<T> instantiator, RuntimeView.Factory vf, Predicate.Factory pf, String... args) Returns a new view schema based from an existing one. -
copyAndExclude
-
copyAndExclude
-
includeAndAddTo
-