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

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

public class ExtensionTypeImpl<T>
extends Object
implements Child<T>, ExtensionType<T>

This class implements the extensionType xsd type

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

Constructor Summary
ExtensionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
ExtensionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
           
 
Method Summary
 ExtensionType<T> className(String className)
          Sets the class-name attribute
 ConfigPropertyType<ExtensionType<T>> createConfigProperty()
          Creates a new config-property element
 List<ConfigPropertyType<ExtensionType<T>>> getAllConfigProperty()
          Returns all config-property elements
 String getClassName()
          Returns the class-name attribute
 ConfigPropertyType<ExtensionType<T>> getOrCreateConfigProperty()
          If not already created, a new config-property element will be created and returned.
 ExtensionType<T> removeAllConfigProperty()
          Removes all config-property elements
 ExtensionType<T> removeClassName()
          Removes the class-name attribute
 T up()
          Returns the parent of this Child
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionTypeImpl

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

ExtensionTypeImpl

public ExtensionTypeImpl(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

getOrCreateConfigProperty

public ConfigPropertyType<ExtensionType<T>> getOrCreateConfigProperty()
If not already created, a new config-property element will be created and returned. Otherwise, the first existing config-property element will be returned.

Specified by:
getOrCreateConfigProperty in interface ExtensionType<T>
Returns:
the instance defined for the element config-property

createConfigProperty

public ConfigPropertyType<ExtensionType<T>> createConfigProperty()
Creates a new config-property element

Specified by:
createConfigProperty in interface ExtensionType<T>
Returns:
the new created instance of ConfigPropertyType>

getAllConfigProperty

public List<ConfigPropertyType<ExtensionType<T>>> getAllConfigProperty()
Returns all config-property elements

Specified by:
getAllConfigProperty in interface ExtensionType<T>
Returns:
list of config-property

removeAllConfigProperty

public ExtensionType<T> removeAllConfigProperty()
Removes all config-property elements

Specified by:
removeAllConfigProperty in interface ExtensionType<T>
Returns:
the current instance of ConfigPropertyType>

className

public ExtensionType<T> className(String className)
Sets the class-name attribute

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

getClassName

public String getClassName()
Returns the class-name attribute

Specified by:
getClassName in interface ExtensionType<T>
Returns:
the value defined for the attribute class-name

removeClassName

public ExtensionType<T> removeClassName()
Removes the class-name attribute

Specified by:
removeClassName in interface ExtensionType<T>
Returns:
the current instance of ExtensionType


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