Class TemplateHelper
java.lang.Object
org.exolab.castor.builder.printing.TemplateHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTakes a comment string and splits it into lines that have the maximum length of 70 chars,booleanReturns true if theJClassinstance is instance of JEnum.printAnnotation(JAnnotation annotation, String shift) Converts the givenJAnnotationto a string representation.removeLineBreaks(String string) Removes all line breaks from a given string.
-
Constructor Details
-
TemplateHelper
public TemplateHelper()
-
-
Method Details
-
removeLineBreaks
-
getLines
-
isEnum
-
printAnnotation
Converts the givenJAnnotationto a string representation.- Parameters:
annotation- The annotation to translate.shift- The intent.- Returns:
- A string representation of the annotation.
-