public class MaxUploadSize extends AbstractExtension
Constructor and Description |
---|
MaxUploadSize()
Default mutable constructor.
|
MaxUploadSize(java.lang.String kind,
java.lang.Long value)
Immutable constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
|
java.lang.String |
getKind()
Returns the kind.
|
java.lang.Long |
getValue()
Returns the value.
|
int |
hashCode() |
boolean |
hasKind()
Returns whether it has the kind.
|
boolean |
hasValue()
Returns whether it has the value.
|
void |
setKind(java.lang.String kind)
Sets the kind.
|
void |
setValue(java.lang.Long value)
Sets the value.
|
java.lang.String |
toString() |
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, setImmutable
public MaxUploadSize()
public MaxUploadSize(java.lang.String kind, java.lang.Long value)
kind
- kind.value
- value.public java.lang.String getKind()
public void setKind(java.lang.String kind)
kind
- kind or null
to resetpublic boolean hasKind()
public java.lang.Long getValue()
public void setValue(java.lang.Long value)
value
- value or null
to resetpublic boolean hasValue()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatablepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object