Enum MessageType._Field

    • Method Detail

      • values

        public static MessageType._Field[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MessageType._Field c : MessageType._Field.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MessageType._Field valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getId

        public int getId()
        Specified by:
        getId in interface net.morimekta.providence.descriptor.PField<MessageType>
      • getRequirement

        @Nonnull
        public net.morimekta.providence.descriptor.PRequirement getRequirement()
        Specified by:
        getRequirement in interface net.morimekta.providence.descriptor.PField<MessageType>
      • getDescriptor

        @Nonnull
        public net.morimekta.providence.descriptor.PDescriptor getDescriptor()
        Specified by:
        getDescriptor in interface net.morimekta.providence.descriptor.PField<MessageType>
      • getArgumentsType

        @Nullable
        public net.morimekta.providence.descriptor.PStructDescriptor getArgumentsType()
        Specified by:
        getArgumentsType in interface net.morimekta.providence.descriptor.PField<MessageType>
      • getName

        @Nonnull
        public java.lang.String getName()
        Specified by:
        getName in interface net.morimekta.providence.descriptor.PField<MessageType>
      • getPojoName

        @Nonnull
        public java.lang.String getPojoName()
        Specified by:
        getPojoName in interface net.morimekta.providence.descriptor.PField<MessageType>
      • hasDefaultValue

        public boolean hasDefaultValue()
        Specified by:
        hasDefaultValue in interface net.morimekta.providence.descriptor.PField<MessageType>
      • getDefaultValue

        @Nullable
        public java.lang.Object getDefaultValue()
        Specified by:
        getDefaultValue in interface net.morimekta.providence.descriptor.PField<MessageType>
      • onMessageType

        @Nonnull
        public net.morimekta.providence.descriptor.PMessageDescriptor<MessageType> onMessageType()
        Specified by:
        onMessageType in interface net.morimekta.providence.descriptor.PField<MessageType>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<MessageType._Field>
      • findById

        public static MessageType._Field findById​(int id)
        Parameters:
        id - Field ID
        Returns:
        The identified field or null
      • findByName

        public static MessageType._Field findByName​(java.lang.String name)
        Parameters:
        name - Field name
        Returns:
        The named field or null
      • findByPojoName

        public static MessageType._Field findByPojoName​(java.lang.String name)
        Parameters:
        name - Field POJO name
        Returns:
        The named field or null
      • fieldForId

        public static MessageType._Field fieldForId​(int id)
        Parameters:
        id - Field ID
        Returns:
        The identified field
        Throws:
        java.lang.IllegalArgumentException - If no such field
      • fieldForName

        public static MessageType._Field fieldForName​(java.lang.String name)
        Parameters:
        name - Field name
        Returns:
        The named field
        Throws:
        java.lang.IllegalArgumentException - If no such field
      • fieldForPojoName

        public static MessageType._Field fieldForPojoName​(java.lang.String name)
        Parameters:
        name - Field POJO name
        Returns:
        The named field
        Throws:
        java.lang.IllegalArgumentException - If no such field