com.sun.jersey.api.model
Class Parameter

java.lang.Object
  extended by com.sun.jersey.api.model.Parameter
All Implemented Interfaces:
AnnotatedElement

public class Parameter
extends Object
implements AnnotatedElement

Abstraction for a method/constructor parameter


Nested Class Summary
static class Parameter.Source
           
 
Constructor Summary
Parameter(Annotation[] as, Annotation a, Parameter.Source source, String sourceName, Type type, Class<?> clazz)
           
Parameter(Annotation[] as, Annotation a, Parameter.Source source, String sourceName, Type type, Class<?> clazz, boolean encoded)
           
Parameter(Annotation[] as, Annotation a, Parameter.Source source, String sourceName, Type type, Class<?> clazz, boolean encoded, String defaultValue)
           
Parameter(Annotation[] as, Annotation a, Parameter.Source source, String sourceName, Type type, Class<?> clazz, String defaultValue)
           
 
Method Summary
 Annotation getAnnotation()
           
<T extends Annotation>
T
getAnnotation(Class<T> annotationType)
           
 Annotation[] getAnnotations()
           
 Annotation[] getDeclaredAnnotations()
           
 String getDefaultValue()
           
 Class<?> getParameterClass()
           
 Type getParameterType()
           
 Parameter.Source getSource()
           
 String getSourceName()
           
 boolean hasDefaultValue()
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
           
 boolean isEncoded()
           
 boolean isQualified()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter(Annotation[] as,
                 Annotation a,
                 Parameter.Source source,
                 String sourceName,
                 Type type,
                 Class<?> clazz)

Parameter

public Parameter(Annotation[] as,
                 Annotation a,
                 Parameter.Source source,
                 String sourceName,
                 Type type,
                 Class<?> clazz,
                 boolean encoded)

Parameter

public Parameter(Annotation[] as,
                 Annotation a,
                 Parameter.Source source,
                 String sourceName,
                 Type type,
                 Class<?> clazz,
                 String defaultValue)

Parameter

public Parameter(Annotation[] as,
                 Annotation a,
                 Parameter.Source source,
                 String sourceName,
                 Type type,
                 Class<?> clazz,
                 boolean encoded,
                 String defaultValue)
Method Detail

getAnnotation

public Annotation getAnnotation()

getSource

public Parameter.Source getSource()

getSourceName

public String getSourceName()

isEncoded

public boolean isEncoded()

hasDefaultValue

public boolean hasDefaultValue()

getDefaultValue

public String getDefaultValue()

getParameterClass

public Class<?> getParameterClass()

getParameterType

public Type getParameterType()

isQualified

public boolean isQualified()

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> annotationType)
Specified by:
getAnnotation in interface AnnotatedElement

getAnnotations

public Annotation[] getAnnotations()
Specified by:
getAnnotations in interface AnnotatedElement

getDeclaredAnnotations

public Annotation[] getDeclaredAnnotations()
Specified by:
getDeclaredAnnotations in interface AnnotatedElement

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
Specified by:
isAnnotationPresent in interface AnnotatedElement


Copyright © 2013 Oracle Corporation. All Rights Reserved.