|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.builder.printing.TemplateHelper
public class TemplateHelper
Helper class that provides convenience methods used
by Velocity templates during JClass printing.
| Constructor Summary | |
|---|---|
TemplateHelper()
|
|
| Method Summary | |
|---|---|
ArrayList<String> |
getLines(String comment)
Takes a comment string and splits it into lines that have the maximum length of 70 chars, |
boolean |
isEnum(JClass jClass)
Returns true if the JClass instance is instance of JEnum. |
String |
printAnnotation(JAnnotation annotation,
String shift)
Converts the given JAnnotation to a string representation. |
String |
removeLineBreaks(String string)
Removes all line breaks from a given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemplateHelper()
| Method Detail |
|---|
public String removeLineBreaks(String string)
string - The string containing line breaks.
public ArrayList<String> getLines(String comment)
comment - The comment as string.
public boolean isEnum(JClass jClass)
JClass instance is instance of JEnum.
jClass - The JClass instance to check.
public String printAnnotation(JAnnotation annotation,
String shift)
JAnnotation to a string representation.
annotation - The annotation to translate.shift - The intent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||