|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.japano.metadata.MetadataProcessor
public class MetadataProcessor
Creates tag library definitions from javadoc attributes in pagenode and action sources.
Field Summary | |
---|---|
protected static java.util.regex.Pattern |
ACTION_NAME_PATTERN
|
protected static java.util.regex.Pattern |
EXTENSION_PATTERN
|
static java.lang.String |
JAPANO_TAG_PREFIX
|
protected static java.util.regex.Pattern |
LIBNAME_PATTERN
|
static java.lang.String |
NEWLINE
|
static java.lang.String |
TAGLIB_MAP
File which contains the URIs of all base tag libs. |
protected static java.util.regex.Pattern |
TAGNAME_PATTERN
|
static java.lang.String |
TLD_SUFFIX
|
Constructor Summary | |
---|---|
MetadataProcessor()
|
Method Summary | |
---|---|
static Bean |
createBean(MetadataClass mdClass)
Introspects the given class and returns a Bean including default parameters created from it. |
static java.lang.String |
getPackage(MetadataClass mdClass)
|
static Parameter |
getParameter(MetadataMethod accessor,
MetadataMethod mutator)
|
java.lang.String |
getRealPath(java.lang.String location)
|
java.lang.String |
getTagLibraryURI(MetadataClass mdClass)
Returns the tag library URI for a given XClass. |
static java.lang.String |
getTLDNameFromURI(java.lang.String libraryURI)
|
java.lang.String |
getWebAppPath()
|
void |
log(java.lang.String msg)
|
void |
process(java.util.List typeDecls)
|
void |
setAddAttributeDescriptionFix(boolean fix)
|
void |
setJar(boolean isJAR)
If set to true, enables jar mode. |
void |
setWebApp(java.lang.String webApp)
Sets the Path for the web application to generate tag library definitions for. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NEWLINE
public static final java.lang.String JAPANO_TAG_PREFIX
public static final java.lang.String TLD_SUFFIX
protected static java.util.regex.Pattern TAGNAME_PATTERN
protected static java.util.regex.Pattern LIBNAME_PATTERN
protected static java.util.regex.Pattern ACTION_NAME_PATTERN
protected static java.util.regex.Pattern EXTENSION_PATTERN
public static final java.lang.String TAGLIB_MAP
Constructor Detail |
---|
public MetadataProcessor()
Method Detail |
---|
public void setWebApp(java.lang.String webApp)
webApp
- web application pathpublic void setJar(boolean isJAR)
public void setAddAttributeDescriptionFix(boolean fix)
public void process(java.util.List typeDecls)
public java.lang.String getRealPath(java.lang.String location)
public java.lang.String getWebAppPath()
public java.lang.String getTagLibraryURI(MetadataClass mdClass)
mdClass
- metadata class info
public static java.lang.String getTLDNameFromURI(java.lang.String libraryURI)
public static java.lang.String getPackage(MetadataClass mdClass)
public static Parameter getParameter(MetadataMethod accessor, MetadataMethod mutator)
public static Bean createBean(MetadataClass mdClass)
mdClass
- Class to construct the default Bean for.
public void log(java.lang.String msg)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |