Class XMLNamespaceEnabledImageFlavor


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

    • SVG_DOM

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

    • XMLNamespaceEnabledImageFlavor

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

    • getNamespace

      public 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(Object o)
      Description copied from class: ImageFlavor
      Overrides:
      equals in class ImageFlavor
    • hashCode

      public int hashCode()
      Description copied from class: ImageFlavor
      Overrides:
      hashCode in class ImageFlavor