Package io.protostuff.runtime
Class RuntimeView.BaseSchema<T>
java.lang.Object
io.protostuff.runtime.RuntimeView.BaseSchema<T>
- All Implemented Interfaces:
Schema<T>
- Direct Known Subclasses:
RuntimeView.PostFilteredSchema
- Enclosing class:
RuntimeView
The base schema used by the built-in factories.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseSchema
(Class<? super T> typeClass, RuntimeEnv.Instantiator<T> instantiator) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isInitialized
(T message) Returns true if there is no required field or if all the required fields are set.Returns the full name of the message tied to this schema.Returns the simple name of the message tied to this schema.Creates the message/object tied to this schema.Gets the class of the message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.protostuff.Schema
getFieldName, getFieldNumber, mergeFrom, writeTo
-
Field Details
-
typeClass
-
instantiator
-
-
Constructor Details
-
BaseSchema
-
-
Method Details
-
typeClass
Description copied from interface:Schema
Gets the class of the message. -
messageName
Description copied from interface:Schema
Returns the simple name of the message tied to this schema. Allows custom schemas to provide a custom name other than typeClass().getSimpleName();- Specified by:
messageName
in interfaceSchema<T>
-
messageFullName
Description copied from interface:Schema
Returns the full name of the message tied to this schema. Allows custom schemas to provide a custom name other than typeClass().getName();- Specified by:
messageFullName
in interfaceSchema<T>
-
isInitialized
Description copied from interface:Schema
Returns true if there is no required field or if all the required fields are set.- Specified by:
isInitialized
in interfaceSchema<T>
-
newMessage
Description copied from interface:Schema
Creates the message/object tied to this schema.- Specified by:
newMessage
in interfaceSchema<T>
-