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.
|
public 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 PathAnnotated
public 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 AbstractModelComponent
public boolean isAnnotationPresent(Class<? extends Annotation> a)
isAnnotationPresent
in interface AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> a)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public List<AbstractModelComponent> getComponents()
getComponents
in interface AbstractModelComponent
Copyright © 2013 Oracle Corporation. All rights reserved.