public class TypeWrapper extends Object implements Type
| Constructor and Description |
|---|
TypeWrapper(Class<?> aClass) |
| Modifier and Type | Method and Description |
|---|---|
List<FieldElement> |
getAnnotatedFields(Class<? extends Annotation>... annotations) |
<A extends Annotation> |
getAnnotation(Class<A> annotationClass)
Retrieves an annotation of the
WithAnnotations component |
Annotation[] |
getAnnotations() |
Class<?> |
getDeclaringClass() |
List<FieldElement> |
getFields() |
String |
getName()
Returns the component's name
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlias, getDescriptionisAnnotatedWithpublic TypeWrapper(Class<?> aClass)
public Annotation[] getAnnotations()
getAnnotations in interface WithAnnotationsWithAnnotations component is annotated withpublic <A extends Annotation> Optional<A> getAnnotation(Class<A> annotationClass)
WithAnnotations componentgetAnnotation in interface WithAnnotationsA - The annotation typeannotationClass - Of the annotation to retrieveOptional annotation to retrievepublic List<FieldElement> getFields()
getFields in interface TypeFieldElement that represent the list of Field that the Type declarespublic List<FieldElement> getAnnotatedFields(Class<? extends Annotation>... annotations)
getAnnotatedFields in interface Typeannotations - classes that the fields of this type should be annotated withFieldElement that represent the list of Field that the Type declares and are
annotated with the given annotationpublic Class<?> getDeclaringClass()
getDeclaringClass in interface WithDeclaringClassType representsCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.