Package org.appng.xml.platform
Class FileUpload
- java.lang.Object
-
- org.appng.xml.BaseObject
-
- org.appng.xml.platform.ValidationRule
-
- org.appng.xml.platform.FileUpload
-
- All Implemented Interfaces:
Serializable
public class FileUpload extends ValidationRule implements Serializable
AValidationRule
indicating theFieldDef
's value represents one ore moreorg.appng.forms.FormUpload
s.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileUpload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.appng.xml.platform.ValidationRule
getMessage, setMessage
-
-
-
-
Method Detail
-
getMinCount
public Integer getMinCount()
The minimum number of files.- Returns:
- possible object is
Integer
-
setMinCount
public void setMinCount(Integer value)
Sets the value of the minCount property.- Parameters:
value
- allowed object isInteger
-
getMaxCount
public Integer getMaxCount()
The maximum number of files.- Returns:
- possible object is
Integer
-
setMaxCount
public void setMaxCount(Integer value)
Sets the value of the maxCount property.- Parameters:
value
- allowed object isInteger
-
setMinSize
public void setMinSize(Long value)
Sets the value of the minSize property.- Parameters:
value
- allowed object isLong
-
setMaxSize
public void setMaxSize(Long value)
Sets the value of the maxSize property.- Parameters:
value
- allowed object isLong
-
getUnit
public String getUnit()
The unit to use for size restrictions.- Returns:
- possible object is
String
-
setUnit
public void setUnit(String value)
Sets the value of the unit property.- Parameters:
value
- allowed object isString
-
getFileTypes
public String getFileTypes()
A comma separated list of allowed file-extensions.- Returns:
- possible object is
String
-
-