public class FileUpload extends ValidationRule implements Serializable
ValidationRule indicating the FieldDef's value represents one ore more org.appng.forms.FormUploads.| Modifier and Type | Field and Description |
|---|---|
protected String |
fileTypes |
protected Integer |
maxCount |
protected Long |
maxSize |
protected Integer |
minCount |
protected Long |
minSize |
protected String |
unit |
message| Constructor and Description |
|---|
FileUpload() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFileTypes()
A comma separated list of allowed file-extensions.
|
Integer |
getMaxCount()
The maximum number of files.
|
Long |
getMaxSize()
The maximum size of each file.
|
Integer |
getMinCount()
The minimum number of files.
|
Long |
getMinSize()
The minimum size of each file.
|
String |
getUnit()
The unit to use for size restrictions.
|
void |
setFileTypes(String value)
Sets the value of the fileTypes property.
|
void |
setMaxCount(Integer value)
Sets the value of the maxCount property.
|
void |
setMaxSize(Long value)
Sets the value of the maxSize property.
|
void |
setMinCount(Integer value)
Sets the value of the minCount property.
|
void |
setMinSize(Long value)
Sets the value of the minSize property.
|
void |
setUnit(String value)
Sets the value of the unit property.
|
getMessage, setMessageprotected Integer minCount
protected Integer maxCount
protected Long minSize
protected Long maxSize
protected String unit
protected String fileTypes
public Integer getMinCount()
Integerpublic void setMinCount(Integer value)
value - allowed object is
Integerpublic Integer getMaxCount()
Integerpublic void setMaxCount(Integer value)
value - allowed object is
Integerpublic void setMinSize(Long value)
value - allowed object is
Longpublic void setMaxSize(Long value)
value - allowed object is
Longpublic String getUnit()
Stringpublic void setUnit(String value)
value - allowed object is
Stringpublic String getFileTypes()
StringCopyright © 2011–2022 aiticon GmbH. All rights reserved.