Interface Field


public interface Field

Represents a name/value field pair.

 

You do not have to implement this interface yourself. Fields can be retrieved from the relevant implementations of Message; for example, RecordMessage provides the RecordMessage.getFields() method and PermissionMessage provides the PermissionMessage.getFields() method.

  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the field name.
    int
    Gets the field number.
    Gets the field value.
    void
    Sets the field value.
  • Method Details

    • getName

      String getName()
      Gets the field name.
      Returns:
      The name.
    • getNumber

      int getNumber()
      Gets the field number.
      Returns:
      The number.
    • getValue

      String getValue()
      Gets the field value.
      Returns:
      The value.
    • setValue

      void setValue(String value)
      Sets the field value.
      Parameters:
      value - The value.