public class TableDescriptor extends Object
| Constructor and Description |
|---|
TableDescriptor(String name,
String description)
Create a TableDescriptor with a name and description.
|
TableDescriptor(String name,
String description,
boolean requireDefaultRow)
Create a TableDescriptor with a name, description and default row is required.
|
TableDescriptor(String name,
String description,
List<FieldDescriptor> row)
Create a TableDescriptor with a name, description and a list of fields that comprise a row in the table.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRowField(FieldDescriptor fieldDescriptor)
Add a FieldDescriptor to the list of fields that make up a row in this table.
|
void |
addValidator(RowValidator validator)
Add a RowValidator to the ordered list of RowValidator for this
table.
|
String |
getDescription()
Gets the description of this table.
|
String |
getLabel()
Gets the label of this table that will be rendered in the administrative console configuration pages.
|
String |
getName()
Gets the name of this table.
|
boolean |
getRequireDefaultRow() |
List<FieldDescriptor> |
getRowFields()
Gets the List of FieldDescriptors that make up a row in this table.
|
List<RowValidator> |
getValidationChain()
Gets the list of RowValidators for this table
|
void |
setLabel(String label)
Sets the label of this table that will be rendered in the administrative console configuration pages.
|
public TableDescriptor(String name, String description)
name - The table name. To ensure configuration can be read in future releases of a plugin, it is
recommended to not change the names - instead use a label to rename a table in the
administrative console.description - A helpful description of the table.public TableDescriptor(String name, String description, boolean requireDefaultRow)
name - The table name. To ensure configuration can be read in future releases of a plugin, it is
recommended to not change the names - instead use a label to rename a table in the
administrative console.description - A helpful description of the table.requireDefaultRow - Boolean to indicate if this table requires setting a default rowpublic TableDescriptor(String name, String description, List<FieldDescriptor> row)
name - The table name. To ensure configuration can be read in future releases of a plugin, it is
recommended to not change the names - instead use a label to rename a table in the
administrative console.description - A helpful description of the table.row - A List of FieldDescriptors that describe a row in the table.public String getDescription()
public void setLabel(String label)
label - The desired table label value.public String getLabel()
public String getName()
public List<FieldDescriptor> getRowFields()
public void addRowField(FieldDescriptor fieldDescriptor)
fieldDescriptor - the field to add as the last field in the row.public void addValidator(RowValidator validator)
validator - the validatorpublic List<RowValidator> getValidationChain()
public boolean getRequireDefaultRow()
Copyright 2019 Ping Identity Corp. All rights reserved.