Java Doc for IIOMetadataFormatImpl.java in  » 6.0-JDK-Core » image » javax » imageio » metadata » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » image » javax.imageio.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.imageio.metadata.IIOMetadataFormatImpl

IIOMetadataFormatImpl
abstract public class IIOMetadataFormatImpl implements IIOMetadataFormat(Code)
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(StringLocale)
version:
   0.5


Inner Class :class Element
Inner Class :class Attribute
Inner Class :class ObjectValue

Field Summary
final public static  StringstandardMetadataFormatName
     A String constant containing the standard format name, "javax_imageio_1.0".

Constructor Summary
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.

Method Summary
protected  voidaddAttribute(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  voidaddAttribute(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  voidaddAttribute(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  voidaddAttribute(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  voidaddBooleanAttribute(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  voidaddChildElement(String elementName, String parentName)
     Adds an existing element to the list of legal children for a given parent node type.
protected  voidaddElement(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  voidaddElement(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  voidaddObjectValue(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  voidaddObjectValue(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.
protected  voidaddObjectValue(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.
protected  voidaddObjectValue(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.
abstract public  booleancanNodeAppear(String elementName, ImageTypeSpecifier imageType)
    
public  intgetAttributeDataType(String elementName, String attrName)
    
public  StringgetAttributeDefaultValue(String elementName, String attrName)
    
public  StringgetAttributeDescription(String elementName, String attrName, Locale locale)
     Returns a String containing a description of the named attribute, or null.
public  String[]getAttributeEnumerations(String elementName, String attrName)
    
public  intgetAttributeListMaxLength(String elementName, String attrName)
    
public  intgetAttributeListMinLength(String elementName, String attrName)
    
public  StringgetAttributeMaxValue(String elementName, String attrName)
    
public  StringgetAttributeMinValue(String elementName, String attrName)
    
public  String[]getAttributeNames(String elementName)
    
public  intgetAttributeValueType(String elementName, String attrName)
    
public  String[]getChildNames(String elementName)
    
public  intgetChildPolicy(String elementName)
    
public  StringgetElementDescription(String elementName, Locale locale)
     Returns a String containing a description of the named element, or null.
public  intgetElementMaxChildren(String elementName)
    
public  intgetElementMinChildren(String elementName)
    
public  intgetObjectArrayMaxLength(String elementName)
    
public  intgetObjectArrayMinLength(String elementName)
    
public  ClassgetObjectClass(String elementName)
    
public  ObjectgetObjectDefaultValue(String elementName)
    
public  Object[]getObjectEnumerations(String elementName)
    
public  ComparablegetObjectMaxValue(String elementName)
    
public  ComparablegetObjectMinValue(String elementName)
    
public  intgetObjectValueType(String elementName)
    
protected  StringgetResourceBaseName()
     Returns the currently set base name for locating ResourceBundles.
public  StringgetRootName()
    
public static  IIOMetadataFormatgetStandardFormatInstance()
     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  booleanisAttributeRequired(String elementName, String attrName)
    
protected  voidremoveAttribute(String elementName, String attrName)
     Removes an attribute from a previously defined element.
protected  voidremoveElement(String elementName)
     Removes an element from the format.
protected  voidremoveObjectValue(String elementName)
     Disallows an Object reference from being stored in nodes implementing the named element.
protected  voidsetResourceBaseName(String resourceBaseName)
     Sets a new base name for locating ResourceBundles containing descriptions of elements and attributes for this format.

Field Detail
standardMetadataFormatName
final public static String standardMetadataFormatName(Code)
A String constant containing the standard format name, "javax_imageio_1.0".




Constructor Detail
IIOMetadataFormatImpl
public IIOMetadataFormatImpl(String rootName, int childPolicy)(Code)
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.
Parameters:
  childPolicy - one of the CHILD_POLICY_* constants,other than CHILD_POLICY_REPEAT.
exception:
  IllegalArgumentException - if rootName isnull.
exception:
  IllegalArgumentException - if childPolicy isnot one of the predefined constants.



IIOMetadataFormatImpl
public IIOMetadataFormatImpl(String rootName, int minChildren, int maxChildren)(Code)
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.
Parameters:
  minChildren - the minimum number of children of the node.
Parameters:
  maxChildren - the maximum number of children of the node.
exception:
  IllegalArgumentException - if rootName isnull.
exception:
  IllegalArgumentException - if minChildrenis negative or larger than maxChildren.




Method Detail
addAttribute
protected void addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue)(Code)
Adds a new attribute to a previously defined element that may be set to an arbitrary value.
Parameters:
  elementName - the name of the element.
Parameters:
  attrName - the name of the attribute being added.
Parameters:
  dataType - the data type (string format) of the attribute,one of the DATATYPE_* constants.
Parameters:
  required - true if the attribute must be present.
Parameters:
  defaultValue - the default value for the attribute, ornull.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for thisformat.
exception:
  IllegalArgumentException - if attrName isnull.
exception:
  IllegalArgumentException - if dataType isnot one of the predefined constants.



addAttribute
protected void addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue, List<String> enumeratedValues)(Code)
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.
Parameters:
  attrName - the name of the attribute being added.
Parameters:
  dataType - the data type (string format) of the attribute,one of the DATATYPE_* constants.
Parameters:
  required - true if the attribute must be present.
Parameters:
  defaultValue - the default value for the attribute, ornull.
Parameters:
  enumeratedValues - a List ofStrings containing the legal values for theattribute.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for thisformat.
exception:
  IllegalArgumentException - if attrName isnull.
exception:
  IllegalArgumentException - if dataType isnot one of the predefined constants.
exception:
  IllegalArgumentException - ifenumeratedValues is null.
exception:
  IllegalArgumentException - ifenumeratedValues does not contain at least oneentry.
exception:
  IllegalArgumentException - ifenumeratedValues contains an element that is not aString or is null.



addAttribute
protected void addAttribute(String elementName, String attrName, int dataType, boolean required, String defaultValue, String minValue, String maxValue, boolean minInclusive, boolean maxInclusive)(Code)
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.
Parameters:
  attrName - the name of the attribute being added.
Parameters:
  dataType - the data type (string format) of the attribute,one of the DATATYPE_* constants.
Parameters:
  required - true if the attribute must be present.
Parameters:
  defaultValue - the default value for the attribute, ornull.
Parameters:
  minValue - the smallest (inclusive or exclusive dependingon the value of minInclusive) legal value for theattribute, as a String.
Parameters:
  maxValue - the largest (inclusive or exclusive dependingon the value of minInclusive) legal value for theattribute, as a String.
Parameters:
  minInclusive - true if minValueis inclusive.
Parameters:
  maxInclusive - true if maxValueis inclusive.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for thisformat.
exception:
  IllegalArgumentException - if attrName isnull.
exception:
  IllegalArgumentException - if dataType isnot one of the predefined constants.



addAttribute
protected void addAttribute(String elementName, String attrName, int dataType, boolean required, int listMinLength, int listMaxLength)(Code)
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.
Parameters:
  attrName - the name of the attribute being added.
Parameters:
  dataType - the data type (string format) of the attribute,one of the DATATYPE_* constants.
Parameters:
  required - true if the attribute must be present.
Parameters:
  listMinLength - the smallest legal number of list items.
Parameters:
  listMaxLength - the largest legal number of list items.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for thisformat.
exception:
  IllegalArgumentException - if attrName isnull.
exception:
  IllegalArgumentException - if dataType isnot one of the predefined constants.
exception:
  IllegalArgumentException - iflistMinLength is negative or larger thanlistMaxLength.



addBooleanAttribute
protected void addBooleanAttribute(String elementName, String attrName, boolean hasDefaultValue, boolean defaultValue)(Code)
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.
Parameters:
  attrName - the name of the attribute being added.
Parameters:
  hasDefaultValue - true if a default valueshould be present.
Parameters:
  defaultValue - the default value for the attribute as aboolean, ignored if hasDefaultValueis false.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for thisformat.
exception:
  IllegalArgumentException - if attrName isnull.



addChildElement
protected void addChildElement(String elementName, String parentName)(Code)
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 thenew parent of the element.
Parameters:
  elementName - the name of the element to be addded as achild.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for thisformat.
exception:
  IllegalArgumentException - if parentNameis null, or is not a legal element name for thisformat.



addElement
protected void addElement(String elementName, String parentName, int childPolicy)(Code)
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.
Parameters:
  parentName - the name of the element that will be theparent of the new element.
Parameters:
  childPolicy - one of the CHILD_POLICY_*constants, other than CHILD_POLICY_REPEAT,indicating the child policy of the new element.
exception:
  IllegalArgumentException - if parentNameis null, or is not a legal element name for thisformat.
exception:
  IllegalArgumentException - if childPolicyis not one of the predefined constants.



addElement
protected void addElement(String elementName, String parentName, int minChildren, int maxChildren)(Code)
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.
Parameters:
  parentName - the name of the element that will be theparent of the new element.
Parameters:
  minChildren - the minimum number of children of the node.
Parameters:
  maxChildren - the maximum number of children of the node.
exception:
  IllegalArgumentException - if parentNameis null, or is not a legal element name for thisformat.
exception:
  IllegalArgumentException - if minChildrenis negative or larger than maxChildren.



addObjectValue
protected void addObjectValue(String elementName, Class<T> classType, boolean required, T defaultValue)(Code)
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.
Parameters:
  classType - a Class variable indicating thelegal class type for the object value.
Parameters:
  required - true if an object value must be present.
Parameters:
  defaultValue - the default value for theObject reference, or null.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for this format.




addObjectValue
protected void addObjectValue(String elementName, Class<T> classType, boolean required, T defaultValue, List<? extends T> enumeratedValues)(Code)
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.
Parameters:
  classType - a Class variable indicating thelegal class type for the object value.
Parameters:
  required - true if an object value must be present.
Parameters:
  defaultValue - the default value for theObject reference, or null.
Parameters:
  enumeratedValues - a List ofObjects containing the legal values for theobject reference.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for this format.
exception:
  IllegalArgumentException - ifenumeratedValues is null.
exception:
  IllegalArgumentException - ifenumeratedValues does not contain at least oneentry.
exception:
  IllegalArgumentException - ifenumeratedValues contains an element that is notan instance of the class type denoted by classTypeor is null.




addObjectValue
protected void addObjectValue(String elementName, Class<T> classType, T defaultValue, Comparable<? super T> minValue, Comparable<? super T> maxValue, boolean minInclusive, boolean maxInclusive)(Code)
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.
Parameters:
  classType - a Class variable indicating thelegal class type for the object value.
Parameters:
  defaultValue - the default value for the
Parameters:
  minValue - the smallest (inclusive or exclusive dependingon the value of minInclusive) legal value for theobject value, as a String.
Parameters:
  maxValue - the largest (inclusive or exclusive dependingon the value of minInclusive) legal value for theobject value, as a String.
Parameters:
  minInclusive - true if minValueis inclusive.
Parameters:
  maxInclusive - true if maxValueis inclusive.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for thisformat.




addObjectValue
protected void addObjectValue(String elementName, Class classType, int arrayMinLength, int arrayMaxLength)(Code)
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.
Parameters:
  classType - a Class variable indicating thelegal class type for the object value.
Parameters:
  arrayMinLength - the smallest legal length for the array.
Parameters:
  arrayMaxLength - the largest legal length for the array.
exception:
  IllegalArgumentException - if elementName isnot a legal element name for this format.




canNodeAppear
abstract public boolean canNodeAppear(String elementName, ImageTypeSpecifier imageType)(Code)



getAttributeDataType
public int getAttributeDataType(String elementName, String attrName)(Code)



getAttributeDefaultValue
public String getAttributeDefaultValue(String elementName, String attrName)(Code)



getAttributeDescription
public String getAttributeDescription(String elementName, String attrName, Locale locale)(Code)
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.
Parameters:
  elementName - the name of the element.
Parameters:
  attrName - the name of the attribute.
Parameters:
  locale - the Locale for which localizationwill be attempted, or null. the attribute description.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for this format.
exception:
  IllegalArgumentException - if attrName isnull or is not a legal attribute name for thiselement.
See Also:   IIOMetadataFormatImpl.setResourceBaseName




getAttributeEnumerations
public String[] getAttributeEnumerations(String elementName, String attrName)(Code)



getAttributeListMaxLength
public int getAttributeListMaxLength(String elementName, String attrName)(Code)



getAttributeListMinLength
public int getAttributeListMinLength(String elementName, String attrName)(Code)



getAttributeMaxValue
public String getAttributeMaxValue(String elementName, String attrName)(Code)



getAttributeMinValue
public String getAttributeMinValue(String elementName, String attrName)(Code)



getAttributeNames
public String[] getAttributeNames(String elementName)(Code)



getAttributeValueType
public int getAttributeValueType(String elementName, String attrName)(Code)



getChildNames
public String[] getChildNames(String elementName)(Code)



getChildPolicy
public int getChildPolicy(String elementName)(Code)



getElementDescription
public String getElementDescription(String elementName, Locale locale)(Code)
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.
Parameters:
  elementName - the name of the element.
Parameters:
  locale - the Locale for which localizationwill be attempted. the element description.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for this format.
See Also:   IIOMetadataFormatImpl.setResourceBaseName




getElementMaxChildren
public int getElementMaxChildren(String elementName)(Code)



getElementMinChildren
public int getElementMinChildren(String elementName)(Code)



getObjectArrayMaxLength
public int getObjectArrayMaxLength(String elementName)(Code)



getObjectArrayMinLength
public int getObjectArrayMinLength(String elementName)(Code)



getObjectClass
public Class getObjectClass(String elementName)(Code)



getObjectDefaultValue
public Object getObjectDefaultValue(String elementName)(Code)



getObjectEnumerations
public Object[] getObjectEnumerations(String elementName)(Code)



getObjectMaxValue
public Comparable getObjectMaxValue(String elementName)(Code)



getObjectMinValue
public Comparable getObjectMinValue(String elementName)(Code)



getObjectValueType
public int getObjectValueType(String elementName)(Code)



getResourceBaseName
protected String getResourceBaseName()(Code)
Returns the currently set base name for locating ResourceBundles. a String containing the base name.
See Also:   IIOMetadataFormatImpl.setResourceBaseName



getRootName
public String getRootName()(Code)



getStandardFormatInstance
public static IIOMetadataFormat getStandardFormatInstance()(Code)
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. a predefined IIOMetadataFormat instance.



isAttributeRequired
public boolean isAttributeRequired(String elementName, String attrName)(Code)



removeAttribute
protected void removeAttribute(String elementName, String attrName)(Code)
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.
Parameters:
  attrName - the name of the attribute being removed.
exception:
  IllegalArgumentException - if elementNameis null, or is not a legal element name for this format.



removeElement
protected void removeElement(String elementName)(Code)
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.



removeObjectValue
protected void removeObjectValue(String elementName)(Code)
Disallows an Object reference from being stored in nodes implementing the named element.
Parameters:
  elementName - the name of the element.
exception:
  IllegalArgumentException - if elementName isnot a legal element name for this format.



setResourceBaseName
protected void setResourceBaseName(String resourceBaseName)(Code)
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 newbase name.
exception:
  IllegalArgumentException - ifresourceBaseName is null.
See Also:   IIOMetadataFormatImpl.getResourceBaseName




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.