org.jboss.datasources.impl
Class DriverTypeImpl<T>

java.lang.Object
  extended by org.jboss.datasources.impl.DriverTypeImpl<T>
All Implemented Interfaces:
DriverType<T>, Child<T>

public class DriverTypeImpl<T>
extends Object
implements Child<T>, DriverType<T>

This class implements the driverType xsd type

Since:
Generation date :2013-01-26T19:27:02.583+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Constructor Summary
DriverTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
DriverTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
           
 
Method Summary
 DriverType<T> datasourceClass(String datasourceClass)
          Sets the datasource-class element
 DriverType<T> driverClass(String driverClass)
          Sets the driver-class element
 String getDatasourceClass()
          Returns the datasource-class element
 String getDriverClass()
          Returns the driver-class element
 Integer getMajorVersion()
          Returns the major-version attribute
 Integer getMinorVerion()
          Returns the minor-verion attribute
 String getModule()
          Returns the module attribute
 String getName()
          Returns the name attribute
 String getXaDatasourceClass()
          Returns the xa-datasource-class element
 DriverType<T> majorVersion(Integer majorVersion)
          Sets the major-version attribute
 DriverType<T> minorVerion(Integer minorVerion)
          Sets the minor-verion attribute
 DriverType<T> module(String module)
          Sets the module attribute
 DriverType<T> name(String name)
          Sets the name attribute
 DriverType<T> removeDatasourceClass()
          Removes the datasource-class element
 DriverType<T> removeDriverClass()
          Removes the driver-class element
 DriverType<T> removeMajorVersion()
          Removes the major-version attribute
 DriverType<T> removeMinorVerion()
          Removes the minor-verion attribute
 DriverType<T> removeModule()
          Removes the module attribute
 DriverType<T> removeName()
          Removes the name attribute
 DriverType<T> removeXaDatasourceClass()
          Removes the xa-datasource-class element
 T up()
          Returns the parent of this Child
 DriverType<T> xaDatasourceClass(String xaDatasourceClass)
          Sets the xa-datasource-class element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverTypeImpl

public DriverTypeImpl(T t,
                      String nodeName,
                      org.jboss.shrinkwrap.descriptor.spi.node.Node node)

DriverTypeImpl

public DriverTypeImpl(T t,
                      String nodeName,
                      org.jboss.shrinkwrap.descriptor.spi.node.Node node,
                      org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
Method Detail

up

public T up()
Description copied from interface: Child
Returns the parent of this Child

Specified by:
up in interface Child<T>
Returns:
The parent of this Child

driverClass

public DriverType<T> driverClass(String driverClass)
Sets the driver-class element

Specified by:
driverClass in interface DriverType<T>
Parameters:
driverClass - the value for the element driver-class
Returns:
the current instance of DriverType

getDriverClass

public String getDriverClass()
Returns the driver-class element

Specified by:
getDriverClass in interface DriverType<T>
Returns:
the node defined for the element driver-class

removeDriverClass

public DriverType<T> removeDriverClass()
Removes the driver-class element

Specified by:
removeDriverClass in interface DriverType<T>
Returns:
the current instance of DriverType

datasourceClass

public DriverType<T> datasourceClass(String datasourceClass)
Sets the datasource-class element

Specified by:
datasourceClass in interface DriverType<T>
Parameters:
datasourceClass - the value for the element datasource-class
Returns:
the current instance of DriverType

getDatasourceClass

public String getDatasourceClass()
Returns the datasource-class element

Specified by:
getDatasourceClass in interface DriverType<T>
Returns:
the node defined for the element datasource-class

removeDatasourceClass

public DriverType<T> removeDatasourceClass()
Removes the datasource-class element

Specified by:
removeDatasourceClass in interface DriverType<T>
Returns:
the current instance of DriverType

xaDatasourceClass

public DriverType<T> xaDatasourceClass(String xaDatasourceClass)
Sets the xa-datasource-class element

Specified by:
xaDatasourceClass in interface DriverType<T>
Parameters:
xaDatasourceClass - the value for the element xa-datasource-class
Returns:
the current instance of DriverType

getXaDatasourceClass

public String getXaDatasourceClass()
Returns the xa-datasource-class element

Specified by:
getXaDatasourceClass in interface DriverType<T>
Returns:
the node defined for the element xa-datasource-class

removeXaDatasourceClass

public DriverType<T> removeXaDatasourceClass()
Removes the xa-datasource-class element

Specified by:
removeXaDatasourceClass in interface DriverType<T>
Returns:
the current instance of DriverType

name

public DriverType<T> name(String name)
Sets the name attribute

Specified by:
name in interface DriverType<T>
Parameters:
name - the value for the attribute name
Returns:
the current instance of DriverType

getName

public String getName()
Returns the name attribute

Specified by:
getName in interface DriverType<T>
Returns:
the value defined for the attribute name

removeName

public DriverType<T> removeName()
Removes the name attribute

Specified by:
removeName in interface DriverType<T>
Returns:
the current instance of DriverType

module

public DriverType<T> module(String module)
Sets the module attribute

Specified by:
module in interface DriverType<T>
Parameters:
module - the value for the attribute module
Returns:
the current instance of DriverType

getModule

public String getModule()
Returns the module attribute

Specified by:
getModule in interface DriverType<T>
Returns:
the value defined for the attribute module

removeModule

public DriverType<T> removeModule()
Removes the module attribute

Specified by:
removeModule in interface DriverType<T>
Returns:
the current instance of DriverType

majorVersion

public DriverType<T> majorVersion(Integer majorVersion)
Sets the major-version attribute

Specified by:
majorVersion in interface DriverType<T>
Parameters:
majorVersion - the value for the attribute major-version
Returns:
the current instance of DriverType

getMajorVersion

public Integer getMajorVersion()
Returns the major-version attribute

Specified by:
getMajorVersion in interface DriverType<T>
Returns:
the value defined for the attribute major-version

removeMajorVersion

public DriverType<T> removeMajorVersion()
Removes the major-version attribute

Specified by:
removeMajorVersion in interface DriverType<T>
Returns:
the current instance of DriverType

minorVerion

public DriverType<T> minorVerion(Integer minorVerion)
Sets the minor-verion attribute

Specified by:
minorVerion in interface DriverType<T>
Parameters:
minorVerion - the value for the attribute minor-verion
Returns:
the current instance of DriverType

getMinorVerion

public Integer getMinorVerion()
Returns the minor-verion attribute

Specified by:
getMinorVerion in interface DriverType<T>
Returns:
the value defined for the attribute minor-verion

removeMinorVerion

public DriverType<T> removeMinorVerion()
Removes the minor-verion attribute

Specified by:
removeMinorVerion in interface DriverType<T>
Returns:
the current instance of DriverType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.