|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceid.saml20.adapter.conf.Field
public class Field
This class holds the name and user-entered value of a GUI-rendered configuration field.
FieldDescriptor
,
FieldList.getFields()
,
FieldList.getField(String)
,
FieldList.getFields()
,
FieldList.getField(String)
,
Serialized FormField Summary | |
---|---|
static int |
DEFAULT_NUM_VAL
|
Constructor Summary | |
---|---|
Field(java.lang.String name,
java.lang.String value)
Create a new Field with the specified name and value. |
Method Summary | |
---|---|
byte[] |
getFileValueAsByteArray()
If the field type is an UploadFileFieldDescriptor and the file uploaded is binary, this method will return the bytes of the file. |
java.lang.String |
getFileValueAsString()
If the field type is an UploadFileFieldDescriptor and the file uploaded is text, this method will return that text (after base 64 decoding it). |
java.lang.String |
getName()
Gets the name of this field. |
java.lang.String |
getValue()
Gets the value of this field. |
boolean |
getValueAsBoolean()
This method coerces an boolean value from the underlying String value. |
double |
getValueAsDouble()
This method attempts to coerce a double value from the underlying String value. |
float |
getValueAsFloat()
This method attempts to coerce a float value from the underlying String value. |
int |
getValueAsInt()
This method attempts to coerce an int value from the underlying String value. |
long |
getValueAsLong()
This method attempts to coerce a long value from the underlying String value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_NUM_VAL
Constructor Detail |
---|
public Field(java.lang.String name, java.lang.String value)
name
- value
- Method Detail |
---|
public java.lang.String getName()
public java.lang.String getValue()
public int getValueAsInt()
DEFAULT_NUM_VAL
is returned.
public long getValueAsLong()
DEFAULT_NUM_VAL
is returned.
public float getValueAsFloat()
DEFAULT_NUM_VAL
is returned.
public double getValueAsDouble()
DEFAULT_NUM_VAL
is returned.
public boolean getValueAsBoolean()
public byte[] getFileValueAsByteArray()
UploadFileFieldDescriptor
public java.lang.String getFileValueAsString()
UploadFileFieldDescriptor
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |