javax.imageio.metadata
public abstract class IIOMetadataFormatImpl extends Object implements IIOMetadataFormat
Field Summary | |
---|---|
static String | standardMetadataFormatName
The standard metadata format name constant set to
"javax_imageio_1.0". |
Constructor Summary | |
---|---|
IIOMetadataFormatImpl(String rootName, int childPolicy)
Construct a blank IIOMetadataFormatImpl with the given root name
and child policy.
| |
IIOMetadataFormatImpl(String rootName, int minChildren, int maxChildren)
Construct a blank IIOMetadataFormatImpl with the given root name,
a child policy of CHILD_POLICY_REPEAT and the given minimum and
maximum limits on the number of root element children.
|
Method Summary | |
---|---|
protected void | addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue) |
protected void | addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue, List<String> enumeratedValues) |
protected void | addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue, String minValue, String maxValue, boolean minInclusive, boolean maxInclusive) |
protected void | addAttribute(String elementName, String attrName, int dataType, boolean required, int listMinLength, int listMaxLength) |
protected void | addBooleanAttribute(String elementName, String attrName, boolean hasDefaultValue, boolean defaultValue) |
protected void | addChildElement(String elementName, String parentName) |
protected void | addElement(String elementName, String parentName, int childPolicy) |
protected void | addElement(String elementName, String parentName, int minChildren, int maxChildren) |
protected <T> void | addObjectValue(String elementName, Class<T> classType, boolean required, T defaultValue) |
protected <T> void | addObjectValue(String elementName, Class<T> classType, boolean required, T defaultValue, List<? extends T> enumeratedValues) |
protected <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) |
protected void | addObjectValue(String elementName, Class<?> classType, int arrayMinLength, int arrayMaxLength) |
abstract boolean | canNodeAppear(String elementName, ImageTypeSpecifier specifier) |
int | getAttributeDataType(String elementName, String attrName) |
String | getAttributeDefaultValue(String elementName, String attrName) |
String | getAttributeDescription(String elementName, String attrName, Locale locale) |
String[] | getAttributeEnumerations(String elementName, String attrName) |
int | getAttributeListMaxLength(String elementName, String attrName) |
int | getAttributeListMinLength(String elementName, String attrName) |
String | getAttributeMaxValue(String elementName, String attrName) |
String | getAttributeMinValue(String elementName, String attrName) |
String[] | getAttributeNames(String elementName) |
int | getAttributeValueType(String elementName, String attrName) |
String[] | getChildNames(String elementName) |
int | getChildPolicy(String elementName) |
String | getElementDescription(String elementName, Locale locale) |
int | getElementMaxChildren(String elementName) |
int | getElementMinChildren(String elementName) |
int | getObjectArrayMaxLength(String elementName) |
int | getObjectArrayMinLength(String elementName) |
Class<?> | getObjectClass(String elementName) |
Object | getObjectDefaultValue(String elementName) |
Object[] | getObjectEnumerations(String elementName) |
Comparable<?> | getObjectMaxValue(String elementName) |
Comparable<?> | getObjectMinValue(String elementName) |
int | getObjectValueType(String elementName) |
protected String | getResourceBaseName() |
String | getRootName() |
static IIOMetadataFormat | getStandardFormatInstance() |
boolean | isAttributeRequired(String elementName, String attrName) |
protected void | removeAttribute(String elementName, String attrName) |
protected void | removeElement(String elementName) |
protected void | removeObjectValue(String elementName) |
protected void | setResourceBaseName(String resourceBaseName) |
Parameters: rootName the root element name childPolicy the child policy of the root element
Throws: IllegalArgumentException if rootName is null IllegalArgumentException if childPolicy is CHILD_POLICY_REPEAT or if childPolicy is not a CHILD_POLICY constant
Parameters: rootName the root element name minChildren the minimum number of children that this node can have maxChildren the maximum number of children that this node can have
Throws: IllegalArgumentException if rootName is null IllegalArgumentException if minChildren is less than zero or greater than maxChildren