public static final class RemotableAttributeField.Builder extends Object implements RemotableAttributeFieldContract, ModelBuilder
| Modifier and Type | Method and Description |
|---|---|
void |
addToDefaultValues(String defaultValue) |
RemotableAttributeField |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static RemotableAttributeField.Builder |
create(RemotableAttributeFieldContract field) |
static RemotableAttributeField.Builder |
create(String name) |
RemotableAttributeLookupSettings.Builder |
getAttributeLookupSettings()
If this method returns a non-null value, it defines various settings for this attribute whenever
it is used on a lookup.
|
String |
getConstraintText()
The help constraint of the attribute.
|
RemotableAbstractControl.Builder |
getControl()
The control associated with the attribute.
|
DataType |
getDataType()
The dataType of the attribute.
|
Collection<String> |
getDefaultValues()
The default values for the attribute.
|
String |
getFormatterName()
The name of the formatter
|
String |
getHelpDescription()
The help description of the attribute.
|
String |
getHelpSummary()
The help summary of the attribute.
|
String |
getLongLabel()
The long label of the attribute.
|
Integer |
getMaxLength()
The inclusive maximum length of the attribute.
|
Double |
getMaxValue()
The inclusive maximum value of the attribute.
|
Integer |
getMinLength()
The inclusive minimum length of the attribute.
|
Double |
getMinValue()
The inclusive minimum value of the attribute.
|
String |
getName()
The name of the attribute.
|
String |
getRegexConstraint()
The regex constraint to apply to the attribute field for validation.
|
String |
getRegexContraintMsg()
The message to display if the regex constraint fails.
|
String |
getShortLabel()
The short label of the attribute.
|
Collection<RemotableAbstractWidget.Builder> |
getWidgets()
The widgets for the attribute.
|
boolean |
isForceUpperCase()
Should the attribute always be in uppercase.
|
boolean |
isRequired()
Whether the attribute is a required attribute.
|
void |
setAttributeLookupSettings(RemotableAttributeLookupSettings.Builder attributeLookupSettings) |
void |
setConstraintText(String helpConstraint) |
void |
setControl(RemotableAbstractControl.Builder control) |
void |
setDataType(DataType dataType) |
void |
setDefaultValues(Collection<String> defaultValues) |
void |
setForceUpperCase(boolean forceUpperCase) |
void |
setFormatterName(String formatterName) |
void |
setHelpDescription(String helpDescription) |
void |
setHelpSummary(String helpSummary) |
void |
setLongLabel(String longLabel) |
void |
setMaxLength(Integer maxLength) |
void |
setMaxValue(Double maxValue) |
void |
setMinLength(Integer minLength) |
void |
setMinValue(Double minValue) |
void |
setName(String name) |
void |
setRegexConstraint(String regexConstraint) |
void |
setRegexContraintMsg(String regexContraintMsg) |
void |
setRequired(boolean required) |
void |
setShortLabel(String shortLabel) |
void |
setWidgets(Collection<RemotableAbstractWidget.Builder> widgets) |
public static RemotableAttributeField.Builder create(String name)
public static RemotableAttributeField.Builder create(RemotableAttributeFieldContract field)
public String getName()
RemotableAttributeFieldContractgetName in interface RemotableAttributeFieldContractpublic DataType getDataType()
RemotableAttributeFieldContractgetDataType in interface RemotableAttributeFieldContractpublic void setDataType(DataType dataType)
public String getShortLabel()
RemotableAttributeFieldContractgetShortLabel in interface RemotableAttributeFieldContractpublic void setShortLabel(String shortLabel)
public String getLongLabel()
RemotableAttributeFieldContractgetLongLabel in interface RemotableAttributeFieldContractpublic void setLongLabel(String longLabel)
public String getHelpSummary()
RemotableAttributeFieldContractgetHelpSummary in interface RemotableAttributeFieldContractpublic void setHelpSummary(String helpSummary)
public String getConstraintText()
RemotableAttributeFieldContractgetConstraintText in interface RemotableAttributeFieldContractpublic void setConstraintText(String helpConstraint)
public String getHelpDescription()
RemotableAttributeFieldContractgetHelpDescription in interface RemotableAttributeFieldContractpublic void setHelpDescription(String helpDescription)
public boolean isForceUpperCase()
RemotableAttributeFieldContractisForceUpperCase in interface RemotableAttributeFieldContractpublic void setForceUpperCase(boolean forceUpperCase)
public Integer getMinLength()
RemotableAttributeFieldContractgetMinLength in interface RemotableAttributeFieldContractpublic void setMinLength(Integer minLength)
public Integer getMaxLength()
RemotableAttributeFieldContractgetMaxLength in interface RemotableAttributeFieldContractpublic void setMaxLength(Integer maxLength)
public Double getMinValue()
RemotableAttributeFieldContractgetMinValue in interface RemotableAttributeFieldContractpublic void setMinValue(Double minValue)
public Double getMaxValue()
RemotableAttributeFieldContractgetMaxValue in interface RemotableAttributeFieldContractpublic void setMaxValue(Double maxValue)
public String getRegexConstraint()
RemotableAttributeFieldContractgetRegexConstraint in interface RemotableAttributeFieldContractpublic void setRegexConstraint(String regexConstraint)
public String getRegexContraintMsg()
RemotableAttributeFieldContractgetRegexContraintMsg in interface RemotableAttributeFieldContractpublic void setRegexContraintMsg(String regexContraintMsg)
public String getFormatterName()
RemotableAttributeFieldContractgetFormatterName in interface RemotableAttributeFieldContractpublic void setFormatterName(String formatterName)
public boolean isRequired()
RemotableAttributeFieldContractisRequired in interface RemotableAttributeFieldContractpublic void setRequired(boolean required)
public Collection<String> getDefaultValues()
RemotableAttributeFieldContractgetDefaultValues in interface RemotableAttributeFieldContractpublic void setDefaultValues(Collection<String> defaultValues)
public void addToDefaultValues(String defaultValue)
public RemotableAttributeLookupSettings.Builder getAttributeLookupSettings()
RemotableAttributeFieldContractgetAttributeLookupSettings in interface RemotableAttributeFieldContractpublic void setAttributeLookupSettings(RemotableAttributeLookupSettings.Builder attributeLookupSettings)
public RemotableAbstractControl.Builder getControl()
RemotableAttributeFieldContractgetControl in interface RemotableAttributeFieldContractpublic void setControl(RemotableAbstractControl.Builder control)
public Collection<RemotableAbstractWidget.Builder> getWidgets()
RemotableAttributeFieldContractgetWidgets in interface RemotableAttributeFieldContractpublic void setWidgets(Collection<RemotableAbstractWidget.Builder> widgets)
public RemotableAttributeField build()
ModelBuilderbuild in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.