public class AttachmentFieldLimit extends FieldLimit implements Cloneable, Serializable
AttachmentFieldLimit
class defines the value limits for an attachment field (DataType.ATTACHMENT
).Constructor and Description |
---|
AttachmentFieldLimit() |
AttachmentFieldLimit(int max,
int type)
Constructs a new
AttachmentLimitInfo object, defaulting the full text option to none (Constants.AR_FULLTEXT_OPTIONS_NONE ). |
AttachmentFieldLimit(int max,
int type,
int option)
Constructs a new
AttachmentLimitInfo object, allowing the specification of a full text option. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self.
|
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the
provided one.
|
int |
getAttachType()
Returns the attachment type
|
int |
getFullTextOption()
Returns the full text option
|
int |
getMaxSize()
Returns the maximum attachment size
|
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
void |
setAttachType(int type)
Sets the attachment type
|
void |
setFullTextOption(int option)
Sets the full text option
|
void |
setMaxSize(int max)
Sets the maximum attachment size
|
String |
toString()
Returns a string description of the object.
|
getDataType
public AttachmentFieldLimit()
public AttachmentFieldLimit(int max, int type)
AttachmentLimitInfo
object, defaulting the full text option to none (Constants.AR_FULLTEXT_OPTIONS_NONE
).max
- Maximum size of the attachment.type
- Type of the attachment -- embedded (Constants.AR_ATTACH_FIELD_TYPE_EMBED
) is the only type
supported at this time.public AttachmentFieldLimit(int max, int type, int option)
AttachmentLimitInfo
object, allowing the specification of a full text option.max
- Maximum size of the attachment.type
- Type of the attachment -- embedded (Constants.AR_ATTACH_FIELD_TYPE_EMBED
) is the only type
supported at this time.option
- Full text option -- none Constants.AR_FULLTEXT_OPTIONS_NONE
or indexed (Constants.AR_FULLTEXT_OPTIONS_INDEXED
)public void setMaxSize(int max)
public void setAttachType(int type)
public void setFullTextOption(int option)
public int getMaxSize()
public int getAttachType()
public int getFullTextOption()
public Object clone() throws CloneNotSupportedException
clone
in class FieldLimit
CloneNotSupportedException
public String toString()
toString
in class FieldLimit
public int hashCode()
hashCode
in class FieldLimit
public boolean equals(Object obj)
equals
in class FieldLimit
obj
- the object that we are comparing to? Copyright 2013 BMC Software, Inc.