org.jvnet.jaxb2_commons.plugin.defaultvalueplugin
Class DefaultValuePlugin

java.lang.Object
  extended by com.sun.tools.xjc.Plugin
      extended by org.jvnet.jaxb2_commons.plugin.defaultvalueplugin.DefaultValuePlugin

public class DefaultValuePlugin
extends com.sun.tools.xjc.Plugin

Modifies the JAXB code model to set default values to the schema "default" attribute. Currently, the following field types can be initialized:

Created: Mon Apr 24 22:04:25 2006

Version:
1.1
Author:
Hari Selvarajan, J�rgen Lukasczyk

Constructor Summary
DefaultValuePlugin()
          Creates a new DefaultValuePlugin instance.
 
Method Summary
 java.lang.String getOptionName()
          DefaultValuePlugin uses "-Xdefault-value" as the command-line argument
 java.lang.String getUsage()
          Return usage information for plugin
 boolean run(com.sun.tools.xjc.outline.Outline outline, com.sun.tools.xjc.Options opt, org.xml.sax.ErrorHandler errorHandler)
          Run the plugin.
 
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
 

Constructor Detail

DefaultValuePlugin

public DefaultValuePlugin()
Creates a new DefaultValuePlugin instance.

Method Detail

getOptionName

public java.lang.String getOptionName()
DefaultValuePlugin uses "-Xdefault-value" as the command-line argument

Specified by:
getOptionName in class com.sun.tools.xjc.Plugin

getUsage

public java.lang.String getUsage()
Return usage information for plugin

Specified by:
getUsage in class com.sun.tools.xjc.Plugin

run

public boolean run(com.sun.tools.xjc.outline.Outline outline,
                   com.sun.tools.xjc.Options opt,
                   org.xml.sax.ErrorHandler errorHandler)
Run the plugin. We perform the following steps:

Specified by:
run in class com.sun.tools.xjc.Plugin


Copyright © 2011. All Rights Reserved.