| java.lang.Object org.jaffa.metadata.FieldMetaData org.jaffa.metadata.StringFieldMetaData
StringFieldMetaData | public class StringFieldMetaData extends FieldMetaData (Code) | | An instance of this class will hold meta information for a String field.
|
Field Summary | |
final public static int | DEFAULT_WIDTH Default width. |
Constructor Summary | |
public | StringFieldMetaData() Creates an instance. | public | StringFieldMetaData(String name, String labelToken, Boolean isMandatory, String pattern, Integer length, String caseType) Creates an instance. | public | StringFieldMetaData(String name, String labelToken, Boolean isMandatory, String pattern, Integer length, String caseType, Integer minLength) Creates an instance. |
Method Summary | |
public Object | clone() Returns a clone of the object. | public int | compareTo(Object obj) Compares this object with another StringFieldMetaData object.
Note: this class has a natural ordering that is inconsistent with equals
Parameters: obj - the other StringFieldMetaData object. | public boolean | equals(Object obj) Compares this object with another StringFieldMetaData object.
Returns a true if both the objects have the same properties.
Parameters: obj - the other StringFieldMetaData object. | public String | getCaseType() Getter for property caseType. | public Integer | getLength() Getter for property length. | public Integer | getMinLength() Getter for property minLength. | public String | getPattern() Getter for property pattern. | public int | getWidth() Getter for property width. | public int | hashCode() Returns the hash code. | public String | toString() Returns the diagnostic information. |
DEFAULT_WIDTH | final public static int DEFAULT_WIDTH(Code) | | Default width.
|
StringFieldMetaData | public StringFieldMetaData()(Code) | | Creates an instance.
|
StringFieldMetaData | public StringFieldMetaData(String name, String labelToken, Boolean isMandatory, String pattern, Integer length, String caseType)(Code) | | Creates an instance.
Parameters: name - The field name. Parameters: labelToken - The token used for displaying labels. Parameters: isMandatory - Indicates if the field is mandatory. Parameters: pattern - The pattern. Parameters: length - The maximum length. Parameters: caseType - The case type (upper, lower or mixed). |
StringFieldMetaData | public StringFieldMetaData(String name, String labelToken, Boolean isMandatory, String pattern, Integer length, String caseType, Integer minLength)(Code) | | Creates an instance.
Parameters: name - The field name. Parameters: labelToken - The token used for displaying labels. Parameters: isMandatory - Indicates if the field is mandatory. Parameters: pattern - The pattern. Parameters: length - The maximum length. Parameters: caseType - The case type (upper, lower or mixed). Parameters: minLength - The minimum length. |
clone | public Object clone()(Code) | | Returns a clone of the object.
a clone of the object. |
compareTo | public int compareTo(Object obj)(Code) | | Compares this object with another StringFieldMetaData object.
Note: this class has a natural ordering that is inconsistent with equals
Parameters: obj - the other StringFieldMetaData object. a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. |
equals | public boolean equals(Object obj)(Code) | | Compares this object with another StringFieldMetaData object.
Returns a true if both the objects have the same properties.
Parameters: obj - the other StringFieldMetaData object. a true if both the objects have the same properties. |
getCaseType | public String getCaseType()(Code) | | Getter for property caseType.
Value of property caseType. |
getLength | public Integer getLength()(Code) | | Getter for property length.
Value of property length. |
getMinLength | public Integer getMinLength()(Code) | | Getter for property minLength.
Value of property minLength. |
getPattern | public String getPattern()(Code) | | Getter for property pattern.
Value of property pattern. |
getWidth | public int getWidth()(Code) | | Getter for property width.
Value of property width. |
hashCode | public int hashCode()(Code) | | Returns the hash code.
the hash code. |
toString | public String toString()(Code) | | Returns the diagnostic information.
the diagnostic information. |
|
|