public class Field extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_NUM_VAL |
Constructor and Description |
---|
Field() |
Field(String name,
String value)
Create a new Field with the specified name and value.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getFileValueAsByteArray()
If the field type is an UploadFileFieldDescriptor and the file uploaded is binary, this method will
return the bytes of the file.
|
String |
getFileValueAsString()
If the field type is an UploadFileFieldDescriptor and the file uploaded is text, this method will
return that text.
|
String |
getName()
Gets the name of this field.
|
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.
|
String |
toString() |
public static final int DEFAULT_NUM_VAL
public Field()
public Field(String name, String value)
name
- value
- public String getName()
public 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 String getFileValueAsString()
UploadFileFieldDescriptor
Copyright 2019 Ping Identity Corp. All rights reserved.