javax.imageio.metadata
Class IIOMetadataFormatImpl

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.imageio.metadata.IIOMetadataFormatImpl
All Implemented Interfaces:
IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat

public abstract class IIOMetadataFormatImpl
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat

A concrete class providing a reusable implementation of the IIOMetadataFormat interface. In addition, a static instance representing the standard, plug-in neutral javax_imageio_1.0 format is provided by the getStandardFormatInstance method.

In order to supply localized descriptions of elements and attributes, a ResourceBundle with a base name of this.getClass().getName() + "Resources" should be supplied via the usual mechanism used by ResourceBundle.getBundle. Briefly, the subclasser supplies one or more additional classes according to a naming convention (by default, the fully-qualified name of the subclass extending IIMetadataFormatImpl, plus the string "Resources", plus the country, language, and variant codes separated by underscores). At run time, calls to getElementDescription or getAttributeDescription will attempt to load such classes dynamically according to the supplied locale, and will use either the element name, or the element name followed by a '/' character followed by the attribute name as a key. This key will be supplied to the ResourceBundle's getString method, and the resulting localized description of the node or attribute is returned.

The subclass may supply a different base name for the resource bundles using the setResourceBaseName method.

A subclass may choose its own localization mechanism, if so desired, by overriding the supplied implementations of getElementDescription and getAttributeDescription.

See Also:
ResourceBundle.getBundle(String,Locale) sample code for java.util.ResourceBundle.getBundle(java.lang.String, java.util.Locale) definition code for java.util.ResourceBundle.getBundle(java.lang.String, java.util.Locale)

Field Summary
static String sample code for java.lang.String definition code for java.lang.String standardMetadataFormatName sample code for javax.imageio.metadata.IIOMetadataFormatImpl.standardMetadataFormatName definition code for javax.imageio.metadata.IIOMetadataFormatImpl.standardMetadataFormatName
          A String constant containing the standard format name, "javax_imageio_1.0".
 
Fields inherited from interface javax.imageio.metadata.IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
CHILD_POLICY_ALL sample code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_ALL definition code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_ALL , CHILD_POLICY_CHOICE sample code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_CHOICE definition code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_CHOICE , CHILD_POLICY_EMPTY sample code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_EMPTY definition code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_EMPTY , CHILD_POLICY_MAX sample code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_MAX definition code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_MAX , CHILD_POLICY_REPEAT sample code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_REPEAT definition code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_REPEAT , CHILD_POLICY_SEQUENCE sample code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_SEQUENCE definition code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_SEQUENCE , CHILD_POLICY_SOME sample code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_SOME definition code for javax.imageio.metadata.IIOMetadataFormat.CHILD_POLICY_SOME , DATATYPE_BOOLEAN sample code for javax.imageio.metadata.IIOMetadataFormat.DATATYPE_BOOLEAN definition code for javax.imageio.metadata.IIOMetadataFormat.DATATYPE_BOOLEAN , DATATYPE_DOUBLE sample code for javax.imageio.metadata.IIOMetadataFormat.DATATYPE_DOUBLE definition code for javax.imageio.metadata.IIOMetadataFormat.DATATYPE_DOUBLE , DATATYPE_FLOAT sample code for javax.imageio.metadata.IIOMetadataFormat.DATATYPE_FLOAT definition code for javax.imageio.metadata.IIOMetadataFormat.DATATYPE_FLOAT , DATATYPE_INTEGER sample code for javax.imageio.metadata.IIOMetadataFormat.DATATYPE_INTEGER definition code for javax.imageio.metadata.IIOMetadataFormat.DATATYPE_INTEGER , DATATYPE_STRING sample code for javax.imageio.metadata.IIOMetadataFormat.DATATYPE_STRING definition code for javax.imageio.metadata.IIOMetadataFormat.DATATYPE_STRING , VALUE_ARBITRARY sample code for javax.imageio.metadata.IIOMetadataFormat.VALUE_ARBITRARY definition code for javax.imageio.metadata.IIOMetadataFormat.VALUE_ARBITRARY , VALUE_ENUMERATION sample code for javax.imageio.metadata.IIOMetadataFormat.VALUE_ENUMERATION definition code for javax.imageio.metadata.IIOMetadataFormat.VALUE_ENUMERATION , VALUE_LIST sample code for javax.imageio.metadata.IIOMetadataFormat.VALUE_LIST definition code for javax.imageio.metadata.IIOMetadataFormat.VALUE_LIST , VALUE_NONE sample code for javax.imageio.metadata.IIOMetadataFormat.VALUE_NONE definition code for javax.imageio.metadata.IIOMetadataFormat.VALUE_NONE , VALUE_RANGE sample code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE definition code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE , VALUE_RANGE_MAX_INCLUSIVE sample code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE_MAX_INCLUSIVE definition code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE_MAX_INCLUSIVE , VALUE_RANGE_MAX_INCLUSIVE_MASK sample code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE_MAX_INCLUSIVE_MASK definition code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE_MAX_INCLUSIVE_MASK , VALUE_RANGE_MIN_INCLUSIVE sample code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE_MIN_INCLUSIVE definition code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE_MIN_INCLUSIVE , VALUE_RANGE_MIN_INCLUSIVE_MASK sample code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE_MIN_INCLUSIVE_MASK definition code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE_MIN_INCLUSIVE_MASK , VALUE_RANGE_MIN_MAX_INCLUSIVE sample code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE_MIN_MAX_INCLUSIVE definition code for javax.imageio.metadata.IIOMetadataFormat.VALUE_RANGE_MIN_MAX_INCLUSIVE
 
Constructor Summary
IIOMetadataFormatImpl sample code for javax.imageio.metadata.IIOMetadataFormatImpl.IIOMetadataFormatImpl(java.lang.String, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.IIOMetadataFormatImpl(java.lang.String, int) (String sample code for java.lang.String definition code for java.lang.String  rootName, int childPolicy)
          Constructs a blank IIOMetadataFormatImpl instance, with a given root element name and child policy (other than CHILD_POLICY_REPEAT).
IIOMetadataFormatImpl sample code for javax.imageio.metadata.IIOMetadataFormatImpl.IIOMetadataFormatImpl(java.lang.String, int, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.IIOMetadataFormatImpl(java.lang.String, int, int) (String sample code for java.lang.String definition code for java.lang.String  rootName, int minChildren, int maxChildren)
          Constructs a blank IIOMetadataFormatImpl instance, with a given root element name and a child policy of CHILD_POLICY_REPEAT.
 
Method Summary
protected  void addAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, int, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, int, int) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName, int dataType, boolean required, int listMinLength, int listMaxLength)
          Adds a new attribute to a previously defined element that will be defined by a list of values.
