Class PNMMetadataFormat

  • All Implemented Interfaces:
    javax.imageio.metadata.IIOMetadataFormat

    public class PNMMetadataFormat
    extends javax.imageio.metadata.IIOMetadataFormatImpl
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static PNMMetadataFormat instance  
      private static java.util.Hashtable parents
      The table to link the child to its parent.
      (package private) java.lang.String resourceBaseName  
      • Fields inherited from class javax.imageio.metadata.IIOMetadataFormatImpl

        standardMetadataFormatName
      • Fields inherited from interface javax.imageio.metadata.IIOMetadataFormat

        CHILD_POLICY_ALL, CHILD_POLICY_CHOICE, CHILD_POLICY_EMPTY, CHILD_POLICY_MAX, CHILD_POLICY_REPEAT, CHILD_POLICY_SEQUENCE, CHILD_POLICY_SOME, DATATYPE_BOOLEAN, DATATYPE_DOUBLE, DATATYPE_FLOAT, DATATYPE_INTEGER, DATATYPE_STRING, VALUE_ARBITRARY, VALUE_ENUMERATION, VALUE_LIST, VALUE_NONE, VALUE_RANGE, VALUE_RANGE_MAX_INCLUSIVE, VALUE_RANGE_MAX_INCLUSIVE_MASK, VALUE_RANGE_MIN_INCLUSIVE, VALUE_RANGE_MIN_INCLUSIVE_MASK, VALUE_RANGE_MIN_MAX_INCLUSIVE
    • Constructor Summary

      Constructors 
      Constructor Description
      PNMMetadataFormat()
      Constructs PNMMetadataFormat.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addElements()
      Adds the elements into this format object based on the XML schema and DTD.
      boolean canNodeAppear​(java.lang.String elementName, javax.imageio.ImageTypeSpecifier imageType)  
      static PNMMetadataFormat getInstance()  
      java.lang.String getParent​(java.lang.String elementName)  
      • Methods inherited from class javax.imageio.metadata.IIOMetadataFormatImpl

        addAttribute, addAttribute, addAttribute, addAttribute, addBooleanAttribute, addChildElement, addElement, addElement, addObjectValue, addObjectValue, addObjectValue, addObjectValue, getAttributeDataType, getAttributeDefaultValue, getAttributeDescription, getAttributeEnumerations, getAttributeListMaxLength, getAttributeListMinLength, getAttributeMaxValue, getAttributeMinValue, getAttributeNames, getAttributeValueType, getChildNames, getChildPolicy, getElementDescription, getElementMaxChildren, getElementMinChildren, getObjectArrayMaxLength, getObjectArrayMinLength, getObjectClass, getObjectDefaultValue, getObjectEnumerations, getObjectMaxValue, getObjectMinValue, getObjectValueType, getResourceBaseName, getRootName, getStandardFormatInstance, isAttributeRequired, removeAttribute, removeElement, removeObjectValue, setResourceBaseName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • parents

        private static java.util.Hashtable parents
        The table to link the child to its parent.
      • resourceBaseName

        java.lang.String resourceBaseName
    • Constructor Detail

      • PNMMetadataFormat

        PNMMetadataFormat()
        Constructs PNMMetadataFormat. Calls the super class constructor. Sets the resource base name. Adds the elements into this format object based on the XML schema and DTD.
    • Method Detail

      • addElements

        private void addElements()
        Adds the elements into this format object based on the XML schema and DTD.
      • getParent

        public java.lang.String getParent​(java.lang.String elementName)
      • canNodeAppear

        public boolean canNodeAppear​(java.lang.String elementName,
                                     javax.imageio.ImageTypeSpecifier imageType)
        Specified by:
        canNodeAppear in interface javax.imageio.metadata.IIOMetadataFormat
        Specified by:
        canNodeAppear in class javax.imageio.metadata.IIOMetadataFormatImpl