Class ArraySchemas.Base

    • Field Detail

      • allowNullArrayElement

        protected final boolean allowNullArrayElement
    • Method Detail

      • getFieldName

        public java.lang.String getFieldName​(int number)
        Description copied from interface: Schema
        Gets the field name associated with the number. This is particularly useful when serializing to different formats (Eg. JSON). When using numeric field names:
         return String.valueOf(number);
         
      • getFieldNumber

        public int getFieldNumber​(java.lang.String name)
        Description copied from interface: Schema
        Gets the field number associated with the name. This is particularly useful when serializing to different formats (Eg. JSON). When using numeric field names:
         return Integer.parseInt(name);
         
      • 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();
      • 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();
      • setValue

        protected void setValue​(java.lang.Object value,
                                java.lang.Object owner)
        Description copied from class: PolymorphicSchema
        Set the value to the owner.
        Specified by:
        setValue in class PolymorphicSchema
      • mergeFrom

        public void mergeFrom​(Input input,
                              java.lang.Object owner)
                       throws java.io.IOException
        Description copied from interface: Schema
        Deserializes a message/object from the input.
        Throws:
        java.io.IOException
      • readFrom

        protected abstract java.lang.Object readFrom​(Input input,
                                                     java.lang.Object owner)
                                              throws java.io.IOException
        Throws:
        java.io.IOException