Class MetadataExtension


  • public class MetadataExtension
    extends java.lang.Object
    Associates an extension name and a metadata.
    • Field Detail

      • metadata

        private final Metadata metadata
        The mapped metadata.
      • name

        private final java.lang.String name
        The name of the extension.
    • Constructor Detail

      • MetadataExtension

        public MetadataExtension​(java.lang.String name,
                                 Metadata metadata)
        Constructor.
        Parameters:
        name - The extension name.
        metadata - The metadata.
    • Method Detail

      • getCharacterSet

        public CharacterSet getCharacterSet()
        Returns the character set.
        Returns:
        the character set.
      • getEncoding

        public Encoding getEncoding()
        Returns the encoding.
        Returns:
        the encoding.
      • getLanguage

        public Language getLanguage()
        Returns the language.
        Returns:
        the language.
      • getMediaType

        public MediaType getMediaType()
        Returns the media type.
        Returns:
        the media type.
      • getMetadata

        public Metadata getMetadata()
        Returns the metadata.
        Returns:
        the metadata.
      • getName

        public java.lang.String getName()
        Returns the extension name.
        Returns:
        The extension name.