@Entity public class CustomField extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
code |
static String |
CODE_REGEXP |
protected String |
defaultValue |
protected Long |
id |
protected InputType |
inputType |
protected String |
label |
static int |
MAX_CODE_SIZE |
static int |
MIN_CODE_SIZE |
protected String |
name |
static String |
OPTION_REGEXP |
protected boolean |
optional |
| Modifier | Constructor and Description |
|---|---|
protected |
CustomField()
For ORM purposes.
|
|
CustomField(InputType inputType) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(CustomFieldVisitor visitor) |
String |
getCode() |
String |
getDefaultValue() |
Date |
getDefaultValueAsDate() |
Long |
getId() |
InputType |
getInputType() |
String |
getLabel() |
String |
getName() |
boolean |
isOptional() |
void |
setCode(String code) |
void |
setDefaultValue(String defaultValue) |
void |
setLabel(String label) |
void |
setName(String name) |
void |
setOptional(boolean optional) |
public static final String CODE_REGEXP
public static final String OPTION_REGEXP
public static final int MIN_CODE_SIZE
public static final int MAX_CODE_SIZE
protected Long id
@NotBlank
@Size(min=0,
max=255)
protected String name
@NotBlank
@Size(min=0,
max=255)
protected String label
protected boolean optional
@Size(min=0,
max=255)
protected String defaultValue
@NotNull protected InputType inputType
@NotBlank
@Size(min=1,
max=30)
@Pattern(regexp="^[A-Za-z0-9_^;]*$")
protected String code
protected CustomField()
public CustomField(@NotNull
InputType inputType)
public String getName()
public void setName(String name)
public String getLabel()
public void setLabel(String label)
public boolean isOptional()
public void setOptional(boolean optional)
public String getDefaultValue()
public Date getDefaultValueAsDate()
public void setDefaultValue(String defaultValue)
public Long getId()
public InputType getInputType()
public String getCode()
public void setCode(String code)
public void accept(CustomFieldVisitor visitor)
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.