public class FileUpload extends ValidationRule implements Serializable
ValidationRule
indicating the FieldDef
's value represents one ore more org.appng.forms.FormUpload
s.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, setMessage
protected Integer minCount
protected Integer maxCount
protected Long minSize
protected Long maxSize
protected String unit
protected String fileTypes
public Integer getMinCount()
Integer
public void setMinCount(Integer value)
value
- allowed object is
Integer
public Integer getMaxCount()
Integer
public void setMaxCount(Integer value)
value
- allowed object is
Integer
public void setMinSize(Long value)
value
- allowed object is
Long
public void setMaxSize(Long value)
value
- allowed object is
Long
public String getUnit()
String
public void setUnit(String value)
value
- allowed object is
String
public String getFileTypes()
String
Copyright © 2011–2017 aiticon GmbH. All rights reserved.