@NoImplement public interface MetadataType
Modifier and Type | Method and Description |
---|---|
void |
accept(MetadataTypeVisitor visitor)
Dispatches in a reflective way to the method with prefix "visit" with the specific type as argument.
|
<T extends TypeAnnotation> |
getAnnotation(Class<T> annotation)
Returns an
Optional with the annotation of a given type. |
Set<TypeAnnotation> |
getAnnotations()
Returns all the annotations of the type.
|
Optional<String> |
getDescription()
Returns the description if specified.
|
MetadataFormat |
getMetadataFormat()
Return the format of the underlying type system where this type was
mapped from.
|
MetadataFormat getMetadataFormat()
<T extends TypeAnnotation> Optional<T> getAnnotation(Class<T> annotation)
Optional
with the annotation of a given type.annotation
- The type of annotationOptional
with the matched annotation. Optional.empty()
if the annotation was not present.Set<TypeAnnotation> getAnnotations()
Optional<String> getDescription()
void accept(MetadataTypeVisitor visitor)
visitObject(ObjectType objectType)
will be called when this type is an ObjectType.visitor
- The visitorCopyright © 2018. All rights reserved.