Class PolymorphicSchema

    • Constructor Detail

      • PolymorphicSchema

        public PolymorphicSchema​(IdStrategy strategy)
    • Method Detail

      • isInitialized

        public boolean isInitialized​(java.lang.Object 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<java.lang.Object>
      • newMessage

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

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

        public abstract Pipe.Schema<java.lang.Object> getPipeSchema()
        The pipe schema associated with this schema.
      • setValue

        protected abstract void setValue​(java.lang.Object value,
                                         java.lang.Object owner)
        Set the value to the owner.