Dynamic Attributes
The <attr> and <content> tags let you provide a sequence of format codes to apply to the value before writing the value out.
Use of these format codes does not change the model.
- U1 - uppercase the first character
- U - uppercase every character
- L1 - lowercase the first character
- L - lowerase every character
- PD - convert from package name to directory name (from "a.b.c" to "a\b\c")
- DP - convert from directory name to package name (from "a\b\c" to "a.b.c")
- RW - remove whitespace (tabs, new lines, blanks, etc.)
- QP - return the package name from a fully qualified class name
- QC - return the Java class name from a fully qualified class name
- CC - convert to camel case (remove whitespace, first character of each token is uppercased)
- JW - replace java whitespace with escaped characters (\t, \r \n)
- RB - remove beginning character
- RE - remove ending character
- TW - trim leading and trailing whitespace
- XS - make XML-safe (replace chars with entities)
You can "stack" formats by listing multiple format codes separated by periods. For example, the format
"L.U1" will lowercase every character in the value and the uppercase the first character.
© Copyright IBM Corporation 2000,
2005. All Rights Reserved.