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

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

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

This class implements the servlet-mappingType xsd type

Original Documentation:



The servlet-mappingType defines a mapping between a
servlet and a url pattern.

Used in: web-app


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

Constructor Summary
ServletMappingTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
           
ServletMappingTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
           
 
Method Summary
 java.lang.String getServletName()
          Returns the servlet-name element
 java.util.List<java.lang.String> getUrlPatternList()
          Returns all url-pattern elements
 ServletMappingType<T> removeAllUrlPattern()
          Removes the url-pattern element
 ServletMappingType<T> removeServletName()
          Removes the servlet-name element
 ServletMappingType<T> setServletName(java.lang.String servletName)
          If not already created, a new servlet-name element with the given value will be created.
 ServletMappingType<T> setUrlPattern(java.lang.String urlPattern)
          Creates a new url-pattern element
 ServletMappingType<T> setUrlPatternList(java.lang.String... values)
          Creates for all String objects representing url-pattern elements, a new url-pattern element
 T up()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletMappingTypeImpl

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

ServletMappingTypeImpl

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

setServletName

public ServletMappingType<T> setServletName(java.lang.String servletName)
If not already created, a new servlet-name element with the given value will be created. Otherwise, the existing servlet-name element will be updated with the given value.

Specified by:
setServletName in interface ServletMappingType<T>
Returns:
the current instance of ServletMappingType

removeServletName

public ServletMappingType<T> removeServletName()
Removes the servlet-name element

Specified by:
removeServletName in interface ServletMappingType<T>
Returns:
the current instance of ServletMappingType

getServletName

public java.lang.String getServletName()
Returns the servlet-name element

Specified by:
getServletName in interface ServletMappingType<T>
Returns:
the node defined for the element servlet-name

setUrlPattern

public ServletMappingType<T> setUrlPattern(java.lang.String urlPattern)
Creates a new url-pattern element

Specified by:
setUrlPattern in interface ServletMappingType<T>
Returns:
the current instance of ServletMappingType

setUrlPatternList

public ServletMappingType<T> setUrlPatternList(java.lang.String... values)
Creates for all String objects representing url-pattern elements, a new url-pattern element

Specified by:
setUrlPatternList in interface ServletMappingType<T>
Parameters:
list - of url-pattern objects
Returns:
the current instance of ServletMappingType

removeAllUrlPattern

public ServletMappingType<T> removeAllUrlPattern()
Removes the url-pattern element

Specified by:
removeAllUrlPattern in interface ServletMappingType<T>
Returns:
the current instance of ServletMappingType

getUrlPatternList

public java.util.List<java.lang.String> getUrlPatternList()
Returns all url-pattern elements

Specified by:
getUrlPatternList in interface ServletMappingType<T>
Returns:
list of url-pattern