org.jboss.shrinkwrap.descriptor.impl.jbosscommon51
Class SecurityRoleTypeImpl<T>

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.impl.jbosscommon51.SecurityRoleTypeImpl<T>
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>, SecurityRoleType<T>

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

This class implements the security-roleType xsd type

Original Documentation:

The security-role element contains the definition of a security role.
The definition consists of an the security role name and principal name element(s).

Since:
Generation date :2011-07-19T22:54:35.59+02:00
Author:
Ralf Battenfeld

Constructor Summary
SecurityRoleTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
           
SecurityRoleTypeImpl(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.util.List<java.lang.String> getPrincipalNameList()
          Returns all principal-name elements
 java.lang.String getRoleName()
          Returns the role-name element
 SecurityRoleType<T> removeAllDescription()
          Removes the description element
 SecurityRoleType<T> removeAllPrincipalName()
          Removes the principal-name element
 SecurityRoleType<T> removeRoleName()
          Removes the role-name element
 SecurityRoleType<T> setDescription(java.lang.String description)
          Creates a new description element
 SecurityRoleType<T> setDescriptionList(java.lang.String... values)
          Creates for all String objects representing description elements, a new description element
 SecurityRoleType<T> setPrincipalName(java.lang.String principalName)
          Creates a new principal-name element
 SecurityRoleType<T> setPrincipalNameList(java.lang.String... values)
          Creates for all String objects representing principal-name elements, a new principal-name element
 SecurityRoleType<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

SecurityRoleTypeImpl

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

SecurityRoleTypeImpl

public SecurityRoleTypeImpl(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 SecurityRoleType<T> setDescription(java.lang.String description)
Creates a new description element

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

setDescriptionList

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

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

removeAllDescription

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

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

getDescriptionList

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

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

setRoleName

public SecurityRoleType<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 SecurityRoleType<T>
Returns:
the current instance of SecurityRoleType

removeRoleName

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

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

getRoleName

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

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

setPrincipalName

public SecurityRoleType<T> setPrincipalName(java.lang.String principalName)
Creates a new principal-name element

Specified by:
setPrincipalName in interface SecurityRoleType<T>
Returns:
the current instance of SecurityRoleType

setPrincipalNameList

public SecurityRoleType<T> setPrincipalNameList(java.lang.String... values)
Creates for all String objects representing principal-name elements, a new principal-name element

Specified by:
setPrincipalNameList in interface SecurityRoleType<T>
Parameters:
list - of principal-name objects
Returns:
the current instance of SecurityRoleType

removeAllPrincipalName

public SecurityRoleType<T> removeAllPrincipalName()
Removes the principal-name element

Specified by:
removeAllPrincipalName in interface SecurityRoleType<T>
Returns:
the current instance of SecurityRoleType

getPrincipalNameList

public java.util.List<java.lang.String> getPrincipalNameList()
Returns all principal-name elements

Specified by:
getPrincipalNameList in interface SecurityRoleType<T>
Returns:
list of principal-name