Java Doc for ParameterListDescriptorImpl.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » media » jai » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » javax.media.jai 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.jai.ParameterListDescriptorImpl

ParameterListDescriptorImpl
public class ParameterListDescriptorImpl implements ParameterListDescriptor,java.io.Serializable(Code)
A concrete implementation of the ParameterListDescriptor interface.
See Also:   ParameterListDescriptor
since:
   JAI 1.1



Constructor Summary
public  ParameterListDescriptorImpl()
     Constructor for descriptors that dont have any parameters.
public  ParameterListDescriptorImpl(Object descriptor, String[] paramNames, Class[] paramClasses, Object[] paramDefaults, Object[] validParamValues)
     Constructor.
Parameters:
  descriptor - the object to be reflected upon for enumerated values
Parameters:
  paramNames - the names of each parameter.

Method Summary
public  String[]getEnumeratedParameterNames()
     Return an array of the names of all parameters the type of which is EnumeratedParameter.
public  EnumeratedParameter[]getEnumeratedParameterValues(String parameterName)
     Return an array of EnumeratedParameter objects corresponding to the parameter with the specified name.
Parameters:
  parameterName - The name of the parameter for which theEnumeratedParameter array is to be returned.
throws:
  IllegalArgumentException - if parameterName is nullor if the parameter does not exist.
throws:
  UnsupportedOperationException - if there are no enumeratedparameters associated with the descriptor.
throws:
  IllegalArgumentException - if parameterName isa parameter the class of which is not a subclass ofEnumeratedParameter.
public static  SetgetEnumeratedValues(Object descriptor, Class paramClass)
     Uses reflection to examine "descriptor" for public, static final Fields that are instances of "paramClass".
public  intgetNumParameters()
     Returns the total number of parameters.
public  Class[]getParamClasses()
     Returns an array of Classes that describe the types of parameters.
public  ObjectgetParamDefaultValue(String parameterName)
     Returns the default value of a specified parameter.
public  Object[]getParamDefaults()
     Returns an array of Objects that define the default values of the parameters.
public  String[]getParamNames()
     Returns an array of Strings that are the names of the parameters associated with this descriptor.
public  RangegetParamValueRange(String parameterName)
     Returns the Range that represents the range of valid values for the specified parameter.
public  booleanisParameterValueValid(String parameterName, Object value)
     Checks to see if the specified parameter can take on the specified value.


Constructor Detail
ParameterListDescriptorImpl
public ParameterListDescriptorImpl()(Code)
Constructor for descriptors that dont have any parameters.



ParameterListDescriptorImpl
public ParameterListDescriptorImpl(Object descriptor, String[] paramNames, Class[] paramClasses, Object[] paramDefaults, Object[] validParamValues)(Code)
Constructor.
Parameters:
  descriptor - the object to be reflected upon for enumerated values
Parameters:
  paramNames - the names of each parameter. can be nullif there are no parameters.
Parameters:
  paramClasses - the Class type of each parameter.can be null if there are no parameters.
Parameters:
  paramDefaults - the default values for each parameter. can benull if there are no parameters or ifthere are no default values, in which case the parameterdefaults are assumed to be ParameterListDescriptor.NO_PARAMETER_DEFAULT
Parameters:
  validParamValues - defines the valid values for each parameter.

Each element of this array can be null (if the parameter can take on any value of its class or if it is an enumerated parameterwhose values are to be auto-detected - see getEnumeratedValues), or a Set (for user specified enumeratedvalues) or a Range (for parameters that areComparable.)

The valid set of values for an object which is neither anEnumeratedParameter nor Comparableshould just be the set of all possible instances of the associatedclass, i.e., the parameter has to be an instance of the specifiedclass.

If this array itself is null then it is treatedas an array full of nulls as described above.
throws:
  IllegalArgumentException - if paramNames is non-nulland the number of paramClasses or a non-nullparamDefaults does not match the length ofparamNames
throws:
  IllegalArgumentException - if null is passed in forvalidParamValues for a parameter whoseclass is of EnumeratedParameter type.





Method Detail
getEnumeratedParameterNames
public String[] getEnumeratedParameterNames()(Code)
Return an array of the names of all parameters the type of which is EnumeratedParameter. The requested array of names or null if thereare no parameters with EnumeratedParameter type.



getEnumeratedParameterValues
public EnumeratedParameter[] getEnumeratedParameterValues(String parameterName)(Code)
Return an array of EnumeratedParameter objects corresponding to the parameter with the specified name.
Parameters:
  parameterName - The name of the parameter for which theEnumeratedParameter array is to be returned.
throws:
  IllegalArgumentException - if parameterName is nullor if the parameter does not exist.
throws:
  UnsupportedOperationException - if there are no enumeratedparameters associated with the descriptor.
throws:
  IllegalArgumentException - if parameterName isa parameter the class of which is not a subclass ofEnumeratedParameter. An array of EnumeratedParameter objectsrepresenting the range of values for the named parameter.



getEnumeratedValues
public static Set getEnumeratedValues(Object descriptor, Class paramClass)(Code)
Uses reflection to examine "descriptor" for public, static final Fields that are instances of "paramClass".
Parameters:
  descriptor - the object to be reflected upon.
Parameters:
  paramClass - the parameter class a Set of enumerated values.
throws:
  IllegalArgumentException - if descriptor is nullor paramClass is null
throws:
  IllegalArgumentException - if "paramClass" is not an instance ofEnumeratedParameter



getNumParameters
public int getNumParameters()(Code)
Returns the total number of parameters.



getParamClasses
public Class[] getParamClasses()(Code)
Returns an array of Classes that describe the types of parameters. If there are no parameters, this method returns null.



getParamDefaultValue
public Object getParamDefaultValue(String parameterName)(Code)
Returns the default value of a specified parameter. The default value may be null. If a parameter has no default value, this method returns NO_PARAMETER_DEFAULT.
Parameters:
  parameterName - The name of the parameter whose defaultvalue is queried.
throws:
  IllegalArgumentException - if parameterName is nullor if the parameter does not exist.



getParamDefaults
public Object[] getParamDefaults()(Code)
Returns an array of Objects that define the default values of the parameters. Default values may be null. The NO_PARAMETER_DEFAULT static Object indicates that a parameter has no default value. If there are no parameters, this method returns null.



getParamNames
public String[] getParamNames()(Code)
Returns an array of Strings that are the names of the parameters associated with this descriptor. If there are no parameters, this method returns null.



getParamValueRange
public Range getParamValueRange(String parameterName)(Code)
Returns the Range that represents the range of valid values for the specified parameter. Returns null if the parameter can take on any value or if the valid values are not representable as a Range.
Parameters:
  parameterName - The name of the parameter whose valid rangeof values is to be determined.
throws:
  IllegalArgumentException - if parameterName is nullor if the parameter does not exist.



isParameterValueValid
public boolean isParameterValueValid(String parameterName, Object value)(Code)
Checks to see if the specified parameter can take on the specified value.
Parameters:
  parameterName - The name of the parameter for which thevalidity check is to be performed.
throws:
  IllegalArgumentException - if parameterName is nullor if the parameter does not exist.
throws:
  IllegalArgumentException - if the class of the object "value"is not an instance of the class type of parameterpointed to by the parameterName true, if it is valid to pass this value in for thisparameter, false otherwise.



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.