|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.enunciate.template.freemarker.ClientPackageForMethod
public class ClientPackageForMethod
Gets the qualified package name for a package or type.
| Field Summary |
|---|
| Fields inherited from interface freemarker.template.TemplateModel |
|---|
NOTHING |
| Constructor Summary | |
|---|---|
ClientPackageForMethod(java.util.Map<java.lang.String,java.lang.String> conversions)
|
|
| Method Summary | |
|---|---|
java.lang.String |
convert(com.sun.mirror.declaration.PackageDeclaration packageDeclaration)
Converts the package declaration to its client-side package value. |
java.lang.String |
convert(java.lang.String fqn)
Converts the possible package to the specified client-side package, if any conversions are specified. |
java.lang.String |
convert(com.sun.mirror.declaration.TypeDeclaration declaration)
Returns the client-side package value for the given type declaration. |
java.lang.String |
convert(com.sun.mirror.type.TypeMirror typeMirror)
Returns the client-side package value for the given type. |
java.lang.String |
convertUnwrappedObject(java.lang.Object unwrapped)
Converts an unwrapped object. |
java.lang.Object |
exec(java.util.List list)
Gets the client-side package for the type, type declaration, package, or their string values. |
boolean |
isUseClientNameConversions()
Whether to use the client name conversions. |
void |
setUseClientNameConversions(boolean useClientNameConversions)
Whether to use the client name conversions. |
protected java.lang.Object |
unwrap(java.lang.Object first)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientPackageForMethod(java.util.Map<java.lang.String,java.lang.String> conversions)
conversions - The conversions.| Method Detail |
|---|
public java.lang.Object exec(java.util.List list)
throws freemarker.template.TemplateModelException
exec in interface freemarker.template.TemplateMethodModelexec in interface freemarker.template.TemplateMethodModelExlist - The arguments.
freemarker.template.TemplateModelException
protected java.lang.Object unwrap(java.lang.Object first)
throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
public java.lang.String convertUnwrappedObject(java.lang.Object unwrapped)
throws freemarker.template.TemplateModelException
unwrapped - The unwrapped object to convert.
freemarker.template.TemplateModelException
public java.lang.String convert(com.sun.mirror.type.TypeMirror typeMirror)
throws freemarker.template.TemplateModelException
typeMirror - The type.
freemarker.template.TemplateModelException - If the type mirror cannot be converted for some reason.
public java.lang.String convert(com.sun.mirror.declaration.TypeDeclaration declaration)
throws freemarker.template.TemplateModelException
declaration - The declaration.
freemarker.template.TemplateModelExceptionpublic java.lang.String convert(com.sun.mirror.declaration.PackageDeclaration packageDeclaration)
packageDeclaration - The package declaration.
public java.lang.String convert(java.lang.String fqn)
fqn - The package to convert.
public boolean isUseClientNameConversions()
public void setUseClientNameConversions(boolean useClientNameConversions)
useClientNameConversions - Whether to use the client name conversions.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||