org.sourceid.saml20.adapter.conf
Class FieldList

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

public abstract class FieldList
extends java.lang.Object
implements java.io.Serializable

A base class that represents a list of Fields.

Author:
Brian Campbell
See Also:
Serialized Form

Constructor Summary
protected FieldList()
           
protected FieldList(java.util.List<Field> fields)
           
 
Method Summary
 boolean getBooleanFieldValue(java.lang.String name)
          Gets the value of the Field with the specified name as a boolean.
 double getDoubleFieldValue(java.lang.String name)
          Gets the value of the Field with the specified name as a double.
 Field getField(java.lang.String name)
          Gets the Field by name
 java.util.List<Field> getFields()
          Gets the list of Fields
 java.lang.String getFieldValue(java.lang.String name)
          Gets the value of the Field with the specified name.
 byte[] getFileFieldValueAsByteArray(java.lang.String name)
          This method just calls Field.getFileValueAsByteArray().
 java.lang.String getFileFiledValueAsString(java.lang.String name)
          This method just calls Field.getFileValueAsString().
 float getFloatFieldValue(java.lang.String name)
          Gets the value of the Field with the specified name as a float.
 int getIntFieldValue(java.lang.String name)
          Gets the value of the Field with the specified name as an int.
 long getLongFieldValue(java.lang.String name)
          Gets the value of the Field with the specified name as a long.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldList

protected FieldList()

FieldList

protected FieldList(java.util.List<Field> fields)
Method Detail

getFields

public java.util.List<Field> getFields()
Gets the list of Fields

Returns:
the list of fields.

getFieldValue

public java.lang.String getFieldValue(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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.

getFileFieldValueAsByteArray

public byte[] getFileFieldValueAsByteArray(java.lang.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 java.lang.String getFileFiledValueAsString(java.lang.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(java.lang.String name)
Gets the Field by name

Parameters:
name - name the name of the Field that you want.
Returns:
the named Field.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2007 Ping Identity Corp. All rights reserved.