-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If moving of inner class to parent collides with another class, its n…
…ame is prepended with candidate class name (fixes #39).
- Loading branch information
Showing
8 changed files
with
579 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
src/test/generated_resources/element_name_collision/ObjectFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
|
||
package element_name_collision; | ||
|
||
import javax.xml.bind.annotation.XmlRegistry; | ||
|
||
|
||
/** | ||
* This object contains factory methods for each | ||
* Java content interface and Java element interface | ||
* generated in the element_name_collision package. | ||
* <p>An ObjectFactory allows you to programatically | ||
* construct new instances of the Java representation | ||
* for XML content. The Java representation of XML | ||
* content can consist of schema derived interfaces | ||
* and classes representing the binding of schema | ||
* type definitions, element declarations and model | ||
* groups. Factory methods for each of these are | ||
* provided in this class. | ||
* | ||
*/ | ||
@XmlRegistry | ||
public class ObjectFactory { | ||
|
||
|
||
/** | ||
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: element_name_collision | ||
* | ||
*/ | ||
public ObjectFactory() { | ||
} | ||
|
||
/** | ||
* Create an instance of {@link Root } | ||
* | ||
*/ | ||
public Root createRoot() { | ||
return new Root(); | ||
} | ||
|
||
/** | ||
* Create an instance of {@link Root.Action } | ||
* | ||
*/ | ||
public Root.Action createRootAction() { | ||
return new Root.Action(); | ||
} | ||
|
||
/** | ||
* Create an instance of {@link Root.Action.AddItem } | ||
* | ||
*/ | ||
public Root.Action.AddItem createRootActionAddItem() { | ||
return new Root.Action.AddItem(); | ||
} | ||
|
||
/** | ||
* Create an instance of {@link Root.Action.Item } | ||
* | ||
*/ | ||
public Root.Action.Item createRootActionItem() { | ||
return new Root.Action.Item(); | ||
} | ||
|
||
} |
Oops, something went wrong.