Interface MetadataType

    • Method Detail

      • getMetadataFormat

        MetadataFormat getMetadataFormat()
        Return the format of the underlying type system where this type was mapped from. I.E XML
        Returns:
        The format.
      • getAnnotation

        <T extends TypeAnnotationOptional<T> getAnnotation​(Class<T> annotation)
        Returns an Optional with the annotation of a given type.
        Parameters:
        annotation - The type of annotation
        Returns:
        Optional with the matched annotation. Optional.empty() if the annotation was not present.
      • getAnnotations

        Set<TypeAnnotation> getAnnotations()
        Returns all the annotations of the type.
        Returns:
        The collection of annotations
      • getDescription

        Optional<String> getDescription()
        Returns the description if specified.
        Returns:
        The description if any.
      • accept

        void accept​(MetadataTypeVisitor visitor)
        Dispatches in a reflective way to the method with prefix "visit" with the specific type as argument. Example visitObject(ObjectType objectType) will be called when this type is an ObjectType.
        Parameters:
        visitor - The visitor