|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.hateoas.core.AnnotationAttribute
public class AnnotationAttribute
Simply helper to reference a dedicated attribute of an Annotation.
| Constructor Summary | |
|---|---|
AnnotationAttribute(Class<? extends Annotation> annotationType)
Creates a new AnnotationAttribute to the value attribute of the given Annotation type. |
|
AnnotationAttribute(Class<? extends Annotation> annotationType,
String attributeName)
Creates a new AnnotationAttribute for the given Annotation type and annotation attribute name. |
|
| Method Summary | |
|---|---|
Class<? extends Annotation> |
getAnnotationType()
Returns the annotation type. |
String |
getValueFrom(AnnotatedElement annotatedElement)
Reads the Annotation attribute's value from the given AnnotatedElement. |
String |
getValueFrom(Annotation annotation)
Returns the Annotation attribute's value from the given Annotation. |
String |
getValueFrom(MethodParameter parameter)
Reads the Annotation attribute's value from the given MethodParameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationAttribute(Class<? extends Annotation> annotationType)
AnnotationAttribute to the value attribute of the given Annotation type.
annotationType - must not be null.
public AnnotationAttribute(Class<? extends Annotation> annotationType,
String attributeName)
AnnotationAttribute for the given Annotation type and annotation attribute name.
annotationType - must not be null.attributeName - can be null, defaults to value.| Method Detail |
|---|
public Class<? extends Annotation> getAnnotationType()
public String getValueFrom(MethodParameter parameter)
Annotation attribute's value from the given MethodParameter.
parameter - must not be null.
public String getValueFrom(AnnotatedElement annotatedElement)
Annotation attribute's value from the given AnnotatedElement.
annotatedElement - must not be null.
public String getValueFrom(Annotation annotation)
Annotation attribute's value from the given Annotation.
annotation - must not be null.
|
Spring Hateoas | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||