public class AbstractResource extends Object implements PathAnnotated, AbstractModelComponent, AnnotatedElement
| Constructor and Description |
|---|
AbstractResource(Class<?> resourceClass)
Creates a new instance of AbstractResource
|
AbstractResource(Class<?> resourceClass,
PathValue uriPath)
Creates a new instance of AbstractResource
|
AbstractResource(String path,
AbstractResource ar)
Create a new instance from an existing AbstractResource but
defining a new path.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypepublic AbstractResource(Class<?> resourceClass)
public AbstractResource(Class<?> resourceClass, PathValue uriPath)
public AbstractResource(String path, AbstractResource ar)
path - the path.ar - the existing abstract resource.public Class<?> getResourceClass()
public boolean isSubResource()
public boolean isRootResource()
public PathValue getPath()
getPath in interface PathAnnotatedpublic List<AbstractResourceConstructor> getConstructors()
public List<AbstractField> getFields()
public List<AbstractSetterMethod> getSetterMethods()
public List<AbstractResourceMethod> getResourceMethods()
public List<AbstractSubResourceMethod> getSubResourceMethods()
public List<AbstractSubResourceLocator> getSubResourceLocators()
public void accept(AbstractModelVisitor visitor)
accept in interface AbstractModelComponentpublic boolean isAnnotationPresent(Class<? extends Annotation> a)
isAnnotationPresent in interface AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> a)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic List<AbstractModelComponent> getComponents()
getComponents in interface AbstractModelComponentCopyright © 2014 Oracle Corporation. All rights reserved.