|
|||||||||
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 | |
---|---|
java.util.ArrayList<java.lang.String> |
getLines(java.lang.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. |
java.lang.String |
printAnnotation(JAnnotation annotation,
java.lang.String shift)
Converts the given JAnnotation to a string representation. |
java.lang.String |
removeLineBreaks(java.lang.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 java.lang.String removeLineBreaks(java.lang.String string)
string
- The string containing line breaks.
public java.util.ArrayList<java.lang.String> getLines(java.lang.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 java.lang.String printAnnotation(JAnnotation annotation, java.lang.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 |