| java.lang.Object org.jaffa.metadata.FieldMetaData
All known Subclasses: org.jaffa.metadata.IntegerFieldMetaData, org.jaffa.metadata.StringFieldMetaData, org.jaffa.metadata.DecimalFieldMetaData, org.jaffa.metadata.DateTimeFieldMetaData, org.jaffa.metadata.RawFieldMetaData, org.jaffa.metadata.BooleanFieldMetaData, org.jaffa.metadata.CurrencyFieldMetaData, org.jaffa.metadata.DateOnlyFieldMetaData,
Method Summary | |
public Object | clone() Returns a clone of the object. | public int | compareTo(Object obj) Compares this object with another FieldMetaData object.
Note: this class has a natural ordering that is inconsistent with equals
Only the field name is compared.
Parameters: obj - the other FieldMetaData object. | public boolean | equals(Object obj) Compares this object with another FieldMetaData object.
Returns a true if both the objects have the same properties.
Parameters: obj - the other FieldMetaData object. | public String | getDataType() Getter for property dataType. | public String | getLabelToken() Getter for property labelToken. | public String | getName() Getter for property layout. | abstract public int | getWidth() Getter for property width. | public int | hashCode() Returns the hash code. | public Boolean | isMandatory() Getter for property isMandatory. | public String | toString() Returns the diagnostic information. |
LOWER_CASE | final public static String LOWER_CASE(Code) | | A constant indicating lowercase.
|
MIXED_CASE | final public static String MIXED_CASE(Code) | | A constant indicating mixedcase.
|
UPPER_CASE | final public static String UPPER_CASE(Code) | | A constant indicating uppercase.
|
FieldMetaData | protected FieldMetaData(String name, String dataType, String labelToken, Boolean isMandatory)(Code) | | Creates an instance.
Parameters: name - The field name. Parameters: description - The field description. Parameters: dataType - The data type. Parameters: labelToken - The token used for displaying labels. Parameters: isMandatory - Indicates if the field is mandatory. |
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 FieldMetaData object.
Note: this class has a natural ordering that is inconsistent with equals
Only the field name is compared.
Parameters: obj - the other FieldMetaData 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 FieldMetaData object.
Returns a true if both the objects have the same properties.
Parameters: obj - the other FieldMetaData object. a true if both the objects have the same properties. |
getDataType | public String getDataType()(Code) | | Getter for property dataType.
Value of property dataType. |
getLabelToken | public String getLabelToken()(Code) | | Getter for property labelToken.
Value of property labelToken. |
getName | public String getName()(Code) | | Getter for property layout.
Value of property layout. |
getWidth | abstract public int getWidth()(Code) | | Getter for property width.
Value of property width. |
hashCode | public int hashCode()(Code) | | Returns the hash code.
the hash code. |
isMandatory | public Boolean isMandatory()(Code) | | Getter for property isMandatory.
Value of property isMandatory. |
toString | public String toString()(Code) | | Returns the diagnostic information.
the diagnostic information. |
|
|