public class Field extends Item implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
allowEmpty |
static boolean |
DEFAULT_ALLOW_EMPTY |
java.lang.String |
defaultValue |
DEFAULT_IS_HIDDEN, DEFAULT_IS_MANDATORY, description, isHidden, isMandatory, name, ordering, title
Constructor and Description |
---|
Field() |
Field(Field o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Field.
|
static Field |
fromString(java.lang.String s)
String representation of this Field.
|
java.lang.String |
getDefaultValue()
Field default value serialized as a String
|
boolean |
isAllowEmpty()
Empty serialized string is allowed ?
|
Field |
makeCopy()
Creates and returns a deep copy of this Field.
|
static Field |
readFrom(java.io.InputStream is)
Read this Field from an XML fragment.
|
void |
setAllowEmpty(boolean allowEmpty)
Empty serialized string is allowed ?
|
void |
setDefaultValue(java.lang.String defaultValue)
Field default value serialized as a String
|
java.lang.String |
toString()
String representation of this Field.
|
Field |
withAllowEmpty(boolean allowEmpty) |
Field |
withAllowEmpty(java.lang.Boolean allowEmpty) |
Field |
withDefaultValue(java.lang.String defaultValue) |
Field |
withDescription(java.lang.String description) |
Field |
withIsHidden(boolean isHidden) |
Field |
withIsHidden(java.lang.Boolean isHidden) |
Field |
withIsMandatory(boolean isMandatory) |
Field |
withIsMandatory(java.lang.Boolean isMandatory) |
Field |
withName(java.lang.String name) |
Field |
withOrdering(int ordering) |
Field |
withOrdering(java.lang.Integer ordering) |
Field |
withTitle(java.lang.String title) |
void |
writeTo(java.io.OutputStream os)
Write this Field as an XML fragment
|
getDescription, getName, getOrdering, getTitle, isIsHidden, isIsMandatory, setDescription, setIsHidden, setIsMandatory, setName, setOrdering, setTitle
public java.lang.String defaultValue
public boolean allowEmpty
public static final boolean DEFAULT_ALLOW_EMPTY
public Field()
public Field(Field o)
public Field withDescription(java.lang.String description)
withDescription
in class Item
public Field withIsMandatory(boolean isMandatory)
withIsMandatory
in class Item
public Field withIsMandatory(java.lang.Boolean isMandatory)
withIsMandatory
in class Item
public Field withIsHidden(boolean isHidden)
withIsHidden
in class Item
public Field withIsHidden(java.lang.Boolean isHidden)
withIsHidden
in class Item
public Field withOrdering(int ordering)
withOrdering
in class Item
public Field withOrdering(java.lang.Integer ordering)
withOrdering
in class Item
public void setDefaultValue(java.lang.String defaultValue)
public java.lang.String getDefaultValue()
public Field withDefaultValue(java.lang.String defaultValue)
public void setAllowEmpty(boolean allowEmpty)
public boolean isAllowEmpty()
public Field withAllowEmpty(boolean allowEmpty)
public Field withAllowEmpty(java.lang.Boolean allowEmpty)
public Field makeCopy()
public static Field 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
public static Field 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()
Copyright © 2013 Dassault Systèmes, All Rights Reserved.