ClassNameAllocator filter that performs automatic name conflict resolution.
| Modifier and Type | Field and Description |
|---|---|
| private final ClassNameAllocator | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | assignClassName(String packageName, String className)
Implements com. Hook that allows the client of the XJC API to rename some of the JAXB-generated classes. |
| private String |
| core | back to summary |
|---|---|
| private final ClassNameAllocator core | |
| names | back to summary |
|---|---|
| private final Map<String, Set<String>> names | |
| AutoClassNameAllocator | back to summary |
|---|---|
| public AutoClassNameAllocator(ClassNameAllocator core) | |
| assignClassName | back to summary |
|---|---|
| public String assignClassName(String packageName, String className) Implements com. Doc from com. Hook that allows the client of the XJC API to rename some of the JAXB-generated classes. 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.
| |
| determineName | back to summary |
|---|---|
| private String determineName(String packageName, String className) | |