Package org.apache.cxf.xjc.ts
Class ToStringPlugin
java.lang.Object
org.apache.cxf.xjc.ts.ToStringPlugin
Modifies the JAXB code model to override the Object.toString() method with an
implementation that provides a String representation of the xml content.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddToStringMethod(com.sun.tools.xjc.outline.ClassOutline co, com.sun.codemodel.JClass delegateImpl, com.sun.codemodel.JFieldRef toStringDelegateStyleParam) getUsage()voidonActivated(com.sun.tools.xjc.Options opts) intparseArgument(com.sun.tools.xjc.Options opt, String[] args, int index, com.sun.tools.xjc.Plugin plugin) booleanrun(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options opt, ErrorHandler errorHandler)
-
Field Details
-
LOG
-
styleFieldName
-
styleClassName
-
active
private boolean active
-
-
Constructor Details
-
ToStringPlugin
public ToStringPlugin()
-
-
Method Details
-
getOptionName
-
getUsage
-
parseArgument
public int parseArgument(com.sun.tools.xjc.Options opt, String[] args, int index, com.sun.tools.xjc.Plugin plugin) throws com.sun.tools.xjc.BadCommandLineException, IOException - Throws:
com.sun.tools.xjc.BadCommandLineExceptionIOException
-
run
public boolean run(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options opt, ErrorHandler errorHandler) -
addToStringMethod
private void addToStringMethod(com.sun.tools.xjc.outline.ClassOutline co, com.sun.codemodel.JClass delegateImpl, com.sun.codemodel.JFieldRef toStringDelegateStyleParam) -
onActivated
public void onActivated(com.sun.tools.xjc.Options opts)
-