org.codehaus.enunciate.contract.jaxrs
Class ResourceParameter

java.lang.Object
  extended by net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
      extended by org.codehaus.enunciate.contract.jaxrs.ResourceParameter
All Implemented Interfaces:
com.sun.mirror.declaration.Declaration
Direct Known Subclasses:
ExplicitResourceParameter

public class ResourceParameter
extends net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration

Parameter for a JAX-RS resource.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
delegate, javaDoc
 
Constructor Summary
ResourceParameter(com.sun.mirror.declaration.Declaration declaration)
           
 
Method Summary
 java.lang.String getDefaultValue()
          The default value.
 java.lang.String getParameterName()
          The parameter name.
 java.lang.String getTypeName()
          The type of the parameter.
 XmlType getXmlType()
          The xml type of the parameter, if applicable.
 boolean isCookieParam()
          Whether this is a cookie parameter.
 boolean isFormParam()
          Whether this is a form parameter.
 boolean isHeaderParam()
          Whether this is a header parameter.
 boolean isMatrixParam()
          Whether this is a matrix parameter.
 boolean isPathParam()
          Whether this is a path parameter.
 boolean isQueryParam()
          Whether this is a query parameter.
static boolean isResourceParameter(com.sun.mirror.declaration.Declaration candidate)
           
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
accept, constructJavaDoc, equals, getAnnotation, getAnnotationMirrors, getAnnotations, getDelegate, getDocComment, getDocValue, getJavaDoc, getModifiers, getPosition, getSimpleName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceParameter

public ResourceParameter(com.sun.mirror.declaration.Declaration declaration)
Method Detail

isResourceParameter

public static boolean isResourceParameter(com.sun.mirror.declaration.Declaration candidate)

getParameterName

public java.lang.String getParameterName()
The parameter name.

Returns:
The parameter name.

getDefaultValue

public java.lang.String getDefaultValue()
The default value.

Returns:
The default value.

isMatrixParam

public boolean isMatrixParam()
Whether this is a matrix parameter.

Returns:
Whether this is a matrix parameter.

isQueryParam

public boolean isQueryParam()
Whether this is a query parameter.

Returns:
Whether this is a query parameter.

isPathParam

public boolean isPathParam()
Whether this is a path parameter.

Returns:
Whether this is a path parameter.

isCookieParam

public boolean isCookieParam()
Whether this is a cookie parameter.

Returns:
Whether this is a cookie parameter.

isHeaderParam

public boolean isHeaderParam()
Whether this is a header parameter.

Returns:
Whether this is a header parameter.

isFormParam

public boolean isFormParam()
Whether this is a form parameter.

Returns:
Whether this is a form parameter.

getTypeName

public java.lang.String getTypeName()
The type of the parameter.

Returns:
The type of the parameter.

getXmlType

public XmlType getXmlType()
The xml type of the parameter, if applicable.

Returns:
The xml type of the parameter, if applicable.