public class SuggestedField extends StringField implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LIMIT |
int |
limit |
allowEmpty, DEFAULT_ALLOW_EMPTY, defaultValue
DEFAULT_IS_HIDDEN, DEFAULT_IS_MANDATORY, description, isHidden, isMandatory, name, ordering, title
Constructor and Description |
---|
SuggestedField() |
SuggestedField(SuggestedField o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this SuggestedField.
|
static SuggestedField |
fromString(java.lang.String s)
String representation of this SuggestedField.
|
int |
getLimit()
Maximum number of suggestions.
|
SuggestedField |
makeCopy()
Creates and returns a deep copy of this SuggestedField.
|
static SuggestedField |
readFrom(java.io.InputStream is)
Read this SuggestedField from an XML fragment.
|
void |
setLimit(int limit)
Maximum number of suggestions.
|
java.lang.String |
toString()
String representation of this SuggestedField.
|
SuggestedField |
withAllowEmpty(boolean allowEmpty) |
SuggestedField |
withAllowEmpty(java.lang.Boolean allowEmpty) |
SuggestedField |
withDefaultValue(java.lang.String defaultValue) |
SuggestedField |
withDescription(java.lang.String description) |
SuggestedField |
withIsHidden(boolean isHidden) |
SuggestedField |
withIsHidden(java.lang.Boolean isHidden) |
SuggestedField |
withIsMandatory(boolean isMandatory) |
SuggestedField |
withIsMandatory(java.lang.Boolean isMandatory) |
SuggestedField |
withLimit(int limit) |
SuggestedField |
withLimit(java.lang.Integer limit) |
SuggestedField |
withName(java.lang.String name) |
SuggestedField |
withOrdering(int ordering) |
SuggestedField |
withOrdering(java.lang.Integer ordering) |
SuggestedField |
withTitle(java.lang.String title) |
void |
writeTo(java.io.OutputStream os)
Write this SuggestedField as an XML fragment
|
getDefaultValue, isAllowEmpty, setAllowEmpty, setDefaultValue
getDescription, getName, getOrdering, getTitle, isIsHidden, isIsMandatory, setDescription, setIsHidden, setIsMandatory, setName, setOrdering, setTitle
public int limit
public static final int DEFAULT_LIMIT
public SuggestedField()
public SuggestedField(SuggestedField o)
public SuggestedField withDefaultValue(java.lang.String defaultValue)
withDefaultValue
in class StringField
public SuggestedField withAllowEmpty(boolean allowEmpty)
withAllowEmpty
in class StringField
public SuggestedField withAllowEmpty(java.lang.Boolean allowEmpty)
withAllowEmpty
in class StringField
public SuggestedField withName(java.lang.String name)
withName
in class StringField
public SuggestedField withTitle(java.lang.String title)
withTitle
in class StringField
public SuggestedField withDescription(java.lang.String description)
withDescription
in class StringField
public SuggestedField withIsMandatory(boolean isMandatory)
withIsMandatory
in class StringField
public SuggestedField withIsMandatory(java.lang.Boolean isMandatory)
withIsMandatory
in class StringField
public SuggestedField withIsHidden(boolean isHidden)
withIsHidden
in class StringField
public SuggestedField withIsHidden(java.lang.Boolean isHidden)
withIsHidden
in class StringField
public SuggestedField withOrdering(int ordering)
withOrdering
in class StringField
public SuggestedField withOrdering(java.lang.Integer ordering)
withOrdering
in class StringField
public void setLimit(int limit)
public int getLimit()
public SuggestedField withLimit(int limit)
public SuggestedField withLimit(java.lang.Integer limit)
public SuggestedField makeCopy()
makeCopy
in class StringField
public static SuggestedField readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class StringField
javax.xml.bind.JAXBException
java.io.IOException
public static SuggestedField fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class StringField
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class StringField
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.