API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.imageio.metadata. IIOMetadataFormatImpl View Source
Author(s)
Since
Version
0.5
Serial
Hierarchy
 Object
      IIOMetadataFormatImpl
Implements
 IIOMetadataFormat
Subclasses
Description
publicabstract abstract class IIOMetadataFormatImpl
  A concrete class providing a reusable implementation of the IIOMetadataFormat interface.
Constructors
public IIOMetadataFormatImpl (String rootName, int childPolicy)
  Constructs a blank IIOMetadataFormatImpl instance, with a given root element name and child policy (other than CHILD_POLICY_REPEAT).
public IIOMetadataFormatImpl (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.
Methods
Hide/Show inherited methods
protected void addAttribute (String elementName, 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 (String elementName, String attrName, int dataType, boolean required, String defaultValue)
  Adds a new attribute to a previously defined element that may be set to an arbitrary value.
protected void addAttribute (String elementName, String attrName, int dataType, boolean required, String defaultValue, List<String> enumeratedValues)
  Adds a new attribute to a previously defined element that will be defined by a set of enumerated values.
protected void addAttribute (String elementName, String attrName, int dataType, boolean required, String defaultValue, String minValue, 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 (String elementName, 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 (String elementName, String parentName)
  Adds an existing element to the list of legal children for a given parent node type.
protected void addElement (String elementName, 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 (String elementName, 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 (String elementName, Class<Object> classType, int arrayMinLength, int arrayMaxLength)
  Allows an Object reference of a given class type to be stored in nodes implementing the named element.
protected void addObjectValue (String elementName, 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 void addObjectValue (String elementName, Class< T> classType, boolean required, T defaultValue, List<Object> enumeratedValues)
  Allows an Object reference of a given class type to be stored in nodes implementing the named element.
protected void addObjectValue (String elementName, Class< T> classType, T defaultValue, Comparable<Object> minValue, Comparable<Object> maxValue, boolean minInclusive, boolean maxInclusive)
  Allows an Object reference of a given class type to be stored in nodes implementing the named element.
publicabstract boolean canNodeAppear (String elementName, ImageTypeSpecifier imageType) [Specified in IIOMetadataFormat]
public int getAttributeDataType (String elementName, String attrName) [Specified in IIOMetadataFormat]
public String getAttributeDefaultValue (String elementName, String attrName) [Specified in IIOMetadataFormat]
public String getAttributeDescription (String elementName, String attrName, Locale locale) [Specified in IIOMetadataFormat]
  Returns a String containing a description of the named attribute, or null.
public String getAttributeEnumerations (String elementName, String attrName) [Specified in IIOMetadataFormat]
public int getAttributeListMaxLength (String elementName, String attrName) [Specified in IIOMetadataFormat]
public int getAttributeListMinLength (String elementName, String attrName) [Specified in IIOMetadataFormat]
public String getAttributeMaxValue (String elementName, String attrName) [Specified in IIOMetadataFormat]
public String getAttributeMinValue (String elementName, String attrName) [Specified in IIOMetadataFormat]
public String getAttributeNames (String elementName) [Specified in IIOMetadataFormat]
public int getAttributeValueType (String elementName, String attrName) [Specified in IIOMetadataFormat]
public String getChildNames (String elementName) [Specified in IIOMetadataFormat]
public int getChildPolicy (String elementName) [Specified in IIOMetadataFormat]
public String getElementDescription (String elementName, Locale locale) [Specified in IIOMetadataFormat]
  Returns a String containing a description of the named element, or null.
public int getElementMaxChildren (String elementName) [Specified in IIOMetadataFormat]
public int getElementMinChildren (String elementName) [Specified in IIOMetadataFormat]
public int getObjectArrayMaxLength (String elementName) [Specified in IIOMetadataFormat]
public int getObjectArrayMinLength (String elementName) [Specified in IIOMetadataFormat]
public Class<Object> getObjectClass (String elementName) [Specified in IIOMetadataFormat]
public Object getObjectDefaultValue (String elementName) [Specified in IIOMetadataFormat]
public Object getObjectEnumerations (String elementName) [Specified in IIOMetadataFormat]
public Comparable<Object> getObjectMaxValue (String elementName) [Specified in IIOMetadataFormat]
public Comparable<Object> getObjectMinValue (String elementName) [Specified in IIOMetadataFormat]
public int getObjectValueType (String elementName) [Specified in IIOMetadataFormat]
protected String getResourceBaseName ()
  Returns the currently set base name for locating ResourceBundles.
public String getRootName () [Specified in IIOMetadataFormat]
publicstatic 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.
public boolean isAttributeRequired (String elementName, String attrName) [Specified in IIOMetadataFormat]
protected void removeAttribute (String elementName, String attrName)
  Removes an attribute from a previously defined element.
protected void removeElement (String elementName)
  Removes an element from the format.
protected void removeObjectValue (String elementName)
  Disallows an Object reference from being stored in nodes implementing the named element.
protected void setResourceBaseName (String resourceBaseName)
  Sets a new base name for locating ResourceBundles containing descriptions of elements and attributes for this format.
Fields
Hide/Show inherited fields
publicfinalstatic int CHILD_POLICY_ALL = "1" [Inherited From IIOMetadataFormat]
  A constant returned by getChildPolicy to indicate that an element must have a single instance of each of its legal child elements, in order.
publicfinalstatic int CHILD_POLICY_CHOICE = "3" [Inherited From IIOMetadataFormat]
  A constant returned by getChildPolicy to indicate that an element must have zero or one children, selected from among its legal child elements.
publicfinalstatic int CHILD_POLICY_EMPTY = "0" [Inherited From IIOMetadataFormat]
  A constant returned by getChildPolicy to indicate that an element may not have any children.
publicfinalstatic int CHILD_POLICY_MAX = "5" [Inherited From IIOMetadataFormat]
The largest valid CHILD_POLICY_* constant, to be used for range checks.
publicfinalstatic int CHILD_POLICY_REPEAT = "5" [Inherited From IIOMetadataFormat]
  A constant returned by getChildPolicy to indicate that an element must have zero or more instances of its unique legal child element.
publicfinalstatic int CHILD_POLICY_SEQUENCE = "4" [Inherited From IIOMetadataFormat]
  A constant returned by getChildPolicy to indicate that an element must have a sequence of instances of any of its legal child elements.
publicfinalstatic int CHILD_POLICY_SOME = "2" [Inherited From IIOMetadataFormat]
  A constant returned by getChildPolicy to indicate that an element must have zero or one instance of each of its legal child elements, in order.
publicfinalstatic int DATATYPE_BOOLEAN = "1" [Inherited From IIOMetadataFormat]
A constant returned by getAttributeDataType indicating that the value of an attribute is one of 'true' or 'false'.
publicfinalstatic int DATATYPE_DOUBLE = "4" [Inherited From IIOMetadataFormat]
A constant returned by getAttributeDataType indicating that the value of an attribute is a string representation of a double-precision decimal floating-point number.
publicfinalstatic int DATATYPE_FLOAT = "3" [Inherited From IIOMetadataFormat]
A constant returned by getAttributeDataType indicating that the value of an attribute is a string representation of a decimal floating-point number.
publicfinalstatic int DATATYPE_INTEGER = "2" [Inherited From IIOMetadataFormat]
A constant returned by getAttributeDataType indicating that the value of an attribute is a string representation of an integer.
publicfinalstatic int DATATYPE_STRING = "0" [Inherited From IIOMetadataFormat]
A constant returned by getAttributeDataType indicating that the value of an attribute is a general Unicode string.
publicfinalstatic String standardMetadataFormatName = "javax_imageio_1.0"
A String constant containing the standard format name, "javax_imageio_1.0".
publicfinalstatic int VALUE_ARBITRARY = "1" [Inherited From IIOMetadataFormat]
A constant returned by getAttributeValueType and getObjectValueType to indicate that the attribute or user object may be set a single, arbitrary value.
publicfinalstatic int VALUE_ENUMERATION = "16" [Inherited From IIOMetadataFormat]
  A constant returned by getAttributeValueType and getObjectValueType to indicate that the attribute or user object may be set one of a number of enumerated values.
publicfinalstatic int VALUE_LIST = "32" [Inherited From IIOMetadataFormat]
  A constant returned by getAttributeValueType and getObjectValueType to indicate that the attribute or user object may be set to a list or array of values.
publicfinalstatic int VALUE_NONE = "0" [Inherited From IIOMetadataFormat]
A constant returned by getObjectValueType to indicate the absence of a user object.
publicfinalstatic int VALUE_RANGE = "2" [Inherited From IIOMetadataFormat]
  A constant returned by getAttributeValueType and getObjectValueType to indicate that the attribute or user object may be set a range of values.
publicfinalstatic int VALUE_RANGE_MAX_INCLUSIVE = "10" [Inherited From IIOMetadataFormat]
  A constant returned by getAttributeValueType and getObjectValueType to indicate that the attribute or user object may be set to a range of values.
publicfinalstatic int VALUE_RANGE_MAX_INCLUSIVE_MASK = "8" [Inherited From IIOMetadataFormat]
  A value that may be or'ed with VALUE_RANGE to obtain VALUE_RANGE_MAX_INCLUSIVE, and with VALUE_RANGE_MIN_INCLUSIVE to obtain VALUE_RANGE_MIN_MAX_INCLUSIVE.
publicfinalstatic int VALUE_RANGE_MIN_INCLUSIVE = "6" [Inherited From IIOMetadataFormat]
  A constant returned by getAttributeValueType and getObjectValueType to indicate that the attribute or user object may be set to a range of values.
publicfinalstatic int VALUE_RANGE_MIN_INCLUSIVE_MASK = "4" [Inherited From IIOMetadataFormat]
  A value that may be or'ed with VALUE_RANGE to obtain VALUE_RANGE_MIN_INCLUSIVE, and with VALUE_RANGE_MAX_INCLUSIVE to obtain VALUE_RANGE_MIN_MAX_INCLUSIVE.
publicfinalstatic int VALUE_RANGE_MIN_MAX_INCLUSIVE = "14" [Inherited From IIOMetadataFormat]
  A constant returned by getAttributeValueType and getObjectValueType to indicate that the attribute or user object may be set a range of values.
Nested Classes
  IIOMetadataFormatImpl.Element
  IIOMetadataFormatImpl.Attribute
  IIOMetadataFormatImpl.ObjectValue
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar