Package io.protostuff.runtime
Class RuntimeView
- java.lang.Object
-
- io.protostuff.runtime.RuntimeView
-
public final class RuntimeView extends java.lang.Object
A view schema can choose which fields to include during ser/deser.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RuntimeView.BaseSchema<T>
The base schema used by the built-in factories.static class
RuntimeView.Factories
Built-in view schema factories.static interface
RuntimeView.Factory
static class
RuntimeView.PostFilteredSchema<T>
-
Constructor Summary
Constructors Modifier Constructor Description private
RuntimeView()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static <T> java.util.HashMap<java.lang.String,Field<T>>
copyAndExclude(java.lang.Class<? super T> typeClass, java.util.List<Field<T>> fields, Predicate predicate)
(package private) static <T> java.util.HashMap<java.lang.String,Field<T>>
copyAndExclude(java.lang.Class<? super T> typeClass, java.util.List<Field<T>> fields, java.lang.String[] args)
static <T> Schema<T>
createFrom(RuntimeSchema<T> ms, RuntimeEnv.Instantiator<T> instantiator, RuntimeView.Factory vf, Predicate.Factory pf, java.lang.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, java.lang.String... args)
Returns a new view schema based from an existing one.(package private) static <T> int
includeAndAddTo(java.util.Map<java.lang.String,Field<T>> map, java.lang.Class<? super T> typeClass, java.util.List<Field<T>> fields, java.lang.String[] args)
-
-
-
Method Detail
-
createFrom
public static <T> Schema<T> createFrom(RuntimeSchema<T> rs, RuntimeView.Factory vf, Predicate.Factory pf, java.lang.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, java.lang.String... args)
Returns a new view schema based from an existing one.
-
copyAndExclude
static <T> java.util.HashMap<java.lang.String,Field<T>> copyAndExclude(java.lang.Class<? super T> typeClass, java.util.List<Field<T>> fields, Predicate predicate)
-
copyAndExclude
static <T> java.util.HashMap<java.lang.String,Field<T>> copyAndExclude(java.lang.Class<? super T> typeClass, java.util.List<Field<T>> fields, java.lang.String[] args)
-
-