Java Doc for ParameterListImpl.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.ParameterListImpl

All known Subclasses:   javax.media.jai.tilecodec.TileCodecParameterList,  javax.media.jai.remote.NegotiableCapability,
ParameterListImpl
public class ParameterListImpl implements ParameterList,java.io.Serializable(Code)
A concrete implementation of the ParameterList interface. The number, names, Class types and default values are specified via the associated ParameterListDescriptor which should be supplied at construction time. This default implementation should be sufficient for most ParameterLists and normally need not be sub-classed.
See Also:   ParameterList
See Also:   ParameterListDescriptor
See Also:   ParameterListDescriptorImpl
since:
   JAI 1.1



Constructor Summary
public  ParameterListImpl(ParameterListDescriptor descriptor)
     Creates a ParameterListImpl using the specified ParameterListDescriptor.

Method Summary
public  booleangetBooleanParameter(String paramName)
     A convenience method to return a parameter as a boolean.
public  bytegetByteParameter(String paramName)
     A convenience method to return a parameter as a byte.
public  chargetCharParameter(String paramName)
     A convenience method to return a parameter as a char.
public  doublegetDoubleParameter(String paramName)
     A convenience method to return a parameter as a double.
public  floatgetFloatParameter(String paramName)
     A convenience method to return a parameter as a float.
public  intgetIntParameter(String paramName)
     A convenience method to return a parameter as an int.
public  longgetLongParameter(String paramName)
     A convenience method to return a parameter as a long.
public  ObjectgetObjectParameter(String paramName)
     Gets a named parameter as an Object.
public  ParameterListDescriptorgetParameterListDescriptor()
     Returns the associated ParameterListDescriptor.
public  shortgetShortParameter(String paramName)
     A convenience method to return a parameter as a short.
public  ParameterListsetParameter(String paramName, byte b)
     Sets a named parameter to a byte value.
public  ParameterListsetParameter(String paramName, boolean b)
     Sets a named parameter to a boolean value.
public  ParameterListsetParameter(String paramName, char c)
     Sets a named parameter to a char value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  c - a char value for the parameter.
public  ParameterListsetParameter(String paramName, short s)
     Sets a named parameter to a short value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  s - a short value for the parameter.
public  ParameterListsetParameter(String paramName, int i)
     Sets a named parameter to an int value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  i - an int value for the parameter.
public  ParameterListsetParameter(String paramName, long l)
     Sets a named parameter to a long value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  l - a long value for the parameter.
public  ParameterListsetParameter(String paramName, float f)
     Sets a named parameter to a float value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  f - a float value for the parameter.
public  ParameterListsetParameter(String paramName, double d)
     Sets a named parameter to a double value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  d - a double value for the parameter.
public  ParameterListsetParameter(String paramName, Object obj)
     Sets a named parameter to an Object value.


Constructor Detail
ParameterListImpl
public ParameterListImpl(ParameterListDescriptor descriptor)(Code)
Creates a ParameterListImpl using the specified ParameterListDescriptor. Initializes the parameters to the defaults (could be ParameterListDescriptor.NO_PARAMETER_DEFAULT) specified by descriptor
Parameters:
  descriptor - a ParameterListDescriptor describingthe parameter names, defaults etc.
throws:
  IllegalArgumentException - if descriptor is null




Method Detail
getBooleanParameter
public boolean getBooleanParameter(String paramName)(Code)
A convenience method to return a parameter as a boolean.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getByteParameter
public byte getByteParameter(String paramName)(Code)
A convenience method to return a parameter as a byte.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getCharParameter
public char getCharParameter(String paramName)(Code)
A convenience method to return a parameter as a char.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getDoubleParameter
public double getDoubleParameter(String paramName)(Code)
A convenience method to return a parameter as a double.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getFloatParameter
public float getFloatParameter(String paramName)(Code)
A convenience method to return a parameter as a float.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getIntParameter
public int getIntParameter(String paramName)(Code)
A convenience method to return a parameter as an int.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getLongParameter
public long getLongParameter(String paramName)(Code)
A convenience method to return a parameter as a long.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getObjectParameter
public Object getObjectParameter(String paramName)(Code)
Gets a named parameter as an Object. Parameters belonging to a primitive type, such as int, will be returned as a member of the corresponding wrapper class, such as Integer
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



getParameterListDescriptor
public ParameterListDescriptor getParameterListDescriptor()(Code)
Returns the associated ParameterListDescriptor.



getShortParameter
public short getShortParameter(String paramName)(Code)
A convenience method to return a parameter as a short.
Parameters:
  paramName - the name of the parameter to be returned.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  ClassCastException - if the parameter is of a different type.
throws:
  IllegalStateException - if the parameter value is stillParameterListDescriptor.NO_PARAMETER_DEFAULT



setParameter
public ParameterList setParameter(String paramName, byte b)(Code)
Sets a named parameter to a byte value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  b - a byte value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Byte
throws:
  IllegalArgumentException - if the parameter value is invalid.



setParameter
public ParameterList setParameter(String paramName, boolean b)(Code)
Sets a named parameter to a boolean value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  b - a boolean value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Boolean
throws:
  IllegalArgumentException - if the parameter value is invalid.



setParameter
public ParameterList setParameter(String paramName, char c)(Code)
Sets a named parameter to a char value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  c - a char value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Character
throws:
  IllegalArgumentException - if the parameter value is invalid.



setParameter
public ParameterList setParameter(String paramName, short s)(Code)
Sets a named parameter to a short value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  s - a short value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Short
throws:
  IllegalArgumentException - if the parameter value is invalid.



setParameter
public ParameterList setParameter(String paramName, int i)(Code)
Sets a named parameter to an int value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  i - an int value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Integer
throws:
  IllegalArgumentException - if the parameter value is invalid.



setParameter
public ParameterList setParameter(String paramName, long l)(Code)
Sets a named parameter to a long value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  l - a long value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Long
throws:
  IllegalArgumentException - if the parameter value is invalid.



setParameter
public ParameterList setParameter(String paramName, float f)(Code)
Sets a named parameter to a float value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  f - a float value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Float
throws:
  IllegalArgumentException - if the parameter value is invalid.



setParameter
public ParameterList setParameter(String paramName, double d)(Code)
Sets a named parameter to a double value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  d - a double value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the class type of parameterpointed to by the paramName is not a Double
throws:
  IllegalArgumentException - if the parameter value is invalid.



setParameter
public ParameterList setParameter(String paramName, Object obj)(Code)
Sets a named parameter to an Object value. Checks are made to verify that the parameter is of the right Class type and that the value is valid.
Parameters:
  paramName - a String naming a parameter.
Parameters:
  obj - an Object value for the parameter.
throws:
  IllegalArgumentException - if paramName is null.
throws:
  IllegalArgumentException - if there is no parameter with thespecified name.
throws:
  IllegalArgumentException - if the parameter value is invalid.



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.