public abstract class BaseMetadataType extends Object implements MetadataType
| Constructor and Description |
|---|
BaseMetadataType(MetadataFormat metadataFormat,
Collection<TypeAnnotation> annotations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
<T extends TypeAnnotation> |
getAnnotation(Class<T> extension)
Returns all the annotations of a given type
|
Collection<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.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitacceptpublic BaseMetadataType(MetadataFormat metadataFormat, Collection<TypeAnnotation> annotations)
public Collection<TypeAnnotation> getAnnotations()
MetadataTypegetAnnotations in interface MetadataTypepublic MetadataFormat getMetadataFormat()
MetadataTypegetMetadataFormat in interface MetadataTypepublic <T extends TypeAnnotation> Collection<T> getAnnotation(Class<T> extension)
MetadataTypegetAnnotation in interface MetadataTypeextension - The type of annotationpublic Optional<String> getDescription()
MetadataTypegetDescription in interface MetadataTypeCopyright © 2016 MuleSoft, Inc.. All rights reserved.