public class AbstractResource extends java.lang.Object implements PathAnnotated, AbstractModelComponent, java.lang.reflect.AnnotatedElement
| Constructor and Description |
|---|
AbstractResource(java.lang.Class<?> resourceClass)
Creates a new instance of AbstractResource
|
AbstractResource(java.lang.Class<?> resourceClass,
PathValue uriPath)
Creates a new instance of AbstractResource
|
AbstractResource(java.lang.String path,
AbstractResource ar)
Create a new instance from an existing AbstractResource but
defining a new path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AbstractModelVisitor visitor) |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> a) |
java.lang.annotation.Annotation[] |
getAnnotations() |
java.util.List<AbstractModelComponent> |
getComponents() |
java.util.List<AbstractResourceConstructor> |
getConstructors() |
java.lang.annotation.Annotation[] |
getDeclaredAnnotations() |
java.util.List<AbstractField> |
getFields() |
PathValue |
getPath() |
java.util.List<java.lang.reflect.Method> |
getPostConstructMethods() |
java.util.List<java.lang.reflect.Method> |
getPreDestroyMethods() |
java.lang.Class<?> |
getResourceClass() |
java.util.List<AbstractResourceMethod> |
getResourceMethods()
Provides a non-null list of resource methods available on the resource
|
java.util.List<AbstractSetterMethod> |
getSetterMethods() |
java.util.List<AbstractSubResourceLocator> |
getSubResourceLocators()
Provides a non-null list of subresource locators available on the resource
|
java.util.List<AbstractSubResourceMethod> |
getSubResourceMethods()
Provides a non-null list of subresource methods available on the resource
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> a) |
boolean |
isRootResource() |
boolean |
isSubResource() |
java.lang.String |
toString() |
public AbstractResource(java.lang.Class<?> resourceClass)
public AbstractResource(java.lang.Class<?> resourceClass,
PathValue uriPath)
public AbstractResource(java.lang.String path,
AbstractResource ar)
path - the path.ar - the existing abstract resource.public java.lang.Class<?> getResourceClass()
public boolean isSubResource()
public boolean isRootResource()
public PathValue getPath()
getPath in interface PathAnnotatedpublic java.util.List<AbstractResourceConstructor> getConstructors()
public java.util.List<AbstractField> getFields()
public java.util.List<AbstractSetterMethod> getSetterMethods()
public java.util.List<AbstractResourceMethod> getResourceMethods()
public java.util.List<AbstractSubResourceMethod> getSubResourceMethods()
public java.util.List<AbstractSubResourceLocator> getSubResourceLocators()
public java.util.List<java.lang.reflect.Method> getPostConstructMethods()
public java.util.List<java.lang.reflect.Method> getPreDestroyMethods()
public void accept(AbstractModelVisitor visitor)
accept in interface AbstractModelComponentpublic boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> a)
isAnnotationPresent in interface java.lang.reflect.AnnotatedElementpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> a)
getAnnotation in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getAnnotations()
getAnnotations in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElementpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<AbstractModelComponent> getComponents()
getComponents in interface AbstractModelComponentCopyright © 2016 Oracle Corporation. All Rights Reserved.