xdoclet.tagshandler
public static class PackageTagsHandler.PackageSubstitution extends java.lang.Object implements java.io.Serializable
.beans
or .ejb
interfaces were put into .interfaces package. It's no more the case. You have full control over it. If you don't
use a packageSubstitution
element, then all interfaces are generated to the same package as the bean
implementation class. But if you want to follow the pattern and put interfaces into a separate package you can,
by providing the list of package name tails that interfaces of beans inside that packages should be placed into
the package you define. For example interfaces of test.ejb.CustomerBean
will be placed in test.interfaces
by the following packageSubstitution
:
<packageSubstitution packages="ejb,beans" substituteWith="interfaces" />
By using the useFirst
attribute, you can tell XDoclet to substitute the first occurrence and not the
last. Constructor and Description |
---|
PackageTagsHandler.PackageSubstitution() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPackages()
Get the comma-separated list of packages to be substituted.
|
java.lang.String |
getSubstituteWith()
Get the substitute package name.
|
boolean |
getUseFirst()
Return the useFirst attribute.
|
void |
setPackages(java.lang.String packages)
Set the comma-separated list of packages to be substituted.
|
void |
setSubstituteWith(java.lang.String substituteWith)
Set the substitute package name.
|
void |
setUseFirst(boolean first)
Specify whether the first occurrence of a package from the list should be substituted, or the last.
|
public PackageTagsHandler.PackageSubstitution()
public java.lang.String getPackages()
public java.lang.String getSubstituteWith()
public boolean getUseFirst()
public void setPackages(java.lang.String packages)
packages
- The new Packages valuepublic void setSubstituteWith(java.lang.String substituteWith)
substituteWith
- The new SubstituteWith valuepublic void setUseFirst(boolean first)
first
- should the first occurrence be used or not?