Package org.sourceid.saml20.adapter.conf
Class FieldList
java.lang.Object
org.sourceid.saml20.adapter.conf.FieldList
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Configuration,Row,SimpleFieldList
A base class that represents a list of Fields.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a Field to FieldListbooleangetBooleanFieldValue(String name) Gets the value of the Field with the specified name as a boolean.booleangetBooleanFieldValue(String name, boolean defaultValue) Gets the value of the Field with the specified name as a boolean.doublegetDoubleFieldValue(String name) Gets the value of the Field with the specified name as a double.Gets the Field by nameGets the list of FieldsgetFieldValue(String name) Gets the value of the Field with the specified name.byte[]This method just callsField.getFileValueAsByteArray().This method just callsField.getFileValueAsString().floatgetFloatFieldValue(String name) Gets the value of the Field with the specified name as a float.intgetIntFieldValue(String name) Gets the value of the Field with the specified name as an int.longgetLongFieldValue(String name) Gets the value of the Field with the specified name as a long.Returns an unmodifiable copy of the fieldsMapbooleanisEmpty()Returns whether the fieldsMap is emptytoString()
-
Method Details
-
getFields
Gets the list of Fields- Returns:
- the list of fields.
-
getReadOnlyFieldMap
Returns an unmodifiable copy of the fieldsMap- Returns:
- copy of the fields map that is read-only
-
getFieldValue
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
Gets the value of the Field with the specified name as an int. This method just callsField.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
Gets the value of the Field with the specified name as a long. This method just callsField.getValueAsLong().- Parameters:
name- the name of the Field that you want the value of.- Returns:
- the value of the named field.
-
getFloatFieldValue
Gets the value of the Field with the specified name as a float. This method just callsField.getValueAsFloat().- Parameters:
name- the name of the Field that you want the value of.- Returns:
- the value of the named field.
-
getDoubleFieldValue
Gets the value of the Field with the specified name as a double. This method just callsField.getValueAsDouble().- Parameters:
name- the name of the Field that you want the value of.- Returns:
- the value of the named field.
-
getBooleanFieldValue
Gets the value of the Field with the specified name as a boolean. This method just callsField.getValueAsBoolean().- Parameters:
name- the name of the Field that you want the value of.- Returns:
- the value of the named field.
-
getBooleanFieldValue
Gets the value of the Field with the specified name as a boolean. This method just callsField.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
This method just callsField.getFileValueAsByteArray().- Parameters:
name- the name of the Field that you want the value of.- Returns:
- the value of the named field.
-
getFileFiledValueAsString
This method just callsField.getFileValueAsString().- Parameters:
name- the name of the Field that you want the value of.- Returns:
- the value of the named field.
-
getField
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
-
addField
Adds a Field to FieldList- Parameters:
field- field to add to FieldList
-