org.jboss.shrinkwrap.descriptor.impl.webcommon30
Class SecurityConstraintTypeImpl<T>

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.impl.webcommon30.SecurityConstraintTypeImpl<T>
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>, SecurityConstraintType<T>

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

This class implements the security-constraintType xsd type

Original Documentation:



The security-constraintType is used to associate
security constraints with one or more web resource
collections

Used in: web-app


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

Constructor Summary
SecurityConstraintTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
           
SecurityConstraintTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
           
 
Method Summary
 AuthConstraintType<SecurityConstraintType<T>> authConstraint()
          If not already created, a new auth-constraint element will be created and returned.
 java.util.List<java.lang.String> getDisplayNameList()
          Returns all display-name elements
 java.util.List<WebResourceCollectionType<SecurityConstraintType<T>>> getWebResourceCollectionList()
          Returns all web-resource-collection elements
 SecurityConstraintType<T> removeAllDisplayName()
          Removes the display-name element
 SecurityConstraintType<T> removeAllWebResourceCollection()
          Removes all web-resource-collection elements
 SecurityConstraintType<T> removeAuthConstraint()
          Removes the auth-constraint element
 SecurityConstraintType<T> removeUserDataConstraint()
          Removes the user-data-constraint element
 SecurityConstraintType<T> setDisplayName(java.lang.String displayName)
          Creates a new display-name element
 SecurityConstraintType<T> setDisplayNameList(java.lang.String... values)
          Creates for all String objects representing display-name elements, a new display-name element
 T up()
           
 UserDataConstraintType<SecurityConstraintType<T>> userDataConstraint()
          If not already created, a new user-data-constraint element will be created and returned.
 WebResourceCollectionType<SecurityConstraintType<T>> webResourceCollection()
          Returns the web-resource-collection element
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityConstraintTypeImpl

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

SecurityConstraintTypeImpl

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

setDisplayName

public SecurityConstraintType<T> setDisplayName(java.lang.String displayName)
Creates a new display-name element

Specified by:
setDisplayName in interface SecurityConstraintType<T>
Returns:
the current instance of SecurityConstraintType

setDisplayNameList

public SecurityConstraintType<T> setDisplayNameList(java.lang.String... values)
Creates for all String objects representing display-name elements, a new display-name element

Specified by:
setDisplayNameList in interface SecurityConstraintType<T>
Parameters:
list - of display-name objects
Returns:
the current instance of SecurityConstraintType

removeAllDisplayName

public SecurityConstraintType<T> removeAllDisplayName()
Removes the display-name element

Specified by:
removeAllDisplayName in interface SecurityConstraintType<T>
Returns:
the current instance of SecurityConstraintType

getDisplayNameList

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

Specified by:
getDisplayNameList in interface SecurityConstraintType<T>
Returns:
list of display-name

removeAllWebResourceCollection

public SecurityConstraintType<T> removeAllWebResourceCollection()
Removes all web-resource-collection elements

Specified by:
removeAllWebResourceCollection in interface SecurityConstraintType<T>
Returns:
the current instance of SecurityConstraintType

webResourceCollection

public WebResourceCollectionType<SecurityConstraintType<T>> webResourceCollection()
Returns the web-resource-collection element

Specified by:
webResourceCollection in interface SecurityConstraintType<T>
Returns:
the node defined for the element web-resource-collection

getWebResourceCollectionList

public java.util.List<WebResourceCollectionType<SecurityConstraintType<T>>> getWebResourceCollectionList()
Returns all web-resource-collection elements

Specified by:
getWebResourceCollectionList in interface SecurityConstraintType<T>
Returns:
list of web-resource-collection

removeAuthConstraint

public SecurityConstraintType<T> removeAuthConstraint()
Removes the auth-constraint element

Specified by:
removeAuthConstraint in interface SecurityConstraintType<T>
Returns:
the current instance of SecurityConstraintType

authConstraint

public AuthConstraintType<SecurityConstraintType<T>> authConstraint()
If not already created, a new auth-constraint element will be created and returned. Otherwise, the existing auth-constraint element will be returned.

Specified by:
authConstraint in interface SecurityConstraintType<T>
Returns:
the node defined for the element auth-constraint

removeUserDataConstraint

public SecurityConstraintType<T> removeUserDataConstraint()
Removes the user-data-constraint element

Specified by:
removeUserDataConstraint in interface SecurityConstraintType<T>
Returns:
the current instance of SecurityConstraintType

userDataConstraint

public UserDataConstraintType<SecurityConstraintType<T>> userDataConstraint()
If not already created, a new user-data-constraint element will be created and returned. Otherwise, the existing user-data-constraint element will be returned.

Specified by:
userDataConstraint in interface SecurityConstraintType<T>
Returns:
the node defined for the element user-data-constraint