org.codehaus.enunciate.contract.jaxrs
Class RootResource

java.lang.Object
  extended by net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
      extended by net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration
          extended by net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclaration
              extended by org.codehaus.enunciate.contract.jaxrs.Resource
                  extended by org.codehaus.enunciate.contract.jaxrs.RootResource
All Implemented Interfaces:
com.sun.mirror.declaration.Declaration, com.sun.mirror.declaration.MemberDeclaration, com.sun.mirror.declaration.TypeDeclaration

public class RootResource
extends Resource

A JAX-RS root resource.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
delegate, javaDoc
 
Constructor Summary
RootResource(com.sun.mirror.declaration.TypeDeclaration delegate)
           
 
Method Summary
 Resource getParent()
          The parent resource.
 java.lang.String getPath()
          The path of the root resource.
protected  java.util.List<ResourceParameter> getResourceParameters(com.sun.mirror.declaration.TypeDeclaration delegate)
          The resource parameters for a root resource include the constructor params.
 boolean isClass()
           
 boolean isInterface()
           
 
Methods inherited from class org.codehaus.enunciate.contract.jaxrs.Resource
getConsumesMime, getProducesMime, getResourceLocators, getResourceMethods, getResourceMethods, getResourceMethods, getResourceParameters, getSubresourceLocators, isOverridden
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclaration
accept, getFields, getFormalTypeParameters, getMethods, getNestedTypes, getPackage, getProperties, getQualifiedName, getSuperinterfaces, isAnnotatedType, isEnum, isPaired
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration
getDeclaringType
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
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
 
Methods inherited from interface com.sun.mirror.declaration.MemberDeclaration
getDeclaringType
 
Methods inherited from interface com.sun.mirror.declaration.Declaration
equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName
 

Constructor Detail

RootResource

public RootResource(com.sun.mirror.declaration.TypeDeclaration delegate)
Method Detail

getPath

public java.lang.String getPath()
The path of the root resource.

Specified by:
getPath in class Resource
Returns:
The path of the root resource.

getParent

public Resource getParent()
Description copied from class: Resource
The parent resource.

Specified by:
getParent in class Resource
Returns:
null

isInterface

public boolean isInterface()
Overrides:
isInterface in class net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclaration

isClass

public boolean isClass()
Overrides:
isClass in class net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclaration

getResourceParameters

protected java.util.List<ResourceParameter> getResourceParameters(com.sun.mirror.declaration.TypeDeclaration delegate)
The resource parameters for a root resource include the constructor params.

Overrides:
getResourceParameters in class Resource
Parameters:
delegate - The declaration.
Returns:
The resource params.