|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--xdoclet.sdk.xgg.XGGPojo
Simple pojo (plain old java object) class that serves as a base class for XGG generated beans. This class contains logic to check that : - certain methods are supported for a certain version - value set matches with regular expression
| Constructor Summary | |
XGGPojo()
|
|
| Method Summary | |
protected void |
checkValue(String value,
String pattern)
Checks that the value match the pattern |
protected void |
checkVersion(String[] supportedVersions)
Checks that the currently (static) version is among the supportedVersions. |
static void |
setVersion(String version)
Sets the version of the XGG POJO |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XGGPojo()
| Method Detail |
protected final void checkValue(String value,
String pattern)
throws IllegalStateException
value - Value to checkpattern - Regular expression pattern
IllegalStateException - If value doesn't match the pattern
protected final void checkVersion(String[] supportedVersions)
throws IllegalStateException
supportedVersions - supported versions
IllegalStateException - if supportedVersions is not among the currently
set version.setVersion(java.lang.String)public static final void setVersion(String version)
version - The new version
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||