|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClassNameAllocator
Callback interface that allows the driver of the XJC API to rename JAXB-generated classes/interfaces/enums.
Method Summary | |
---|---|
String |
assignClassName(String packageName,
String className)
Hook that allows the client of the XJC API to rename some of the JAXB-generated classes. |
Method Detail |
---|
String assignClassName(String packageName, String className)
When registered, this calllbcak is consulted for every package-level classes/interfaces/enums (hereafter, simply "classes") that the JAXB RI generates. Note that the JAXB RI does not use this allocator for nested/inner classes.
If the allocator chooses to rename some classes. It is the allocator's responsibility to find unique names. If the returned name collides with other classes, the JAXB RI will report errors.
packageName
- The package name, such as "" or "foo.bar". Never be null.className
- The short name of the proposed class name. Such as
"Foo" or "Bar". Never be null, never be empty.
Always a valid Java identifier.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |