uk.org.retep.util.xml.jaxb
Class AbstractPlugin

java.lang.Object
  extended by com.sun.tools.xjc.Plugin
      extended by uk.org.retep.util.xml.jaxb.AbstractPlugin
Direct Known Subclasses:
AbstractInjectionPlugin

public abstract class AbstractPlugin
extends com.sun.tools.xjc.Plugin

Abstract JAXB Plugin for use with JAXBPluginLibrary

Since:
9.2
Author:
peter
See Also:
http://weblogs.java.net/blog/kohsuke/archive/2005/06/writing_a_plugi.html, http://weblogs.java.net/blog/kohsuke/archive/2007/01/using_maven_jax.html, https://jaxb2-sources.dev.java.net/source/browse/jaxb2-sources/jaxb-ri/xjc/src/com/sun/tools/xjc/addon/at_generated/PluginImpl.java?only_with_tag=HEAD&view=markup

Constructor Summary
AbstractPlugin()
           
 
Method Summary
 List<String> getCustomizationURIs()
           
protected static String getElementText(Element element)
          Utility method to return the Element's text without importing DOMUtils from jaxb - allowing us to also use our own DOMUtils class
protected abstract  String getLocalName()
          The localName for the configuration
protected abstract  String getNameSpace()
          The nameSpace for the plugin.
 String getOptionName()
          The option name - defaults to "retep-" + getLocalName();
 String getUsage()
          The useage Strng.
 boolean isCustomizationTagName(String nsUri, String localName)
           
 
Methods inherited from class com.sun.tools.xjc.Plugin
onActivated, parseArgument, postProcessModel, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPlugin

public AbstractPlugin()
Method Detail

getNameSpace

protected abstract String getNameSpace()
The nameSpace for the plugin. The default is RetepPluginLibrary.NS

Returns:
See Also:
RetepPluginLibrary.NS

getCustomizationURIs

public final List<String> getCustomizationURIs()
Overrides:
getCustomizationURIs in class com.sun.tools.xjc.Plugin

getLocalName

protected abstract String getLocalName()
The localName for the configuration

Returns:

getOptionName

public String getOptionName()
The option name - defaults to "retep-" + getLocalName();

Specified by:
getOptionName in class com.sun.tools.xjc.Plugin
Returns:
See Also:
getLocalName()

getUsage

public String getUsage()
The useage Strng. If this returns null, then the string is not returned as part of the libraries Useage.

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

isCustomizationTagName

public final boolean isCustomizationTagName(String nsUri,
                                            String localName)
Overrides:
isCustomizationTagName in class com.sun.tools.xjc.Plugin

getElementText

protected static String getElementText(Element element)
Utility method to return the Element's text without importing DOMUtils from jaxb - allowing us to also use our own DOMUtils class

Parameters:
element - Element
Returns:
String content of Element


Copyright © 1998-2009 Retep Development Group. All Rights Reserved.