|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
void
|
addChildElement(String elementName, String parentName)
Adds an existing element to the list of legal children for a
given parent node type.
|
|
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.
|
|
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.
|
|
void
|
addObjectValue(String elementName, Class<?> classType, int arrayMinLength, int arrayMaxLength)
Allows an Object reference of a given class type
to be stored in nodes implementing the named element.
|
|
<T>
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.
|
|
<T extends Object & Comparable<? super T>>
void
|
addObjectValue(String elementName, Class<T> classType, T defaultValue, Comparable<? super T> minValue, 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.
|
|
<T>
void
|
addObjectValue(String elementName, Class<T> classType, boolean required, T defaultValue, List<? extends T> enumeratedValues)
Allows an Object reference of a given class type
to be stored in nodes implementing the named element.
|
|
abstract
boolean
|
canNodeAppear(String elementName, 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(String elementName, 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
|
getAttributeDefaultValue(String elementName, 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
|
getAttributeDescription(String elementName, String attrName, Locale locale)
Returns a String containing a description of the
named attribute, or null.
|
|
String[]
|
getAttributeEnumerations(String elementName, String attrName)
Returns an array of Strings containing the legal
enumerated values for the given attribute within the named
element.
|
|
int
|
getAttributeListMaxLength(String elementName, String attrName)
Returns the maximum number of list items that may be used to
define this attribute.
|
|
int
|
getAttributeListMinLength(String elementName, String attrName)
Returns the minimum number of list items that may be used to
define this attribute.
|
|
String
|
getAttributeMaxValue(String elementName, String attrName)
Returns the maximum legal value for the attribute.
|
|
String
|
getAttributeMinValue(String elementName, String attrName)
Returns the minimum legal value for the attribute.
|
|
String[]
|
getAttributeNames(String elementName)
Returns an array of Strings listing the names of
the attributes that may be associated with the named element.
|
|
int
|
getAttributeValueType(String elementName, 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[]
|
getChildNames(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(String elementName)
Returns one of the constants starting with
CHILD_POLICY_, indicating the legal pattern of
children for the named element.
|
|
String
|
getElementDescription(String elementName, Locale locale)
Returns a String containing a description of the
named element, or null.
|
|
int
|
getElementMaxChildren(String elementName)
Returns the maximum number of children of the named element
with child policy CHILD_POLICY_REPEAT.
|
|
int
|
getElementMinChildren(String elementName)
Returns the minimum number of children of the named element
with child policy CHILD_POLICY_REPEAT.
|
|
int
|
getObjectArrayMaxLength(String elementName)
Returns the maximum number of array elements that may be used
to define the Object reference within the named
element.
|
|
int
|
getObjectArrayMinLength(String elementName)
Returns the minimum number of array elements that may be used
to define the Object reference within the named
element.
|
|
Class<?>
|
getObjectClass(String elementName)
Returns the Class type of the Object
reference stored within the element.
|
|
Object
|
getObjectDefaultValue(String elementName)
Returns an Objects containing the default
value for the Object reference within
the named element.
|
|
Object[]
|
getObjectEnumerations(String elementName)
Returns an array of Objects containing the legal
enumerated values for the Object reference within
the named element.
|
|
Comparable<?>
|
getObjectMaxValue(String elementName)
Returns the maximum legal value for the Object
reference within the named element.
|
|
Comparable<?>
|
getObjectMinValue(String elementName)
Returns the minimum legal value for the Object
reference within the named element.
|
|
int
|
getObjectValueType(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.
|
|
String
|
getResourceBaseName()
Returns the currently set base name for locating
ResourceBundles.
|
|
String
|
getRootName()
Returns the name of the root element of the format.
|
|
static
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.
|
|
boolean
|
isAttributeRequired(String elementName, String attrName)
Returns true if the named attribute must be
present within the named element.
|
|
void
|
removeAttribute(String elementName, String attrName)
Removes an attribute from a previously defined element.
|
|
void
|
removeElement(String elementName)
Removes an element from the format.
|
|
void
|
removeObjectValue(String elementName)
Disallows an Object reference from being stored in
nodes implementing the named element.
|
|
void
|
setResourceBaseName(String resourceBaseName)
Sets a new base name for locating ResourceBundles
containing descriptions of elements and attributes for this
format.
|