org.jvnet.jaxb2_commons
Class BooleanGetter

java.lang.Object
  extended by com.sun.tools.xjc.Plugin
      extended by org.jvnet.jaxb2_commons.BooleanGetter

public class BooleanGetter
extends Plugin

XJC plugin to generate getXX functions instead of isXX functions for boolean values. The motivation is to make using XJC generated classes easier to use with Spring, since Spring expects accessors to be called getXX.

Version:
1.0
Author:
Adam Burnett

Field Summary
protected  java.lang.String OPTION_NAME
           
 
Constructor Summary
BooleanGetter()
           
 
Method Summary
 java.lang.String getOptionName()
           
 java.lang.String getUsage()
           
 boolean run(Outline model, Options opts, org.xml.sax.ErrorHandler errors)
           
 
Methods inherited from class com.sun.tools.xjc.Plugin
getCustomizationURIs, isCustomizationTagName, onActivated, parseArgument, postProcessModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_NAME

protected final java.lang.String OPTION_NAME
See Also:
Constant Field Values
Constructor Detail

BooleanGetter

public BooleanGetter()
Method Detail

getOptionName

public java.lang.String getOptionName()
Specified by:
getOptionName in class Plugin

getUsage

public java.lang.String getUsage()
Specified by:
getUsage in class Plugin

run

public boolean run(Outline model,
                   Options opts,
                   org.xml.sax.ErrorHandler errors)
            throws org.xml.sax.SAXException
Specified by:
run in class Plugin
Throws:
org.xml.sax.SAXException


Copyright © 2005-2010 Sun Microsystems. All Rights Reserved.