public class Parameter extends Parameter implements AnnotatedElement
Modifier and Type | Class and Description |
---|---|
static class |
Parameter.BeanParameter
Bean Parameter class represents a parameter annotated with
BeanParam which in fact represents
additional set of parameters. |
static class |
Parameter.ServerParameterService |
Parameter.ParamAnnotationHelper<T extends Annotation>, Parameter.ParamCreationFactory<PARAMETER extends Parameter>, Parameter.ParameterService, Parameter.Source
Modifier | Constructor and Description |
---|---|
protected |
Parameter(Annotation[] markers,
Annotation marker,
Parameter.Source source,
String sourceName,
Class<?> rawType,
Type type,
boolean encoded,
String defaultValue) |
Modifier and Type | Method and Description |
---|---|
static <PARAMETER extends Parameter> |
create(Class concreteClass,
Class declaringClass,
boolean encodeByDefault,
Class<?> rawType,
Type type,
Annotation[] annotations)
Create a parameter model.
|
static <PARAMETER extends Parameter> |
create(Class concreteClass,
Class declaringClass,
Constructor<?> ctor,
boolean keepEncoded)
Create a list of parameter models for a given resource method handler
injectable constructor.
|
static <PARAMETER extends Parameter> |
create(Class concreteClass,
Class declaringClass,
Method javaMethod,
boolean keepEncoded)
Create a list of parameter models for a given Java method handling a resource
method, sub-resource method or a sub-resource locator.
|
protected static <PARAMETER extends Parameter> |
createList(Class concreteClass,
Class declaringClass,
boolean keepEncoded,
Class[] parameterTypes,
Type[] genericParameterTypes,
Annotation[][] parameterAnnotations,
Class<?> parameterClass) |
boolean |
isQualified()
Check if the parameter is
qualified . |
static Parameter |
overrideSource(Parameter original,
Parameter.Source source)
Create new parameter model by overriding
source
of the original parameter model. |
create, createList, createList, equals, getAnnotation, getAnnotations, getDeclaredAnnotations, getDefaultValue, getRawType, getSource, getSourceAnnotation, getSourceName, getType, hasDefaultValue, hashCode, isAnnotationPresent, isEncoded, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
protected Parameter(Annotation[] markers, Annotation marker, Parameter.Source source, String sourceName, Class<?> rawType, Type type, boolean encoded, String defaultValue)
public static <PARAMETER extends Parameter> PARAMETER create(Class concreteClass, Class declaringClass, boolean encodeByDefault, Class<?> rawType, Type type, Annotation[] annotations)
concreteClass
- concrete resource method handler implementation class.declaringClass
- declaring class of the method the parameter belongs to or field that this parameter represents.encodeByDefault
- flag indicating whether the parameter should be encoded by default or not. Note that a presence
of Encoded
annotation in the list of the parameter annotations
will override any
value set in the flag to true
.rawType
- raw Java parameter type.type
- generic Java parameter type.annotations
- parameter annotations.protected static <PARAMETER extends Parameter> List<PARAMETER> createList(Class concreteClass, Class declaringClass, boolean keepEncoded, Class[] parameterTypes, Type[] genericParameterTypes, Annotation[][] parameterAnnotations, Class<?> parameterClass)
public static <PARAMETER extends Parameter> List<PARAMETER> create(Class concreteClass, Class declaringClass, Constructor<?> ctor, boolean keepEncoded)
concreteClass
- concrete resource method handler implementation class.declaringClass
- class where the method has been declared.ctor
- injectable constructor of the resource method handler.keepEncoded
- set to true
to disable automatic decoding
of all the constructor parameters. (See Encoded
.public static <PARAMETER extends Parameter> List<PARAMETER> create(Class concreteClass, Class declaringClass, Method javaMethod, boolean keepEncoded)
concreteClass
- concrete resource method handler implementation class.declaringClass
- the class declaring the handling Java method.javaMethod
- Java method handling a resource method, sub-resource
method or a sub-resource locator.keepEncoded
- set to true
to disable automatic decoding
of all the method parameters. (See Encoded
.public static Parameter overrideSource(Parameter original, Parameter.Source source)
source
of the original parameter model.original
- original parameter model.source
- new overriding parameter source.public boolean isQualified()
qualified
.isQualified
in class Parameter
true
if the parameter is qualified, false
otherwise.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.