org.codehaus.enunciate.contract.jaxrs
Class SubResource

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.SubResource
All Implemented Interfaces:
com.sun.mirror.declaration.Declaration, com.sun.mirror.declaration.MemberDeclaration, com.sun.mirror.declaration.TypeDeclaration

public class SubResource
extends Resource

A JAX-RS sub-resource.

Author:
Ryan Heaton

Field Summary
 
Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
delegate, javaDoc
 
Constructor Summary
SubResource(com.sun.mirror.declaration.TypeDeclaration delegate, java.lang.String path, SubResourceLocator locator)
           
 
Method Summary
 SubResourceLocator getLocator()
          The subresource locator.
 Resource getParent()
          The parent resource.
 java.lang.String getPath()
          The path to this subresource.
 java.util.List<ResourceParameter> getResourceParameters()
          The resource parameters.
protected  java.util.List<SubResourceLocator> getSubresourceLocators(com.sun.mirror.declaration.TypeDeclaration delegate)
          Get the sub-resource locators for the specified type.
 
Methods inherited from class org.codehaus.enunciate.contract.jaxrs.Resource
getConsumesMime, getProducesMime, getResourceLocators, getResourceMethods, getResourceMethods, getResourceMethods, getResourceParameters, isOverridden
 
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedTypeDeclaration
accept, getFields, getFormalTypeParameters, getMethods, getNestedTypes, getPackage, getProperties, getQualifiedName, getSuperinterfaces, isAnnotatedType, isClass, isEnum, isInterface, 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

SubResource

public SubResource(com.sun.mirror.declaration.TypeDeclaration delegate,
                   java.lang.String path,
                   SubResourceLocator locator)
Method Detail

getResourceParameters

public java.util.List<ResourceParameter> getResourceParameters()
Description copied from class: Resource
The resource parameters.

Overrides:
getResourceParameters in class Resource
Returns:
The resource parameters.

getSubresourceLocators

protected java.util.List<SubResourceLocator> getSubresourceLocators(com.sun.mirror.declaration.TypeDeclaration delegate)
Description copied from class: Resource
Get the sub-resource locators for the specified type.

Overrides:
getSubresourceLocators in class Resource
Parameters:
delegate - The type.
Returns:
The sub-resource locators.

getPath

public java.lang.String getPath()
The path to this subresource.

Specified by:
getPath in class Resource
Returns:
The path to this subresource.

getLocator

public SubResourceLocator getLocator()
The subresource locator.

Returns:
The subresource locator.

getParent

public Resource getParent()
The parent resource.

Specified by:
getParent in class Resource
Returns:
The parent resource.