Class PNMMetadataFormat
- java.lang.Object
-
- javax.imageio.metadata.IIOMetadataFormatImpl
-
- com.github.jaiimageio.impl.plugins.pnm.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 PNMMetadataFormatinstanceprivate static java.util.HashtableparentsThe table to link the child to its parent.(package private) java.lang.StringresourceBaseName-
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()ConstructsPNMMetadataFormat.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddElements()Adds the elements into this format object based on the XML schema and DTD.booleancanNodeAppear(java.lang.String elementName, javax.imageio.ImageTypeSpecifier imageType)static PNMMetadataFormatgetInstance()java.lang.StringgetParent(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
-
-
-
-
Field Detail
-
parents
private static java.util.Hashtable parents
The table to link the child to its parent.
-
instance
private static PNMMetadataFormat instance
-
resourceBaseName
java.lang.String resourceBaseName
-
-
Method Detail
-
getInstance
public static PNMMetadataFormat getInstance()
-
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:
canNodeAppearin interfacejavax.imageio.metadata.IIOMetadataFormat- Specified by:
canNodeAppearin classjavax.imageio.metadata.IIOMetadataFormatImpl
-
-