protected  void addAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName, int dataType, boolean required, String sample code for java.lang.String definition code for java.lang.String  defaultValue)
          Adds a new attribute to a previously defined element that may be set to an arbitrary value.
protected  void addAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String, java.util.List) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String, java.util.List) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName, int dataType, boolean required, String sample code for java.lang.String definition code for java.lang.String  defaultValue, List sample code for java.util.List definition code for java.util.List <String sample code for java.lang.String definition code for java.lang.String > enumeratedValues)
          Adds a new attribute to a previously defined element that will be defined by a set of enumerated values.
protected  void addAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String, java.lang.String, java.lang.String, boolean, boolean) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String, java.lang.String, java.lang.String, boolean, boolean) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName, int dataType, boolean required, String sample code for java.lang.String definition code for java.lang.String  defaultValue, String sample code for java.lang.String definition code for java.lang.String  minValue, String sample code for java.lang.String definition code for java.lang.String  maxValue, boolean minInclusive, boolean maxInclusive)
          Adds a new attribute to a previously defined element that will be defined by a range of values.
protected  void addBooleanAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addBooleanAttribute(java.lang.String, java.lang.String, boolean, boolean) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addBooleanAttribute(java.lang.String, java.lang.String, boolean, boolean) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName, boolean hasDefaultValue, boolean defaultValue)
          Adds a new attribute to a previously defined element that will be defined by the enumerated values TRUE and FALSE, with a datatype of DATATYPE_BOOLEAN.
