org.squashtest.tm.domain.customfield
Class CustomField
java.lang.Object
org.squashtest.tm.domain.customfield.CustomField
- Direct Known Subclasses:
- SingleSelectField
@Entity
public class CustomField
- extends Object
- Author:
- Gregory Fouquet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CODE_REGEXP
public static final String CODE_REGEXP
- See Also:
- Constant Field Values
MIN_CODE_SIZE
public static final int MIN_CODE_SIZE
- See Also:
- Constant Field Values
MAX_CODE_SIZE
public static final int MAX_CODE_SIZE
- See Also:
- Constant Field Values
DATE_PATTERN
public static final String DATE_PATTERN
- See Also:
- Constant Field Values
id
protected Long id
name
@NotBlank
@Size(min=0,
max=255)
protected String name
label
@NotBlank
@Size(min=0,
max=255)
protected String label
optional
protected boolean optional
defaultValue
@Size(min=0,
max=255)
protected String defaultValue
inputType
@NotNull
protected InputType inputType
code
@NotBlank
@Size(min=1,
max=30)
@Pattern(regexp="^[A-Za-z0-9_]*$")
protected String code
CustomField
protected CustomField()
- For ORM purposes.
CustomField
public CustomField(@NotNull
InputType inputType)
getName
public String getName()
setName
public void setName(String name)
getLabel
public String getLabel()
setLabel
public void setLabel(String label)
isOptional
public boolean isOptional()
setOptional
public void setOptional(boolean optional)
getDefaultValue
public String getDefaultValue()
getDefaultValueAsDate
public Date getDefaultValueAsDate()
setDefaultValue
public void setDefaultValue(String defaultValue)
getId
public Long getId()
getInputType
public InputType getInputType()
getCode
public String getCode()
setCode
public void setCode(String code)
accept
public void accept(CustomFieldVisitor visitor)
Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.