org.jvnet.jaxb2_commons.plugin.hashcode
Class HashCodePlugin

java.lang.Object
  extended by com.sun.tools.xjc.Plugin
      extended by org.jvnet.jaxb2_commons.plugin.AbstractPlugin
          extended by org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin
              extended by org.jvnet.jaxb2_commons.plugin.hashcode.HashCodePlugin

public class HashCodePlugin
extends AbstractParameterizablePlugin


Field Summary
 
Fields inherited from class org.jvnet.jaxb2_commons.plugin.AbstractPlugin
logger
 
Constructor Summary
HashCodePlugin()
           
 
Method Summary
 com.sun.codemodel.JExpression createHashCodeStrategy(com.sun.codemodel.JCodeModel codeModel)
           
protected  com.sun.codemodel.JMethod generateHashCode$hashCode(com.sun.tools.xjc.outline.ClassOutline classOutline, com.sun.codemodel.JDefinedClass theClass)
           
protected  com.sun.codemodel.JMethod generateObject$hashCode(com.sun.tools.xjc.outline.ClassOutline classOutline, com.sun.codemodel.JDefinedClass theClass)
           
 Collection<QName> getCustomizationElementNames()
           
 FieldAccessorFactory getFieldAccessorFactory()
           
 String getHashCodeStrategyClass()
           
 Ignoring getIgnoring()
           
 String getOptionName()
           
 String getUsage()
           
protected  void processClassOutline(com.sun.tools.xjc.outline.ClassOutline classOutline)
           
 boolean run(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options opt, ErrorHandler errorHandler)
           
 void setFieldAccessorFactory(FieldAccessorFactory fieldAccessorFactory)
           
 void setHashCodeStrategyClass(String hashCodeStrategy)
           
 void setIgnoring(Ignoring ignoring)
           
 
Methods inherited from class org.jvnet.jaxb2_commons.plugin.AbstractParameterizablePlugin
parseArgument
 
Methods inherited from class org.jvnet.jaxb2_commons.plugin.AbstractPlugin
afterRun, beforeRun, getCustomizationURIs, init, isCustomizationTagName, onActivated, run
 
Methods inherited from class com.sun.tools.xjc.Plugin
postProcessModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashCodePlugin

public HashCodePlugin()
Method Detail

getOptionName

public String getOptionName()
Specified by:
getOptionName in class com.sun.tools.xjc.Plugin

getUsage

public String getUsage()
Specified by:
getUsage in class com.sun.tools.xjc.Plugin

getFieldAccessorFactory

public FieldAccessorFactory getFieldAccessorFactory()

setFieldAccessorFactory

public void setFieldAccessorFactory(FieldAccessorFactory fieldAccessorFactory)

setHashCodeStrategyClass

public void setHashCodeStrategyClass(String hashCodeStrategy)

getHashCodeStrategyClass

public String getHashCodeStrategyClass()

createHashCodeStrategy

public com.sun.codemodel.JExpression createHashCodeStrategy(com.sun.codemodel.JCodeModel codeModel)

getIgnoring

public Ignoring getIgnoring()

setIgnoring

public void setIgnoring(Ignoring ignoring)

getCustomizationElementNames

public Collection<QName> getCustomizationElementNames()
Overrides:
getCustomizationElementNames in class AbstractPlugin

run

public boolean run(com.sun.tools.xjc.outline.Outline outline,
                   com.sun.tools.xjc.Options opt,
                   ErrorHandler errorHandler)
Overrides:
run in class AbstractPlugin

processClassOutline

protected void processClassOutline(com.sun.tools.xjc.outline.ClassOutline classOutline)

generateObject$hashCode

protected com.sun.codemodel.JMethod generateObject$hashCode(com.sun.tools.xjc.outline.ClassOutline classOutline,
                                                            com.sun.codemodel.JDefinedClass theClass)

generateHashCode$hashCode

protected com.sun.codemodel.JMethod generateHashCode$hashCode(com.sun.tools.xjc.outline.ClassOutline classOutline,
                                                              com.sun.codemodel.JDefinedClass theClass)


Copyright © 2005-2012. All Rights Reserved.