protected  void addChildElement sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addChildElement(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addChildElement(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  parentName)
          Adds an existing element to the list of legal children for a given parent node type.
protected  void addElement sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addElement(java.lang.String, java.lang.String, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addElement(java.lang.String, java.lang.String, int) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  parentName, int childPolicy)
          Adds a new element type to this metadata document format with a child policy other than CHILD_POLICY_REPEAT.
protected  void addElement sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addElement(java.lang.String, java.lang.String, int, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addElement(java.lang.String, java.lang.String, int, int) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  parentName, int minChildren, int maxChildren)
          Adds a new element type to this metadata document format with a child policy of CHILD_POLICY_REPEAT.
protected  void addObjectValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addObjectValue(java.lang.String, java.lang.Class, int, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addObjectValue(java.lang.String, java.lang.Class, int, int) (String sample code for java.lang.String definition code for java.lang.String  elementName, Class sample code for java.lang.Class definition code for java.lang.Class <?> classType, int arrayMinLength, int arrayMaxLength)
          Allows an Object reference of a given class type to be stored in nodes implementing the named element.
protected
<T> void
addObjectValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addObjectValue(java.lang.String, java.lang.Class, boolean, T) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addObjectValue(java.lang.String, java.lang.Class, boolean, T) (String sample code for java.lang.String definition code for java.lang.String  elementName, Class sample code for java.lang.Class definition code for java.lang.Class <T> classType, boolean required, T defaultValue)
          Allows an Object reference of a given class type to be stored in nodes implementing the named element.
protected
<T> void
addObjectValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addObjectValue(java.lang.String, java.lang.Class, boolean, T, java.util.List) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addObjectValue(java.lang.String, java.lang.Class, boolean, T, java.util.List) (String sample code for java.lang.String definition code for java.lang.String  elementName, Class sample code for java.lang.Class definition code for java.lang.Class <T> classType, boolean required, T defaultValue, List sample code for java.util.List definition code for java.util.List <? extends T> enumeratedValues)
          Allows an Object reference of a given class type to be stored in nodes implementing the named element.
protected
<T extends Object sample code for java.lang.Object definition code for java.lang.Object & Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <? super T>>
void
addObjectValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addObjectValue(java.lang.String, java.lang.Class, T, java.lang.Comparable, java.lang.Comparable, boolean, boolean) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addObjectValue(java.lang.String, java.lang.Class, T, java.lang.Comparable, java.lang.Comparable, boolean, boolean) (String sample code for java.lang.String definition code for java.lang.String  elementName, Class sample code for java.lang.Class definition code for java.lang.Class <T> classType, T defaultValue, Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <? super T> minValue, Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <? super T> maxValue, boolean minInclusive, boolean maxInclusive)
          Allows an Object reference of a given class type to be stored in nodes implementing the named element.
abstract  boolean canNodeAppear sample code for javax.imageio.metadata.IIOMetadataFormatImpl.canNodeAppear(java.lang.String, javax.imageio.ImageTypeSpecifier) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.canNodeAppear(java.lang.String, javax.imageio.ImageTypeSpecifier) (String sample code for java.lang.String definition code for java.lang.String  elementName, ImageTypeSpecifier sample code for javax.imageio.ImageTypeSpecifier definition code for javax.imageio.ImageTypeSpecifier  imageType)
          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.
 int getAttributeDataType sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDataType(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDataType(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName)
          Returns one of the constants starting with DATATYPE_, indicating the format and interpretation of the value of the given attribute within th enamed element.
 String sample code for java.lang.String definition code for java.lang.String getAttributeDefaultValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDefaultValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDefaultValue(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName)
          Returns the default value of the named attribute, if it is not explictly present within the named element, as a String, or null if no default value is available.
 String sample code for java.lang.String definition code for java.lang.String getAttributeDescription sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDescription(java.lang.String, java.lang.String, java.util.Locale) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDescription(java.lang.String, java.lang.String, java.util.Locale) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName, Locale sample code for java.util.Locale definition code for java.util.Locale  locale)
          Returns a String containing a description of the named attribute, or null.
 String sample code for java.lang.String definition code for java.lang.String [] getAttributeEnumerations sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeEnumerations(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeEnumerations(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName)
          Returns an array of Strings containing the legal enumerated values for the given attribute within the named element.
 int getAttributeListMaxLength sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeListMaxLength(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeListMaxLength(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName)
          Returns the maximum number of list items that may be used to define this attribute.
 int getAttributeListMinLength sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeListMinLength(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeListMinLength(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName)
          Returns the minimum number of list items that may be used to define this attribute.
 String sample code for java.lang.String definition code for java.lang.String getAttributeMaxValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeMaxValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeMaxValue(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName)
          Returns the maximum legal value for the attribute.
 String sample code for java.lang.String definition code for java.lang.String getAttributeMinValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeMinValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeMinValue(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName)
          Returns the minimum legal value for the attribute.
 String sample code for java.lang.String definition code for java.lang.String [] getAttributeNames sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeNames(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeNames(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns an array of Strings listing the names of the attributes that may be associated with the named element.
 int getAttributeValueType sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeValueType(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeValueType(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName)
          Returns one of the constants starting with VALUE_, indicating whether the values of the given attribute within the named element are arbitrary, constrained to lie within a specified range, constrained to be one of a set of enumerated values, or are a whitespace-separated list of arbitrary values.
 String sample code for java.lang.String definition code for java.lang.String [] getChildNames sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getChildNames(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getChildNames(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns an array of Strings indicating the names of the element which are allowed to be children of the named element, in the order in which they should appear.
 int getChildPolicy sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getChildPolicy(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getChildPolicy(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns one of the constants starting with CHILD_POLICY_, indicating the legal pattern of children for the named element.
 String sample code for java.lang.String definition code for java.lang.String getElementDescription sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementDescription(java.lang.String, java.util.Locale) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementDescription(java.lang.String, java.util.Locale) (String sample code for java.lang.String definition code for java.lang.String  elementName, Locale sample code for java.util.Locale definition code for java.util.Locale  locale)
          Returns a String containing a description of the named element, or null.
 int getElementMaxChildren sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementMaxChildren(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementMaxChildren(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns the maximum number of children of the named element with child policy CHILD_POLICY_REPEAT.
 int getElementMinChildren sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementMinChildren(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementMinChildren(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns the minimum number of children of the named element with child policy CHILD_POLICY_REPEAT.
 int getObjectArrayMaxLength sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectArrayMaxLength(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectArrayMaxLength(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns the maximum number of array elements that may be used to define the Object reference within the named element.
 int getObjectArrayMinLength sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectArrayMinLength(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectArrayMinLength(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns the minimum number of array elements that may be used to define the Object reference within the named element.
 Class sample code for java.lang.Class definition code for java.lang.Class <?> getObjectClass sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectClass(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectClass(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns the Class type of the Object reference stored within the element.
 Object sample code for java.lang.Object definition code for java.lang.Object getObjectDefaultValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectDefaultValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectDefaultValue(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns an Objects containing the default value for the Object reference within the named element.
 Object sample code for java.lang.Object definition code for java.lang.Object [] getObjectEnumerations sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectEnumerations(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectEnumerations(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns an array of Objects containing the legal enumerated values for the Object reference within the named element.
 Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <?> getObjectMaxValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectMaxValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectMaxValue(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns the maximum legal value for the Object reference within the named element.
 Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <?> getObjectMinValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectMinValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectMinValue(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns the minimum legal value for the Object reference within the named element.
 int getObjectValueType sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectValueType(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectValueType(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Returns one of the enumerated values starting with VALUE_, indicating the type of values (enumeration, range, or array) that are allowed for the Object reference.
protected  String sample code for java.lang.String definition code for java.lang.String getResourceBaseName sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getResourceBaseName() definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getResourceBaseName() ()
          Returns the currently set base name for locating ResourceBundles.
 String sample code for java.lang.String definition code for java.lang.String getRootName sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getRootName() definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getRootName() ()
          Returns the name of the root element of the format.
static IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat getStandardFormatInstance sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getStandardFormatInstance() definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getStandardFormatInstance() ()
          Returns an IIOMetadataFormat object describing the standard, plug-in neutral javax.imageio_1.0 metadata document format described in the comment of the javax.imageio.metadata package.
 boolean isAttributeRequired sample code for javax.imageio.metadata.IIOMetadataFormatImpl.isAttributeRequired(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.isAttributeRequired(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName)
          Returns true if the named attribute must be present within the named element.
protected  void removeAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.removeAttribute(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.removeAttribute(java.lang.String, java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName, String sample code for java.lang.String definition code for java.lang.String  attrName)
          Removes an attribute from a previously defined element.
protected  void removeElement sample code for javax.imageio.metadata.IIOMetadataFormatImpl.removeElement(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.removeElement(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Removes an element from the format.
protected  void removeObjectValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.removeObjectValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.removeObjectValue(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  elementName)
          Disallows an Object reference from being stored in nodes implementing the named element.
protected  void setResourceBaseName sample code for javax.imageio.metadata.IIOMetadataFormatImpl.setResourceBaseName(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.setResourceBaseName(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  resourceBaseName)
          Sets a new base name for locating ResourceBundles containing descriptions of elements and attributes for this format.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

standardMetadataFormatName sample code for javax.imageio.metadata.IIOMetadataFormatImpl.standardMetadataFormatName

public static final String sample code for java.lang.String definition code for java.lang.String  standardMetadataFormatName
A String constant containing the standard format name, "javax_imageio_1.0".

See Also:
Constant Field Values
Constructor Detail

IIOMetadataFormatImpl sample code for javax.imageio.metadata.IIOMetadataFormatImpl(java.lang.String, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl(java.lang.String, int)

public IIOMetadataFormatImpl(String sample code for java.lang.String definition code for java.lang.String  rootName,
                             int childPolicy)
Constructs a blank IIOMetadataFormatImpl instance, with a given root element name and child policy (other than CHILD_POLICY_REPEAT). Additional elements, and their attributes and Object reference information may be added using the various add methods.

Parameters:
rootName - the name of the root element.
childPolicy - one of the CHILD_POLICY_* constants, other than CHILD_POLICY_REPEAT.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if rootName is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if childPolicy is not one of the predefined constants.

IIOMetadataFormatImpl sample code for javax.imageio.metadata.IIOMetadataFormatImpl(java.lang.String, int, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl(java.lang.String, int, int)

public IIOMetadataFormatImpl(String sample code for java.lang.String definition code for java.lang.String  rootName,
                             int minChildren,
                             int maxChildren)
Constructs a blank IIOMetadataFormatImpl instance, with a given root element name and a child policy of CHILD_POLICY_REPEAT. Additional elements, and their attributes and Object reference information may be added using the various add methods.

Parameters:
rootName - the name of the root element.
minChildren - the minimum number of children of the node.
maxChildren - the maximum number of children of the node.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if rootName is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if minChildren is negative or larger than maxChildren.
Method Detail

setResourceBaseName sample code for javax.imageio.metadata.IIOMetadataFormatImpl.setResourceBaseName(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.setResourceBaseName(java.lang.String)

protected void setResourceBaseName(String sample code for java.lang.String definition code for java.lang.String  resourceBaseName)
Sets a new base name for locating ResourceBundles containing descriptions of elements and attributes for this format.

Prior to the first time this method is called, the base name will be equal to this.getClass().getName() + "Resources".

Parameters:
resourceBaseName - a String containg the new base name.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if resourceBaseName is null.
See Also:
getResourceBaseName() sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getResourceBaseName() definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getResourceBaseName()

getResourceBaseName sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getResourceBaseName() definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getResourceBaseName()

protected String sample code for java.lang.String definition code for java.lang.String  getResourceBaseName()
Returns the currently set base name for locating ResourceBundles.

Returns:
a String containing the base name.
See Also:
setResourceBaseName(java.lang.String) sample code for javax.imageio.metadata.IIOMetadataFormatImpl.setResourceBaseName(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.setResourceBaseName(java.lang.String)

addElement sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addElement(java.lang.String, java.lang.String, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addElement(java.lang.String, java.lang.String, int)

protected void addElement(String sample code for java.lang.String definition code for java.lang.String  elementName,
                          String sample code for java.lang.String definition code for java.lang.String  parentName,
                          int childPolicy)
Adds a new element type to this metadata document format with a child policy other than CHILD_POLICY_REPEAT.

Parameters:
elementName - the name of the new element.
parentName - the name of the element that will be the parent of the new element.
childPolicy - one of the CHILD_POLICY_* constants, other than CHILD_POLICY_REPEAT, indicating the child policy of the new element.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if parentName is null, or is not a legal element name for this format.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if childPolicy is not one of the predefined constants.

addElement sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addElement(java.lang.String, java.lang.String, int, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addElement(java.lang.String, java.lang.String, int, int)

protected void addElement(String sample code for java.lang.String definition code for java.lang.String  elementName,
                          String sample code for java.lang.String definition code for java.lang.String  parentName,
                          int minChildren,
                          int maxChildren)
Adds a new element type to this metadata document format with a child policy of CHILD_POLICY_REPEAT.

Parameters:
elementName - the name of the new element.
parentName - the name of the element that will be the parent of the new element.
minChildren - the minimum number of children of the node.
maxChildren - the maximum number of children of the node.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if parentName is null, or is not a legal element name for this format.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if minChildren is negative or larger than maxChildren.

addChildElement sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addChildElement(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addChildElement(java.lang.String, java.lang.String)

protected void addChildElement(String sample code for java.lang.String definition code for java.lang.String  elementName,
                               String sample code for java.lang.String definition code for java.lang.String  parentName)
Adds an existing element to the list of legal children for a given parent node type.

Parameters:
parentName - the name of the element that will be the new parent of the element.
elementName - the name of the element to be addded as a child.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if parentName is null, or is not a legal element name for this format.

removeElement sample code for javax.imageio.metadata.IIOMetadataFormatImpl.removeElement(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.removeElement(java.lang.String)

protected void removeElement(String sample code for java.lang.String definition code for java.lang.String  elementName)
Removes an element from the format. If no element with the given name was present, nothing happens and no exception is thrown.

Parameters:
elementName - the name of the element to be removed.

addAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String)

protected void addAttribute(String sample code for java.lang.String definition code for java.lang.String  elementName,
                            String sample code for java.lang.String definition code for java.lang.String  attrName,
                            int dataType,
                            boolean required,
                            String sample code for java.lang.String definition code for java.lang.String  defaultValue)
Adds a new attribute to a previously defined element that may be set to an arbitrary value.

Parameters:
elementName - the name of the element.
attrName - the name of the attribute being added.
dataType - the data type (string format) of the attribute, one of the DATATYPE_* constants.
required - true if the attribute must be present.
defaultValue - the default value for the attribute, or null.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if attrName is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if dataType is not one of the predefined constants.

addAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String, java.util.List<java.lang.String>) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String, java.util.List<java.lang.String>)

protected void addAttribute(String sample code for java.lang.String definition code for java.lang.String  elementName,
                            String sample code for java.lang.String definition code for java.lang.String  attrName,
                            int dataType,
                            boolean required,
                            String sample code for java.lang.String definition code for java.lang.String  defaultValue,
                            List sample code for java.util.List definition code for java.util.List <String sample code for java.lang.String definition code for java.lang.String > enumeratedValues)
Adds a new attribute to a previously defined element that will be defined by a set of enumerated values.

Parameters:
elementName - the name of the element.
attrName - the name of the attribute being added.
dataType - the data type (string format) of the attribute, one of the DATATYPE_* constants.
required - true if the attribute must be present.
defaultValue - the default value for the attribute, or null.
enumeratedValues - a List of Strings containing the legal values for the attribute.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if attrName is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if dataType is not one of the predefined constants.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if enumeratedValues is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if enumeratedValues does not contain at least one entry.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if enumeratedValues contains an element that is not a String or is null.

addAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String, java.lang.String, java.lang.String, boolean, boolean) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, java.lang.String, java.lang.String, java.lang.String, boolean, boolean)

protected void addAttribute(String sample code for java.lang.String definition code for java.lang.String  elementName,
                            String sample code for java.lang.String definition code for java.lang.String  attrName,
                            int dataType,
                            boolean required,
                            String sample code for java.lang.String definition code for java.lang.String  defaultValue,
                            String sample code for java.lang.String definition code for java.lang.String  minValue,
                            String sample code for java.lang.String definition code for java.lang.String  maxValue,
                            boolean minInclusive,
                            boolean maxInclusive)
Adds a new attribute to a previously defined element that will be defined by a range of values.

Parameters:
elementName - the name of the element.
attrName - the name of the attribute being added.
dataType - the data type (string format) of the attribute, one of the DATATYPE_* constants.
required - true if the attribute must be present.
defaultValue - the default value for the attribute, or null.
minValue - the smallest (inclusive or exclusive depending on the value of minInclusive) legal value for the attribute, as a String.
maxValue - the largest (inclusive or exclusive depending on the value of minInclusive) legal value for the attribute, as a String.
minInclusive - true if minValue is inclusive.
maxInclusive - true if maxValue is inclusive.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if attrName is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if dataType is not one of the predefined constants.

addAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, int, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addAttribute(java.lang.String, java.lang.String, int, boolean, int, int)

protected void addAttribute(String sample code for java.lang.String definition code for java.lang.String  elementName,
                            String sample code for java.lang.String definition code for java.lang.String  attrName,
                            int dataType,
                            boolean required,
                            int listMinLength,
                            int listMaxLength)
Adds a new attribute to a previously defined element that will be defined by a list of values.

Parameters:
elementName - the name of the element.
attrName - the name of the attribute being added.
dataType - the data type (string format) of the attribute, one of the DATATYPE_* constants.
required - true if the attribute must be present.
listMinLength - the smallest legal number of list items.
listMaxLength - the largest legal number of list items.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if attrName is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if dataType is not one of the predefined constants.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if listMinLength is negative or larger than listMaxLength.

addBooleanAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addBooleanAttribute(java.lang.String, java.lang.String, boolean, boolean) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addBooleanAttribute(java.lang.String, java.lang.String, boolean, boolean)

protected void addBooleanAttribute(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                   String sample code for java.lang.String definition code for java.lang.String  attrName,
                                   boolean hasDefaultValue,
                                   boolean defaultValue)
Adds a new attribute to a previously defined element that will be defined by the enumerated values TRUE and FALSE, with a datatype of DATATYPE_BOOLEAN.

Parameters:
elementName - the name of the element.
attrName - the name of the attribute being added.
hasDefaultValue - true if a default value should be present.
defaultValue - the default value for the attribute as a boolean, ignored if hasDefaultValue is false.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if attrName is null.

removeAttribute sample code for javax.imageio.metadata.IIOMetadataFormatImpl.removeAttribute(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.removeAttribute(java.lang.String, java.lang.String)

protected void removeAttribute(String sample code for java.lang.String definition code for java.lang.String  elementName,
                               String sample code for java.lang.String definition code for java.lang.String  attrName)
Removes an attribute from a previously defined element. If no attribute with the given name was present in the given element, nothing happens and no exception is thrown.

Parameters:
elementName - the name of the element.
attrName - the name of the attribute being removed.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.

addObjectValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.<T>addObjectValue(java.lang.String, java.lang.Class<T>, boolean, T) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.<T>addObjectValue(java.lang.String, java.lang.Class<T>, boolean, T)

protected <T> void addObjectValue(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                  Class sample code for java.lang.Class definition code for java.lang.Class <T> classType,
                                  boolean required,
                                  T defaultValue)
Allows an Object reference of a given class type to be stored in nodes implementing the named element. The value of the Object is unconstrained other than by its class type.

If an Object reference was previously allowed, the previous settings are overwritten.

Parameters:
elementName - the name of the element.
classType - a Class variable indicating the legal class type for the object value.
required - true if an object value must be present.
defaultValue - the default value for the Object reference, or null.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.

addObjectValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.<T>addObjectValue(java.lang.String, java.lang.Class<T>, boolean, T, java.util.List<? extends T>) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.<T>addObjectValue(java.lang.String, java.lang.Class<T>, boolean, T, java.util.List<? extends T>)

protected <T> void addObjectValue(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                  Class sample code for java.lang.Class definition code for java.lang.Class <T> classType,
                                  boolean required,
                                  T defaultValue,
                                  List sample code for java.util.List definition code for java.util.List <? extends T> enumeratedValues)
Allows an Object reference of a given class type to be stored in nodes implementing the named element. The value of the Object must be one of the values given by enumeratedValues.

If an Object reference was previously allowed, the previous settings are overwritten.

Parameters:
elementName - the name of the element.
classType - a Class variable indicating the legal class type for the object value.
required - true if an object value must be present.
defaultValue - the default value for the Object reference, or null.
enumeratedValues - a List of Objects containing the legal values for the object reference.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if enumeratedValues is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if enumeratedValues does not contain at least one entry.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if enumeratedValues contains an element that is not an instance of the class type denoted by classType or is null.

addObjectValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.<T extends java.lang.Object & java.lang.Comparable<? super T>>addObjectValue(java.lang.String, java.lang.Class<T>, T, java.lang.Comparable<? super T>, java.lang.Comparable<? super T>, boolean, boolean) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.<T extends java.lang.Object & java.lang.Comparable<? super T>>addObjectValue(java.lang.String, java.lang.Class<T>, T, java.lang.Comparable<? super T>, java.lang.Comparable<? super T>, boolean, boolean)

protected <T extends Object sample code for java.lang.Object definition code for java.lang.Object  & Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <? super T>> void addObjectValue(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                                                        Class sample code for java.lang.Class definition code for java.lang.Class <T> classType,
                                                                        T defaultValue,
                                                                        Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <? super T> minValue,
                                                                        Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <? super T> maxValue,
                                                                        boolean minInclusive,
                                                                        boolean maxInclusive)
Allows an Object reference of a given class type to be stored in nodes implementing the named element. The value of the Object must be within the range given by minValue and maxValue. Furthermore, the class type must implement the Comparable interface.

If an Object reference was previously allowed, the previous settings are overwritten.

Parameters:
elementName - the name of the element.
classType - a Class variable indicating the legal class type for the object value.
defaultValue - the default value for the
minValue - the smallest (inclusive or exclusive depending on the value of minInclusive) legal value for the object value, as a String.
maxValue - the largest (inclusive or exclusive depending on the value of minInclusive) legal value for the object value, as a String.
minInclusive - true if minValue is inclusive.
maxInclusive - true if maxValue is inclusive.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.

addObjectValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.addObjectValue(java.lang.String, java.lang.Class<?>, int, int) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.addObjectValue(java.lang.String, java.lang.Class<?>, int, int)

protected void addObjectValue(String sample code for java.lang.String definition code for java.lang.String  elementName,
                              Class sample code for java.lang.Class definition code for java.lang.Class <?> classType,
                              int arrayMinLength,
                              int arrayMaxLength)
Allows an Object reference of a given class type to be stored in nodes implementing the named element. The value of the Object must an array of objects of class type given by classType, with at least arrayMinLength and at most arrayMaxLength elements.

If an Object reference was previously allowed, the previous settings are overwritten.

Parameters:
elementName - the name of the element.
classType - a Class variable indicating the legal class type for the object value.
arrayMinLength - the smallest legal length for the array.
arrayMaxLength - the largest legal length for the array.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is not a legal element name for this format.

removeObjectValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.removeObjectValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.removeObjectValue(java.lang.String)

protected void removeObjectValue(String sample code for java.lang.String definition code for java.lang.String  elementName)
Disallows an Object reference from being stored in nodes implementing the named element.

Parameters:
elementName - the name of the element.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is not a legal element name for this format.

getRootName sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getRootName() definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getRootName()

public String sample code for java.lang.String definition code for java.lang.String  getRootName()
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getRootName() definition code for javax.imageio.metadata.IIOMetadataFormat.getRootName()
Returns the name of the root element of the format.

Specified by:
getRootName sample code for javax.imageio.metadata.IIOMetadataFormat.getRootName() definition code for javax.imageio.metadata.IIOMetadataFormat.getRootName() in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Returns:
a String.

canNodeAppear sample code for javax.imageio.metadata.IIOMetadataFormatImpl.canNodeAppear(java.lang.String, javax.imageio.ImageTypeSpecifier) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.canNodeAppear(java.lang.String, javax.imageio.ImageTypeSpecifier)

public abstract boolean canNodeAppear(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                      ImageTypeSpecifier sample code for javax.imageio.ImageTypeSpecifier definition code for javax.imageio.ImageTypeSpecifier  imageType)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.canNodeAppear(java.lang.String, javax.imageio.ImageTypeSpecifier) definition code for javax.imageio.metadata.IIOMetadataFormat.canNodeAppear(java.lang.String, javax.imageio.ImageTypeSpecifier)
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.

Specified by:
canNodeAppear sample code for javax.imageio.metadata.IIOMetadataFormat.canNodeAppear(java.lang.String, javax.imageio.ImageTypeSpecifier) definition code for javax.imageio.metadata.IIOMetadataFormat.canNodeAppear(java.lang.String, javax.imageio.ImageTypeSpecifier) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
imageType - an ImageTypeSpecifier indicating the type of the image that will be associated with the metadata.
Returns:
true if the node is meaningful for images of the given type.

getElementMinChildren sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementMinChildren(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementMinChildren(java.lang.String)

public int getElementMinChildren(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getElementMinChildren(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getElementMinChildren(java.lang.String)
Returns the minimum number of children of the named element with child policy CHILD_POLICY_REPEAT. For example, an element representing color primary information might be required to have at least 3 children, one for each primay.

Specified by:
getElementMinChildren sample code for javax.imageio.metadata.IIOMetadataFormat.getElementMinChildren(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getElementMinChildren(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
an int.

getElementMaxChildren sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementMaxChildren(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementMaxChildren(java.lang.String)

public int getElementMaxChildren(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getElementMaxChildren(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getElementMaxChildren(java.lang.String)
Returns the maximum number of children of the named element with child policy CHILD_POLICY_REPEAT. For example, an element representing an entry in an 8-bit color palette might be allowed to repeat up to 256 times. A value of Integer.MAX_VALUE may be used to specify that there is no upper bound.

Specified by:
getElementMaxChildren sample code for javax.imageio.metadata.IIOMetadataFormat.getElementMaxChildren(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getElementMaxChildren(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
an int.

getElementDescription sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementDescription(java.lang.String, java.util.Locale) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getElementDescription(java.lang.String, java.util.Locale)

public String sample code for java.lang.String definition code for java.lang.String  getElementDescription(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                    Locale sample code for java.util.Locale definition code for java.util.Locale  locale)
Returns a String containing a description of the named element, or null. The desciption will be localized for the supplied Locale if possible.

The default implementation will first locate a ResourceBundle using the current resource base name set by setResourceBaseName and the supplied Locale, using the fallback mechanism described in the comments for ResourceBundle.getBundle. If a ResourceBundle is found, the element name will be used as a key to its getString method, and the result returned. If no ResourceBundle is found, or no such key is present, null will be returned.

If locale is null, the current default Locale returned by Locale.getLocale will be used.

Specified by:
getElementDescription sample code for javax.imageio.metadata.IIOMetadataFormat.getElementDescription(java.lang.String, java.util.Locale) definition code for javax.imageio.metadata.IIOMetadataFormat.getElementDescription(java.lang.String, java.util.Locale) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element.
locale - the Locale for which localization will be attempted.
Returns:
the element description.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.
See Also:
setResourceBaseName(java.lang.String) sample code for javax.imageio.metadata.IIOMetadataFormatImpl.setResourceBaseName(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.setResourceBaseName(java.lang.String)

getChildPolicy sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getChildPolicy(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getChildPolicy(java.lang.String)

public int getChildPolicy(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getChildPolicy(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getChildPolicy(java.lang.String)
Returns one of the constants starting with CHILD_POLICY_, indicating the legal pattern of children for the named element.

Specified by:
getChildPolicy sample code for javax.imageio.metadata.IIOMetadataFormat.getChildPolicy(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getChildPolicy(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
one of the CHILD_POLICY_* constants.

getChildNames sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getChildNames(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getChildNames(java.lang.String)

public String sample code for java.lang.String definition code for java.lang.String [] getChildNames(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getChildNames(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getChildNames(java.lang.String)
Returns an array of Strings indicating the names of the element which are allowed to be children of the named element, in the order in which they should appear. If the element cannot have children, null is returned.

Specified by:
getChildNames sample code for javax.imageio.metadata.IIOMetadataFormat.getChildNames(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getChildNames(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
an array of Strings, or null.

getAttributeNames sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeNames(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeNames(java.lang.String)

public String sample code for java.lang.String definition code for java.lang.String [] getAttributeNames(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeNames(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeNames(java.lang.String)
Returns an array of Strings listing the names of the attributes that may be associated with the named element.

Specified by:
getAttributeNames sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeNames(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeNames(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
an array of Strings.

getAttributeValueType sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeValueType(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeValueType(java.lang.String, java.lang.String)

public int getAttributeValueType(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                 String sample code for java.lang.String definition code for java.lang.String  attrName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeValueType(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeValueType(java.lang.String, java.lang.String)
Returns one of the constants starting with VALUE_, indicating whether the values of the given attribute within the named element are arbitrary, constrained to lie within a specified range, constrained to be one of a set of enumerated values, or are a whitespace-separated list of arbitrary values.

Specified by:
getAttributeValueType sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeValueType(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeValueType(java.lang.String, java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
attrName - the name of the attribute being queried.
Returns:
one of the VALUE_* constants.

getAttributeDataType sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDataType(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDataType(java.lang.String, java.lang.String)

public int getAttributeDataType(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                String sample code for java.lang.String definition code for java.lang.String  attrName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeDataType(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeDataType(java.lang.String, java.lang.String)
Returns one of the constants starting with DATATYPE_, indicating the format and interpretation of the value of the given attribute within th enamed element. If getAttributeValueType returns VALUE_LIST, then the legal value is a whitespace-spearated list of values of the returned datatype.

Specified by:
getAttributeDataType sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeDataType(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeDataType(java.lang.String, java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
attrName - the name of the attribute being queried.
Returns:
one of the DATATYPE_* constants.

isAttributeRequired sample code for javax.imageio.metadata.IIOMetadataFormatImpl.isAttributeRequired(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.isAttributeRequired(java.lang.String, java.lang.String)

public boolean isAttributeRequired(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                   String sample code for java.lang.String definition code for java.lang.String  attrName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.isAttributeRequired(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.isAttributeRequired(java.lang.String, java.lang.String)
Returns true if the named attribute must be present within the named element.

Specified by:
isAttributeRequired sample code for javax.imageio.metadata.IIOMetadataFormat.isAttributeRequired(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.isAttributeRequired(java.lang.String, java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
attrName - the name of the attribute being queried.
Returns:
true if the attribut must be present.

getAttributeDefaultValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDefaultValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDefaultValue(java.lang.String, java.lang.String)

public String sample code for java.lang.String definition code for java.lang.String  getAttributeDefaultValue(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                       String sample code for java.lang.String definition code for java.lang.String  attrName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeDefaultValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeDefaultValue(java.lang.String, java.lang.String)
Returns the default value of the named attribute, if it is not explictly present within the named element, as a String, or null if no default value is available.

Specified by:
getAttributeDefaultValue sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeDefaultValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeDefaultValue(java.lang.String, java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
attrName - the name of the attribute being queried.
Returns:
a String containing the default value, or null.

getAttributeEnumerations sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeEnumerations(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeEnumerations(java.lang.String, java.lang.String)

public String sample code for java.lang.String definition code for java.lang.String [] getAttributeEnumerations(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                         String sample code for java.lang.String definition code for java.lang.String  attrName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeEnumerations(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeEnumerations(java.lang.String, java.lang.String)
Returns an array of Strings containing the legal enumerated values for the given attribute within the named element. This method should only be called if getAttributeValueType returns VALUE_ENUMERATION.

Specified by:
getAttributeEnumerations sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeEnumerations(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeEnumerations(java.lang.String, java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
attrName - the name of the attribute being queried.
Returns:
an array of Strings.

getAttributeMinValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeMinValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeMinValue(java.lang.String, java.lang.String)

public String sample code for java.lang.String definition code for java.lang.String  getAttributeMinValue(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                   String sample code for java.lang.String definition code for java.lang.String  attrName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeMinValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeMinValue(java.lang.String, java.lang.String)
Returns the minimum legal value for the attribute. Whether this value is inclusive or exclusive may be determined by the value of getAttributeValueType. The value is returned as a String; its interpretation is dependent on the value of getAttributeDataType. This method should only be called if getAttributeValueType returns VALUE_RANGE_*.

Specified by:
getAttributeMinValue sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeMinValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeMinValue(java.lang.String, java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
attrName - the name of the attribute being queried.
Returns:
a String containing the smallest legal value for the attribute.

getAttributeMaxValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeMaxValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeMaxValue(java.lang.String, java.lang.String)

public String sample code for java.lang.String definition code for java.lang.String  getAttributeMaxValue(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                   String sample code for java.lang.String definition code for java.lang.String  attrName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeMaxValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeMaxValue(java.lang.String, java.lang.String)
Returns the maximum legal value for the attribute. Whether this value is inclusive or exclusive may be determined by the value of getAttributeValueType. The value is returned as a String; its interpretation is dependent on the value of getAttributeDataType. This method should only be called if getAttributeValueType returns VALUE_RANGE_*.

Specified by:
getAttributeMaxValue sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeMaxValue(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeMaxValue(java.lang.String, java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried, as a String.
attrName - the name of the attribute being queried.
Returns:
a String containing the largest legal value for the attribute.

getAttributeListMinLength sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeListMinLength(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeListMinLength(java.lang.String, java.lang.String)

public int getAttributeListMinLength(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                     String sample code for java.lang.String definition code for java.lang.String  attrName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeListMinLength(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeListMinLength(java.lang.String, java.lang.String)
Returns the minimum number of list items that may be used to define this attribute. The attribute itself is defined as a String containing multiple whitespace-separated items. This method should only be called if getAttributeValueType returns VALUE_LIST.

Specified by:
getAttributeListMinLength sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeListMinLength(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeListMinLength(java.lang.String, java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
attrName - the name of the attribute being queried.
Returns:
the smallest legal number of list items for the attribute.

getAttributeListMaxLength sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeListMaxLength(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeListMaxLength(java.lang.String, java.lang.String)

public int getAttributeListMaxLength(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                     String sample code for java.lang.String definition code for java.lang.String  attrName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeListMaxLength(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeListMaxLength(java.lang.String, java.lang.String)
Returns the maximum number of list items that may be used to define this attribute. A value of Integer.MAX_VALUE may be used to specify that there is no upper bound. The attribute itself is defined as a String containing multiple whitespace-separated items. This method should only be called if getAttributeValueType returns VALUE_LIST.

Specified by:
getAttributeListMaxLength sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeListMaxLength(java.lang.String, java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeListMaxLength(java.lang.String, java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
attrName - the name of the attribute being queried.
Returns:
the largest legal number of list items for the attribute.

getAttributeDescription sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDescription(java.lang.String, java.lang.String, java.util.Locale) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getAttributeDescription(java.lang.String, java.lang.String, java.util.Locale)

public String sample code for java.lang.String definition code for java.lang.String  getAttributeDescription(String sample code for java.lang.String definition code for java.lang.String  elementName,
                                      String sample code for java.lang.String definition code for java.lang.String  attrName,
                                      Locale sample code for java.util.Locale definition code for java.util.Locale  locale)
Returns a String containing a description of the named attribute, or null. The desciption will be localized for the supplied Locale if possible.

The default implementation will first locate a ResourceBundle using the current resource base name set by setResourceBaseName and the supplied Locale, using the fallback mechanism described in the comments for ResourceBundle.getBundle. If a ResourceBundle is found, the element name followed by a "/" character followed by the attribute name (elementName + "/" + attrName) will be used as a key to its getString method, and the result returned. If no ResourceBundle is found, or no such key is present, null will be returned.

If locale is null, the current default Locale returned by Locale.getLocale will be used.

Specified by:
getAttributeDescription sample code for javax.imageio.metadata.IIOMetadataFormat.getAttributeDescription(java.lang.String, java.lang.String, java.util.Locale) definition code for javax.imageio.metadata.IIOMetadataFormat.getAttributeDescription(java.lang.String, java.lang.String, java.util.Locale) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element.
attrName - the name of the attribute.
locale - the Locale for which localization will be attempted, or null.
Returns:
the attribute description.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if elementName is null, or is not a legal element name for this format.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if attrName is null or is not a legal attribute name for this element.
See Also:
setResourceBaseName(java.lang.String) sample code for javax.imageio.metadata.IIOMetadataFormatImpl.setResourceBaseName(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.setResourceBaseName(java.lang.String)

getObjectValueType sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectValueType(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectValueType(java.lang.String)

public int getObjectValueType(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectValueType(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectValueType(java.lang.String)
Returns one of the enumerated values starting with VALUE_, indicating the type of values (enumeration, range, or array) that are allowed for the Object reference. If no object value can be stored within the given element, the result of this method will be VALUE_NONE.

Object references whose legal values are defined as a range must implement the Comparable interface.

Specified by:
getObjectValueType sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectValueType(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectValueType(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
one of the VALUE_* constants.
See Also:
Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable

getObjectClass sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectClass(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectClass(java.lang.String)

public Class sample code for java.lang.Class definition code for java.lang.Class <?> getObjectClass(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectClass(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectClass(java.lang.String)
Returns the Class type of the Object reference stored within the element. If this element may not contain an Object reference, an IllegalArgumentException will be thrown. If the class type is an array, this field indicates the underlying class type (e.g, for an array of ints, this method would return int.class).

Object references whose legal values are defined as a range must implement the Comparable interface.

Specified by:
getObjectClass sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectClass(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectClass(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
a Class object.

getObjectDefaultValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectDefaultValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectDefaultValue(java.lang.String)

public Object sample code for java.lang.Object definition code for java.lang.Object  getObjectDefaultValue(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectDefaultValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectDefaultValue(java.lang.String)
Returns an Objects containing the default value for the Object reference within the named element.

Specified by:
getObjectDefaultValue sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectDefaultValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectDefaultValue(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
an Object.

getObjectEnumerations sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectEnumerations(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectEnumerations(java.lang.String)

public Object sample code for java.lang.Object definition code for java.lang.Object [] getObjectEnumerations(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectEnumerations(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectEnumerations(java.lang.String)
Returns an array of Objects containing the legal enumerated values for the Object reference within the named element. This method should only be called if getObjectValueType returns VALUE_ENUMERATION.

The Object associated with a node that accepts emuerated values must be equal to one of the values returned by this method, as defined by the == operator (as opposed to the Object.equals method).

Specified by:
getObjectEnumerations sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectEnumerations(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectEnumerations(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
an array of Objects.

getObjectMinValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectMinValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectMinValue(java.lang.String)

public Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <?> getObjectMinValue(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectMinValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectMinValue(java.lang.String)
Returns the minimum legal value for the Object reference within the named element. Whether this value is inclusive or exclusive may be determined by the value of getObjectValueType. This method should only be called if getObjectValueType returns one of the constants starting with VALUE_RANGE.

Specified by:
getObjectMinValue sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectMinValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectMinValue(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
the smallest legal value for the attribute.

getObjectMaxValue sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectMaxValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectMaxValue(java.lang.String)

public Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <?> getObjectMaxValue(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectMaxValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectMaxValue(java.lang.String)
Returns the maximum legal value for the Object reference within the named element. Whether this value is inclusive or exclusive may be determined by the value of getObjectValueType. This method should only be called if getObjectValueType returns one of the constants starting with VALUE_RANGE.

Specified by:
getObjectMaxValue sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectMaxValue(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectMaxValue(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
the smallest legal value for the attribute.

getObjectArrayMinLength sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectArrayMinLength(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectArrayMinLength(java.lang.String)

public int getObjectArrayMinLength(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectArrayMinLength(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectArrayMinLength(java.lang.String)
Returns the minimum number of array elements that may be used to define the Object reference within the named element. This method should only be called if getObjectValueType returns VALUE_LIST.

Specified by:
getObjectArrayMinLength sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectArrayMinLength(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectArrayMinLength(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
the smallest valid array length for the Object reference.

getObjectArrayMaxLength sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectArrayMaxLength(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getObjectArrayMaxLength(java.lang.String)

public int getObjectArrayMaxLength(String sample code for java.lang.String definition code for java.lang.String  elementName)
Description copied from interface: IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectArrayMaxLength(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectArrayMaxLength(java.lang.String)
Returns the maximum number of array elements that may be used to define the Object reference within the named element. A value of Integer.MAX_VALUE may be used to specify that there is no upper bound. This method should only be called if getObjectValueType returns VALUE_LIST.

Specified by:
getObjectArrayMaxLength sample code for javax.imageio.metadata.IIOMetadataFormat.getObjectArrayMaxLength(java.lang.String) definition code for javax.imageio.metadata.IIOMetadataFormat.getObjectArrayMaxLength(java.lang.String) in interface IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat
Parameters:
elementName - the name of the element being queried.
Returns:
the largest valid array length for the Object reference.

getStandardFormatInstance sample code for javax.imageio.metadata.IIOMetadataFormatImpl.getStandardFormatInstance() definition code for javax.imageio.metadata.IIOMetadataFormatImpl.getStandardFormatInstance()

public static IIOMetadataFormat sample code for javax.imageio.metadata.IIOMetadataFormat definition code for javax.imageio.metadata.IIOMetadataFormat  getStandardFormatInstance()
Returns an IIOMetadataFormat object describing the standard, plug-in neutral javax.imageio_1.0 metadata document format described in the comment of the javax.imageio.metadata package.

Returns:
a predefined IIOMetadataFormat instance.