net.sourceforge.ccxjc.it.model.pkg.indexed.valueclass.javaee
Class ServletMappingType

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.pkg.indexed.valueclass.javaee.ServletMappingType
All Implemented Interfaces:
Serializable, Cloneable

public class ServletMappingType
extends Object
implements Serializable, Cloneable

The servlet-mappingType defines a mapping between a servlet and a url pattern. Used in: web-app

Java class for servlet-mappingType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="servlet-mappingType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="servlet-name" type="{http://java.sun.com/xml/ns/javaee}servlet-nameType"/>
         <element name="url-pattern" type="{http://java.sun.com/xml/ns/javaee}url-patternType" maxOccurs="unbounded"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  String id
           
protected  ServletNameType servletName
           
protected  UrlPatternType[] urlPattern
           
 
Constructor Summary
ServletMappingType()
          Creates a new net.sourceforge.ccxjc.it.model.pkg.indexed.valueclass.javaee.ServletMappingType instance.
ServletMappingType(ServletMappingType o)
          Creates a new net.sourceforge.ccxjc.it.model.pkg.indexed.valueclass.javaee.ServletMappingType instance by copying a given instance.
 
Method Summary
 ServletMappingType clone()
          Creates and returns a copy of this object.
 String getId()
          Gets the value of the id property.
 ServletNameType getServletName()
          Gets the value of the servletName property.
 UrlPatternType[] getUrlPattern()
           
 UrlPatternType getUrlPattern(int idx)
           
 int getUrlPatternLength()
           
 void setId(String value)
          Sets the value of the id property.
 void setServletName(ServletNameType value)
          Sets the value of the servletName property.
 UrlPatternType setUrlPattern(int idx, UrlPatternType value)
           
 void setUrlPattern(UrlPatternType[] values)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servletName

protected ServletNameType servletName

urlPattern

protected UrlPatternType[] urlPattern

id

protected String id
Constructor Detail

ServletMappingType

public ServletMappingType()
Creates a new net.sourceforge.ccxjc.it.model.pkg.indexed.valueclass.javaee.ServletMappingType instance.


ServletMappingType

public ServletMappingType(ServletMappingType o)
Creates a new net.sourceforge.ccxjc.it.model.pkg.indexed.valueclass.javaee.ServletMappingType instance by copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getServletName

public ServletNameType getServletName()
Gets the value of the servletName property.

Returns:
possible object is ServletNameType

setServletName

public void setServletName(ServletNameType value)
Sets the value of the servletName property.

Parameters:
value - allowed object is ServletNameType

getUrlPattern

public UrlPatternType[] getUrlPattern()
Returns:
array of UrlPatternType

getUrlPattern

public UrlPatternType getUrlPattern(int idx)
Returns:
one of UrlPatternType

getUrlPatternLength

public int getUrlPatternLength()

setUrlPattern

public void setUrlPattern(UrlPatternType[] values)
Parameters:
values - allowed objects are UrlPatternType

setUrlPattern

public UrlPatternType setUrlPattern(int idx,
                                    UrlPatternType value)
Parameters:
value - allowed object is UrlPatternType

getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

clone

public ServletMappingType clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.


Copyright © 2009 The CC-XJC Community. All Rights Reserved.