Top Fields Constructors Methods
com.sun.imageio.plugins.common

public Class StandardMetadataFormat

extends IIOMetadataFormatImpl
Class Inheritance
Imports
java.util.ArrayList, .List, javax.imageio.ImageTypeSpecifier, javax.imageio.metadata.IIOMetadataFormatImpl

Field Summary

Inherited from javax.imageio.metadata.IIOMetadataFormatImpl:
standardMetadataFormatName

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
addSingleAttributeElement(String elementName, String parentName, int dataType)

public boolean
canNodeAppear(String
the name of the element being queried.
elementName
,
ImageTypeSpecifier
an ImageTypeSpecifier indicating the type of the image that will be associated with the metadata.
imageType
)

Implements abstract javax.imageio.metadata.IIOMetadataFormatImpl.canNodeAppear.

Implements javax.imageio.metadata.IIOMetadataFormat.canNodeAppear.

Returns true if the element (and the subtree below it) is allowed to appear in a metadata document for an image of the given type, defined by an ImageTypeSpecifier.

Inherited from javax.imageio.metadata.IIOMetadataFormatImpl:
addAttributeaddAttributeaddAttributeaddAttributeaddBooleanAttributeaddChildElementaddElementaddElementaddObjectValueaddObjectValueaddObjectValueaddObjectValuegetAttributeDataTypegetAttributeDefaultValuegetAttributeDescriptiongetAttributeEnumerationsgetAttributeListMaxLengthgetAttributeListMinLengthgetAttributeMaxValuegetAttributeMinValuegetAttributeNamesgetAttributeValueTypegetChildNamesgetChildPolicygetElementDescriptiongetElementMaxChildrengetElementMinChildrengetObjectArrayMaxLengthgetObjectArrayMinLengthgetObjectClassgetObjectDefaultValuegetObjectEnumerationsgetObjectMaxValuegetObjectMinValuegetObjectValueTypegetResourceBaseNamegetRootNamegetStandardFormatInstanceisAttributeRequiredremoveAttributeremoveElementremoveObjectValuesetResourceBaseName

Constructor Detail

StandardMetadataFormatback to summary
public StandardMetadataFormat()

Method Detail

addSingleAttributeElementback to summary
private void addSingleAttributeElement(String elementName, String parentName, int dataType)
canNodeAppearback to summary
public boolean canNodeAppear(String elementName, ImageTypeSpecifier imageType)

Implements abstract javax.imageio.metadata.IIOMetadataFormatImpl.canNodeAppear.

Implements javax.imageio.metadata.IIOMetadataFormat.canNodeAppear.

Doc from javax.imageio.metadata.IIOMetadataFormat.canNodeAppear.

Returns true if the element (and the subtree below it) is allowed to appear in a metadata document for an image of the given type, defined by an ImageTypeSpecifier. For example, a metadata document format might contain an element that describes the primary colors of the image, which would not be allowed when writing a grayscale image.

Parameters
elementName:String

the name of the element being queried.

imageType:ImageTypeSpecifier

an ImageTypeSpecifier indicating the type of the image that will be associated with the metadata.

Returns:boolean

true if the node is meaningful for images of the given type.