Class XMLNamespaceEnabledImageFlavor


  • public class XMLNamespaceEnabledImageFlavor
    extends RefinedImageFlavor
    Special image flavor subclass which enables the restriction to a particular XML namespace.
    • Field Detail

      • SVG_DOM

        public static final ImageFlavor SVG_DOM
        An XML-based SVG image in form of a W3C DOM instance
      • namespace

        private java.lang.String namespace
    • Constructor Detail

      • XMLNamespaceEnabledImageFlavor

        public XMLNamespaceEnabledImageFlavor​(ImageFlavor parentFlavor,
                                              java.lang.String namespace)
        Constructs a new image flavor.
        Parameters:
        parentFlavor - the parent image flavor
        namespace - an XML namespace URI refining the parent image flavor
    • Method Detail

      • getNamespace

        public java.lang.String getNamespace()
        Returns the XML namespace URI that the image flavor represents if such a namespace URI is available. This is only applicable to images in XML form. Other image types will return null.
        Overrides:
        getNamespace in class RefinedImageFlavor
        Returns:
        the XML or null if no MIME type can be provided (like for in-memory images)
      • equals

        public boolean equals​(java.lang.Object o)
        Description copied from class: ImageFlavor
        Overrides:
        equals in class ImageFlavor