Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.imageio.metadata.IIOMetadataFormatImpl
Field Summary | |
static String |
|
Constructor Summary | |
| |
|
Method Summary | |
protected void |
|
protected void |
|
protected void | |
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
abstract boolean |
|
int |
|
String |
|
String |
|
String[] |
|
int |
|
int |
|
String |
|
String |
|
String[] |
|
int |
|
String[] |
|
int |
|
String |
|
int |
|
int |
|
int |
|
int |
|
Class |
|
Object |
|
Object[] |
|
Comparable |
|
Comparable |
|
int |
|
protected String | |
String | |
static IIOMetadataFormat | |
boolean |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
Methods inherited from class java.lang.Object | |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
public static final String standardMetadataFormatName
The standard metadata format name constant set to "javax_imageio_1.0".
- Field Value:
- "javax_imageio_1.0"
public IIOMetadataFormatImpl(String rootName, int childPolicy)
Construct a blank IIOMetadataFormatImpl with the given root name and child policy.
- Parameters:
rootName
- the root element namechildPolicy
- the child policy of the root element
- Throws:
IllegalArgumentException
- if rootName is nullIllegalArgumentException
- if childPolicy is CHILD_POLICY_REPEAT or if childPolicy is not a CHILD_POLICY constant
public 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.
- Parameters:
rootName
- the root element nameminChildren
- the minimum number of children that this node can havemaxChildren
- the maximum number of children that this node can have
- Throws:
IllegalArgumentException
- if rootName is nullIllegalArgumentException
- if minChildren is less than zero or greater than maxChildren
protected void addAttribute(String elementName, String attrName, int dataType, boolean required, int listMinLength, int listMaxLength)
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, String minValue, String maxValue, boolean minInclusive, boolean maxInclusive)
protected void addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue, List enumeratedValues)
protected void addBooleanAttribute(String elementName, String attrName, boolean hasDefaultValue, boolean defaultValue)
protected void addElement(String elementName, String parentName, int minChildren, int maxChildren)
protected void addObjectValue(String elementName, Class classType, boolean required, Object defaultValue)
protected void addObjectValue(String elementName, Class classType, boolean required, Object defaultValue, List enumeratedValues)
protected void addObjectValue(String elementName, Class classType, int arrayMinLength, int arrayMaxLength)
protected void addObjectValue(String elementName, Class classType, Object defaultValue, Comparable minValue, Comparable maxValue, boolean minInclusive, boolean maxInclusive)
public abstract boolean canNodeAppear(String elementName, ImageTypeSpecifier specifier)
- Specified by:
- canNodeAppear in interface IIOMetadataFormat
public int getAttributeDataType(String elementName, String attrName)
- Specified by:
- getAttributeDataType in interface IIOMetadataFormat
public String getAttributeDefaultValue(String elementName, String attrName)
- Specified by:
- getAttributeDefaultValue in interface IIOMetadataFormat
public String getAttributeDescription(String elementName, String attrName, Locale locale)
- Specified by:
- getAttributeDescription in interface IIOMetadataFormat
public String[] getAttributeEnumerations(String elementName, String attrName)
- Specified by:
- getAttributeEnumerations in interface IIOMetadataFormat
public int getAttributeListMaxLength(String elementName, String attrName)
- Specified by:
- getAttributeListMaxLength in interface IIOMetadataFormat
public int getAttributeListMinLength(String elementName, String attrName)
- Specified by:
- getAttributeListMinLength in interface IIOMetadataFormat
public String getAttributeMaxValue(String elementName, String attrName)
- Specified by:
- getAttributeMaxValue in interface IIOMetadataFormat
public String getAttributeMinValue(String elementName, String attrName)
- Specified by:
- getAttributeMinValue in interface IIOMetadataFormat
public String[] getAttributeNames(String elementName)
- Specified by:
- getAttributeNames in interface IIOMetadataFormat
public int getAttributeValueType(String elementName, String attrName)
- Specified by:
- getAttributeValueType in interface IIOMetadataFormat
public String[] getChildNames(String elementName)
- Specified by:
- getChildNames in interface IIOMetadataFormat
public int getChildPolicy(String elementName)
- Specified by:
- getChildPolicy in interface IIOMetadataFormat
public String getElementDescription(String elementName, Locale locale)
- Specified by:
- getElementDescription in interface IIOMetadataFormat
public int getElementMaxChildren(String elementName)
- Specified by:
- getElementMaxChildren in interface IIOMetadataFormat
public int getElementMinChildren(String elementName)
- Specified by:
- getElementMinChildren in interface IIOMetadataFormat
public int getObjectArrayMaxLength(String elementName)
- Specified by:
- getObjectArrayMaxLength in interface IIOMetadataFormat
public int getObjectArrayMinLength(String elementName)
- Specified by:
- getObjectArrayMinLength in interface IIOMetadataFormat
public Class getObjectClass(String elementName)
- Specified by:
- getObjectClass in interface IIOMetadataFormat
public Object getObjectDefaultValue(String elementName)
- Specified by:
- getObjectDefaultValue in interface IIOMetadataFormat
public Object[] getObjectEnumerations(String elementName)
- Specified by:
- getObjectEnumerations in interface IIOMetadataFormat
public Comparable getObjectMaxValue(String elementName)
- Specified by:
- getObjectMaxValue in interface IIOMetadataFormat
public Comparable getObjectMinValue(String elementName)
- Specified by:
- getObjectMinValue in interface IIOMetadataFormat
public int getObjectValueType(String elementName)
- Specified by:
- getObjectValueType in interface IIOMetadataFormat
public boolean isAttributeRequired(String elementName, String attrName)
- Specified by:
- isAttributeRequired in interface IIOMetadataFormat