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

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

public class DsSecurityTypeImpl<T>
extends Object
implements Child<T>, DsSecurityType<T>

This class implements the dsSecurityType xsd type

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

Constructor Summary
DsSecurityTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
DsSecurityTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
           
 
Method Summary
 ExtensionType<DsSecurityType<T>> getOrCreateReauthPlugin()
          If not already created, a new reauth-plugin element with the given value will be created.
 String getPassword()
          Returns the password element
 String getSecurityDomain()
          Returns the security-domain element
 String getUserName()
          Returns the user-name element
 DsSecurityType<T> password(String password)
          Sets the password element
 DsSecurityType<T> removePassword()
          Removes the password element
 DsSecurityType<T> removeReauthPlugin()
          Removes the reauth-plugin element
 DsSecurityType<T> removeSecurityDomain()
          Removes the security-domain element
 DsSecurityType<T> removeUserName()
          Removes the user-name element
 DsSecurityType<T> securityDomain(String securityDomain)
          Sets the security-domain element
 T up()
          Returns the parent of this Child
 DsSecurityType<T> userName(String userName)
          Sets the user-name element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DsSecurityTypeImpl

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

DsSecurityTypeImpl

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

userName

public DsSecurityType<T> userName(String userName)
Sets the user-name element

Specified by:
userName in interface DsSecurityType<T>
Parameters:
userName - the value for the element user-name
Returns:
the current instance of DsSecurityType

getUserName

public String getUserName()
Returns the user-name element

Specified by:
getUserName in interface DsSecurityType<T>
Returns:
the node defined for the element user-name

removeUserName

public DsSecurityType<T> removeUserName()
Removes the user-name element

Specified by:
removeUserName in interface DsSecurityType<T>
Returns:
the current instance of DsSecurityType

password

public DsSecurityType<T> password(String password)
Sets the password element

Specified by:
password in interface DsSecurityType<T>
Parameters:
password - the value for the element password
Returns:
the current instance of DsSecurityType

getPassword

public String getPassword()
Returns the password element

Specified by:
getPassword in interface DsSecurityType<T>
Returns:
the node defined for the element password

removePassword

public DsSecurityType<T> removePassword()
Removes the password element

Specified by:
removePassword in interface DsSecurityType<T>
Returns:
the current instance of DsSecurityType

securityDomain

public DsSecurityType<T> securityDomain(String securityDomain)
Sets the security-domain element

Specified by:
securityDomain in interface DsSecurityType<T>
Parameters:
securityDomain - the value for the element security-domain
Returns:
the current instance of DsSecurityType

getSecurityDomain

public String getSecurityDomain()
Returns the security-domain element

Specified by:
getSecurityDomain in interface DsSecurityType<T>
Returns:
the node defined for the element security-domain

removeSecurityDomain

public DsSecurityType<T> removeSecurityDomain()
Removes the security-domain element

Specified by:
removeSecurityDomain in interface DsSecurityType<T>
Returns:
the current instance of DsSecurityType

getOrCreateReauthPlugin

public ExtensionType<DsSecurityType<T>> getOrCreateReauthPlugin()
If not already created, a new reauth-plugin element with the given value will be created. Otherwise, the existing reauth-plugin element will be returned.

Specified by:
getOrCreateReauthPlugin in interface DsSecurityType<T>
Returns:
a new or existing instance of ExtensionType>

removeReauthPlugin

public DsSecurityType<T> removeReauthPlugin()
Removes the reauth-plugin element

Specified by:
removeReauthPlugin in interface DsSecurityType<T>
Returns:
the current instance of DsSecurityType


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