org.jboss.shrinkwrap.descriptor.impl.javaee6
Class RunAsTypeImpl<T>

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.impl.javaee6.RunAsTypeImpl<T>
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>, RunAsType<T>

public class RunAsTypeImpl<T>
extends java.lang.Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, RunAsType<T>

This class implements the run-asType xsd type

Original Documentation:



The run-asType specifies the run-as identity to be
used for the execution of a component. It contains an
optional description, and the name of a security role.


Since:
Generation date :2011-07-19T22:55:02.759+02:00
Author:
Ralf Battenfeld

Constructor Summary
RunAsTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
           
RunAsTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
           
 
Method Summary
 java.util.List<java.lang.String> getDescriptionList()
          Returns all description elements
 java.lang.String getRoleName()
          Returns the role-name element
 RunAsType<T> removeAllDescription()
          Removes the description element
 RunAsType<T> removeRoleName()
          Removes the role-name element
 RunAsType<T> setDescription(java.lang.String description)
          Creates a new description element
 RunAsType<T> setDescriptionList(java.lang.String... values)
          Creates for all String objects representing description elements, a new description element
 RunAsType<T> setRoleName(java.lang.String roleName)
          If not already created, a new role-name element with the given value will be created.
 T up()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunAsTypeImpl

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

RunAsTypeImpl

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

up

public T up()
Specified by:
up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>

setDescription

public RunAsType<T> setDescription(java.lang.String description)
Creates a new description element

Specified by:
setDescription in interface RunAsType<T>
Returns:
the current instance of RunAsType

setDescriptionList

public RunAsType<T> setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements, a new description element

Specified by:
setDescriptionList in interface RunAsType<T>
Parameters:
list - of description objects
Returns:
the current instance of RunAsType

removeAllDescription

public RunAsType<T> removeAllDescription()
Removes the description element

Specified by:
removeAllDescription in interface RunAsType<T>
Returns:
the current instance of RunAsType

getDescriptionList

public java.util.List<java.lang.String> getDescriptionList()
Returns all description elements

Specified by:
getDescriptionList in interface RunAsType<T>
Returns:
list of description

setRoleName

public RunAsType<T> setRoleName(java.lang.String roleName)
If not already created, a new role-name element with the given value will be created. Otherwise, the existing role-name element will be updated with the given value.

Specified by:
setRoleName in interface RunAsType<T>
Returns:
the current instance of RunAsType

removeRoleName

public RunAsType<T> removeRoleName()
Removes the role-name element

Specified by:
removeRoleName in interface RunAsType<T>
Returns:
the current instance of RunAsType

getRoleName

public java.lang.String getRoleName()
Returns the role-name element

Specified by:
getRoleName in interface RunAsType<T>
Returns:
the node defined for the element role-name