Class RuntimeView.BaseSchema<T>

  • All Implemented Interfaces:
    Schema<T>
    Direct Known Subclasses:
    RuntimeView.PostFilteredSchema
    Enclosing class:
    RuntimeView

    public abstract static class RuntimeView.BaseSchema<T>
    extends java.lang.Object
    implements Schema<T>
    The base schema used by the built-in factories.
    • Field Detail

      • typeClass

        public final java.lang.Class<? super T> typeClass
    • Constructor Detail

    • Method Detail

      • typeClass

        public java.lang.Class<? super T> typeClass()
        Description copied from interface: Schema
        Gets the class of the message.
        Specified by:
        typeClass in interface Schema<T>
      • messageName

        public java.lang.String 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 interface Schema<T>
      • messageFullName

        public java.lang.String 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 interface Schema<T>
      • isInitialized

        public boolean isInitialized​(T message)
        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 interface Schema<T>
      • newMessage

        public T newMessage()
        Description copied from interface: Schema
        Creates the message/object tied to this schema.
        Specified by:
        newMessage in interface Schema<T>