Class FieldList

java.lang.Object
org.sourceid.saml20.adapter.conf.FieldList
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Configuration, Row, SimpleFieldList

public abstract class FieldList extends Object implements Serializable
A base class that represents a list of Fields.
See Also:
  • Method Details

    • getFields

      public List<Field> getFields()
      Gets the list of Fields
      Returns:
      the list of fields.
    • getReadOnlyFieldMap

      public Map<String,Field> getReadOnlyFieldMap()
      Returns an unmodifiable copy of the fieldsMap
      Returns:
      copy of the fields map that is read-only
    • getFieldValue

      public String getFieldValue(String name)
      Gets the value of the Field with the specified name.
      Parameters:
      name - the name of the Field that you want the value of.
      Returns:
      the value of the named field (could be null or empty).
    • getIntFieldValue

      public int getIntFieldValue(String name)
      Gets the value of the Field with the specified name as an int. This method just calls Field.getValueAsInt().
      Parameters:
      name - the name of the Field that you want the value of.
      Returns:
      the value of the named field (could be null or empty).
    • getLongFieldValue

      public long getLongFieldValue(String name)
      Gets the value of the Field with the specified name as a long. This method just calls Field.getValueAsLong().
      Parameters:
      name - the name of the Field that you want the value of.
      Returns:
      the value of the named field.
    • getFloatFieldValue

      public float getFloatFieldValue(String name)
      Gets the value of the Field with the specified name as a float. This method just calls Field.getValueAsFloat().
      Parameters:
      name - the name of the Field that you want the value of.
      Returns:
      the value of the named field.
    • getDoubleFieldValue

      public double getDoubleFieldValue(String name)
      Gets the value of the Field with the specified name as a double. This method just calls Field.getValueAsDouble().
      Parameters:
      name - the name of the Field that you want the value of.
      Returns:
      the value of the named field.
    • getBooleanFieldValue

      public boolean getBooleanFieldValue(String name)
      Gets the value of the Field with the specified name as a boolean. This method just calls Field.getValueAsBoolean().
      Parameters:
      name - the name of the Field that you want the value of.
      Returns:
      the value of the named field.
    • getBooleanFieldValue

      public boolean getBooleanFieldValue(String name, boolean defaultValue)
      Gets the value of the Field with the specified name as a boolean. This method just calls Field.getValueAsBoolean().
      Parameters:
      name - the name of the Field that you want the value of.
      defaultValue - the default value of the Field.
      Returns:
      the value of the named field.
    • getFileFieldValueAsByteArray

      public byte[] getFileFieldValueAsByteArray(String name)
      This method just calls Field.getFileValueAsByteArray().
      Parameters:
      name - the name of the Field that you want the value of.
      Returns:
      the value of the named field.
    • getFileFiledValueAsString

      public String getFileFiledValueAsString(String name)
      This method just calls Field.getFileValueAsString().
      Parameters:
      name - the name of the Field that you want the value of.
      Returns:
      the value of the named field.
    • getField

      public Field getField(String name)
      Gets the Field by name
      Parameters:
      name - name the name of the Field that you want.
      Returns:
      the named Field.
    • isEmpty

      public boolean isEmpty()
      Returns whether the fieldsMap is empty
      Returns:
      boolean
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addField

      public void addField(Field field)
      Adds a Field to FieldList
      Parameters:
      field - field to add to FieldList