|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portaluiinfrastructure.tags.metadata.AttributeType
public class AttributeType
This enumeration specifies the type of an attribute. If the input value of a required attribute cannot be converted to the correct type, an error will be raised and the tag will not be displayed (for required attributes only).
Information about valid inputs for each type is provided with each enumeration value. In general, the Tag Framework uses the XPConvert class to convert the string attribute value into the appropriate type.
com.plumtree.openfoundation.util.XPConvert
Field Summary | |
---|---|
static AttributeType |
BOOLEAN
boolean |
static AttributeType |
CHAR
char |
static AttributeType |
DOUBLE
double |
static AttributeType |
INT
int |
static AttributeType |
LONG
long |
static AttributeType |
STRING
String |
Method Summary | |
---|---|
java.lang.String |
toString()
Human readable name of the AttributeType. |
static void |
ValidateTypeSafety(java.lang.String _strValue,
AttributeType _Type)
This helper method is used to ensure that the input supplied is valid for this attribute type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final AttributeType STRING
Valid input for this type is any string.
public static final AttributeType INT
Valid input for this type is a string representation of a 32-bit signed integer.
E.G. "7", "42".
public static final AttributeType BOOLEAN
Valid input for this type is a string that contains the value of "true", "True", "false", "False", "1", or "0".
public static final AttributeType DOUBLE
Valid input for this type is a string representation of double-precision floating point number. This conversion always uses the default locale representation of the server ("." for decimal point, et cetera).
E.G. "4.2", "37", "987.45".
public static final AttributeType LONG
Valid input for this type is a string representation of a 64-bit signed integer (I.E. a long).
E.G. "-5465", "12".
public static final AttributeType CHAR
Valid input for this type is a string that contains a single character.
E.G. "c", "q".
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public static void ValidateTypeSafety(java.lang.String _strValue, AttributeType _Type)
String
- _strValue The input value.AttributeType
- The current attribute type.
XPFormatException
- The input cannot be converted
to the appropriate type.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |