Java Doc for DefaultParameterDescriptor.java in  » GIS » GeoTools-2.4.1 » org » geotools » parameter » 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 » GIS » GeoTools 2.4.1 » org.geotools.parameter 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.referencing.AbstractIdentifiedObject
   org.geotools.parameter.AbstractParameterDescriptor
      org.geotools.parameter.DefaultParameterDescriptor

All known Subclasses:   org.geotools.referencing.operation.projection.ModifiedParameterDescriptor,
DefaultParameterDescriptor
public class DefaultParameterDescriptor extends AbstractParameterDescriptor implements ParameterDescriptor(Code)
The definition of a parameter used by an operation method. For most parameter values are numeric, but other types of parameter values are possible.

For numeric values, the is usually .class, .class or some other Java wrapper class.

This class contains numerous convenience constructors. But all of them ultimately invoke . All other constructors are just shortcuts.
since:
   2.1
version:
   $Id: DefaultParameterDescriptor.java 24973 2007-03-30 21:57:48Z chorner $
author:
   Martin Desruisseaux
See Also:   Parameter
See Also:   DefaultParameterDescriptorGroup




Constructor Summary
public  DefaultParameterDescriptor(ParameterDescriptor descriptor)
     Constructs a descriptor with the same values than the specified one.
public  DefaultParameterDescriptor(String name, int defaultValue, int minimum, int maximum)
     Constructs a mandatory parameter for a range of integer values.
public  DefaultParameterDescriptor(Map properties, int defaultValue, int minimum, int maximum, boolean required)
     Constructs a parameter for a range of integer values.
public  DefaultParameterDescriptor(String name, double defaultValue, double minimum, double maximum, Unit unit)
     Constructs a mandatory parameter for a range of floating point values.
public  DefaultParameterDescriptor(Map properties, double defaultValue, double minimum, double maximum, Unit unit, boolean required)
     Constructs a parameter for a range of floating point values.
public  DefaultParameterDescriptor(String name, CharSequence remarks, Object defaultValue, boolean required)
     Constructs a parameter for a name and a default value.
public  DefaultParameterDescriptor(String name, CodeList defaultValue)
     Constructs a parameter for a (or enumeration).
 DefaultParameterDescriptor(String name, Class valueClass, CodeList defaultValue)
     Constructs a parameter for a (or enumeration).
public  DefaultParameterDescriptor(String name, Class valueClass, Object[] validValues, Object defaultValue)
     Constructs a mandatory parameter for a set of predefined values.
public  DefaultParameterDescriptor(Citation authority, String name, Class valueClass, Object[] validValues, Object defaultValue, Comparable minimum, Comparable maximum, Unit unit, boolean required)
     Constructs a parameter from an authority and a name.
public  DefaultParameterDescriptor(Map properties, Class valueClass, Object[] validValues, Object defaultValue, Comparable minimum, Comparable maximum, Unit unit, boolean required)
     Constructs a parameter from a set of properties.

Method Summary
public  GeneralParameterValuecreateValue()
     Creates a new instance of initialized with the . The for the created parameter value will be this object.

If the specified at construction time was a primitive type (e.g.

public  booleanequals(AbstractIdentifiedObject object, boolean compareMetadata)
     Compares the specified object with this parameter for equality.
Parameters:
  object - The object to compare to this .
Parameters:
  compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations.
public  ObjectgetDefaultValue()
     Returns the default value for the parameter.
public  intgetMaximumOccurs()
     The maximum number of times that values for this parameter group or parameter can be included.
public  ComparablegetMaximumValue()
     Returns the maximum parameter value.
public  ComparablegetMinimumValue()
     Returns the minimum parameter value.
public  UnitgetUnit()
     Returns the unit for , and values.
public  SetgetValidValues()
     If this parameter allows only a finite set of values, returns this set. This set is usually a {linkplain org.opengis.util.CodeList code list} or enumerations.
public  ClassgetValueClass()
     Returns the class that describe the type of the parameter.
public  inthashCode()
     Returns a hash value for this parameter. The hash code value.


Constructor Detail
DefaultParameterDescriptor
public DefaultParameterDescriptor(ParameterDescriptor descriptor)(Code)
Constructs a descriptor with the same values than the specified one. This copy constructor may be used in order to wraps an arbitrary implementation into a Geotools one.
since:
   2.2



DefaultParameterDescriptor
public DefaultParameterDescriptor(String name, int defaultValue, int minimum, int maximum)(Code)
Constructs a mandatory parameter for a range of integer values.
Parameters:
  name - The parameter name.
Parameters:
  defaultValue - The default value for the parameter.
Parameters:
  minimum - The minimum parameter value, or Integer.MIN_VALUE if none.
Parameters:
  maximum - The maximum parameter value, or Integer.MAX_VALUE if none.



DefaultParameterDescriptor
public DefaultParameterDescriptor(Map properties, int defaultValue, int minimum, int maximum, boolean required)(Code)
Constructs a parameter for a range of integer values.
Parameters:
  properties - The parameter properties (name, identifiers, alias...).
Parameters:
  defaultValue - The default value for the parameter.
Parameters:
  minimum - The minimum parameter value, or Integer.MIN_VALUE if none.
Parameters:
  maximum - The maximum parameter value, or Integer.MAX_VALUE if none.
Parameters:
  required - true if this parameter is required, false otherwise.



DefaultParameterDescriptor
public DefaultParameterDescriptor(String name, double defaultValue, double minimum, double maximum, Unit unit)(Code)
Constructs a mandatory parameter for a range of floating point values.
Parameters:
  name - The parameter name.
Parameters:
  defaultValue - The default value for the parameter, or Double.NaN if none.
Parameters:
  minimum - The minimum parameter value, or Double.NEGATIVE_INFINITY if none.
Parameters:
  maximum - The maximum parameter value, or Double.POSITIVE_INFINITY if none.
Parameters:
  unit - The unit for default, minimum and maximum values.



DefaultParameterDescriptor
public DefaultParameterDescriptor(Map properties, double defaultValue, double minimum, double maximum, Unit unit, boolean required)(Code)
Constructs a parameter for a range of floating point values.
Parameters:
  properties - The parameter properties (name, identifiers, alias...).
Parameters:
  defaultValue - The default value for the parameter, or Double.NaN if none.
Parameters:
  minimum - The minimum parameter value, or Double.NEGATIVE_INFINITY if none.
Parameters:
  maximum - The maximum parameter value, or Double.POSITIVE_INFINITY if none.
Parameters:
  unit - The unit for default, minimum and maximum values.
Parameters:
  required - true if this parameter is required, false otherwise.



DefaultParameterDescriptor
public DefaultParameterDescriptor(String name, CharSequence remarks, Object defaultValue, boolean required)(Code)
Constructs a parameter for a name and a default value. The parameter type will be assumed the same than the default value class.
Parameters:
  name - The parameter name.
Parameters:
  remarks - An optional description as a String or anInternationalString, or null if none.
Parameters:
  defaultValue - The default value.
Parameters:
  required - true if this parameter is required, false otherwise.



DefaultParameterDescriptor
public DefaultParameterDescriptor(String name, CodeList defaultValue)(Code)
Constructs a parameter for a (or enumeration).
Parameters:
  name - The parameter name.
Parameters:
  defaultValue - The default value.



DefaultParameterDescriptor
DefaultParameterDescriptor(String name, Class valueClass, CodeList defaultValue)(Code)
Constructs a parameter for a (or enumeration). This constructor is used by the DefaultParameterDescriptor.DefaultParameterDescriptor(String,CodeList) constructor.
Parameters:
  name - The parameter name.
Parameters:
  valueClass - The class that describe the type of the parameter.Must be a subclass of CodeList.
Parameters:
  defaultValue - The default value, or null .



DefaultParameterDescriptor
public DefaultParameterDescriptor(String name, Class valueClass, Object[] validValues, Object defaultValue)(Code)
Constructs a mandatory parameter for a set of predefined values.
Parameters:
  name - The parameter name.
Parameters:
  valueClass - The class that describe the type of the parameter.
Parameters:
  validValues - A finite set of valid values (usually from a{linkplain org.opengis.util.CodeList code list}) or null if it doesn't apply.
Parameters:
  defaultValue - The default value for the parameter, or null .



DefaultParameterDescriptor
public DefaultParameterDescriptor(Citation authority, String name, Class valueClass, Object[] validValues, Object defaultValue, Comparable minimum, Comparable maximum, Unit unit, boolean required)(Code)
Constructs a parameter from an authority and a name.
Parameters:
  authority - The authority (e.g.org.geotools.metadata.iso.citation.Citations.OGC OGC).
Parameters:
  name - The parameter name.
Parameters:
  valueClass - The class that describe the type of the parameter.
Parameters:
  validValues - A finite set of valid values (usually from a{linkplain org.opengis.util.CodeList code list}) or null if it doesn't apply.
Parameters:
  defaultValue - The default value for the parameter, or null .
Parameters:
  minimum - The minimum parameter value, or null .
Parameters:
  maximum - The maximum parameter value, or null .
Parameters:
  unit - The unit for default, minimum and maximum values.
Parameters:
  required - true if this parameter is required,or false if it is optional.
since:
   2.2



DefaultParameterDescriptor
public DefaultParameterDescriptor(Map properties, Class valueClass, Object[] validValues, Object defaultValue, Comparable minimum, Comparable maximum, Unit unit, boolean required)(Code)
Constructs a parameter from a set of properties. The properties map is given unchanged to the .
Parameters:
  properties - Set of properties. Should contains at least "name".
Parameters:
  valueClass - The class that describe the type of the parameter.
Parameters:
  validValues - A finite set of valid values (usually from a{linkplain org.opengis.util.CodeList code list}) or null if it doesn't apply.
Parameters:
  defaultValue - The default value for the parameter, or null .
Parameters:
  minimum - The minimum parameter value, or null .
Parameters:
  maximum - The maximum parameter value, or null .
Parameters:
  unit - The unit for default, minimum and maximum values.
Parameters:
  required - true if this parameter is required,or false if it is optional.




Method Detail
createValue
public GeneralParameterValue createValue()(Code)
Creates a new instance of initialized with the . The for the created parameter value will be this object.

If the specified at construction time was a primitive type (e.g. Double. instead of .class), then this method may returns a specialized parameter value implementation for this primitive type. Specialized implementations may use less storage space and be more flexible during conversions (for example from float to String ), but this flexibility is not always wanted.




equals
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)
Compares the specified object with this parameter for equality.
Parameters:
  object - The object to compare to this .
Parameters:
  compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. true if both objects are equal.



getDefaultValue
public Object getDefaultValue()(Code)
Returns the default value for the parameter. The return type can be any type including a Number or a String . If there is no default value, then this method returns null . The default value, or null in none.



getMaximumOccurs
public int getMaximumOccurs()(Code)
The maximum number of times that values for this parameter group or parameter can be included. For a , the value is always 1.
See Also:   DefaultParameterDescriptor.getMinimumOccurs



getMaximumValue
public Comparable getMaximumValue()(Code)
Returns the maximum parameter value. If there is no maximum value, or if maximum value is inappropriate for the , then this method returns null . The minimum parameter value (often an instance of Double), or null .



getMinimumValue
public Comparable getMinimumValue()(Code)
Returns the minimum parameter value. If there is no minimum value, or if minimum value is inappropriate for the , then this method returns null . The minimum parameter value (often an instance of Double), or null .



getUnit
public Unit getUnit()(Code)
Returns the unit for , and values. This attribute apply only if the values is of numeric type (usually an instance of Double ). The unit for numeric value, or null if itdoesn't apply to the value type.



getValidValues
public Set getValidValues()(Code)
If this parameter allows only a finite set of values, returns this set. This set is usually a {linkplain org.opengis.util.CodeList code list} or enumerations. This method returns null if this parameter doesn't limits values to a finite set. A finite set of valid values (usually from a{linkplain org.opengis.util.CodeList code list}),or null if it doesn't apply.



getValueClass
public Class getValueClass()(Code)
Returns the class that describe the type of the parameter. If the value class specified at construction time was a primitive type (e.g. double ), it is converted to the corresponding wrapper class (e.g. Double ). The parameter value class (never a primitive type).



hashCode
public int hashCode()(Code)
Returns a hash value for this parameter. The hash code value. This value doesn't need to be the samein past or future versions of this class.



Methods inherited from org.geotools.parameter.AbstractParameterDescriptor
abstract public GeneralParameterValue createValue()(Code)(Java Doc)
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc)
protected String formatWKT(Formatter formatter)(Code)(Java Doc)
abstract public int getMaximumOccurs()(Code)(Java Doc)
public int getMinimumOccurs()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)

Fields inherited from org.geotools.referencing.AbstractIdentifiedObject
final public static GenericName[] EMPTY_ALIAS_ARRAY(Code)(Java Doc)
final public static ReferenceIdentifier[] EMPTY_IDENTIFIER_ARRAY(Code)(Java Doc)
final public static Comparator IDENTIFIER_COMPARATOR(Code)(Java Doc)
final public static Comparator NAME_COMPARATOR(Code)(Java Doc)
final public static Comparator REMARKS_COMPARATOR(Code)(Java Doc)

Methods inherited from org.geotools.referencing.AbstractIdentifiedObject
protected static Set asSet(Object[] array)(Code)(Java Doc)
protected static void ensureAngularUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc)
protected static void ensureLinearUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc)
protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc)
protected static void ensureNonNull(String name, Object[] array, int index) throws IllegalArgumentException(Code)(Java Doc)
protected static void ensureTimeUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc)
final public boolean equals(Object object)(Code)(Java Doc)
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc)
protected static boolean equals(IdentifiedObject object1, IdentifiedObject object2, boolean compareMetadata)(Code)(Java Doc)
protected static boolean equals(IdentifiedObject[] array1, IdentifiedObject[] array2, boolean compareMetadata)(Code)(Java Doc)
protected static boolean equals(Collection collection1, Collection collection2, boolean compareMetadata)(Code)(Java Doc)
public Collection getAlias()(Code)(Java Doc)
public ReferenceIdentifier getIdentifier(Citation authority)(Code)(Java Doc)
public static ReferenceIdentifier getIdentifier(IdentifiedObject info, Citation authority)(Code)(Java Doc)
public Set getIdentifiers()(Code)(Java Doc)
public ReferenceIdentifier getName()(Code)(Java Doc)
public String getName(Citation authority)(Code)(Java Doc)
public static String getName(IdentifiedObject info, Citation authority)(Code)(Java Doc)
public static Map getProperties(IdentifiedObject info)(Code)(Java Doc)
public static Map getProperties(IdentifiedObject info, Citation authority)(Code)(Java Doc)
public InternationalString getRemarks()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean nameMatches(String name)(Code)(Java Doc)
public static boolean nameMatches(IdentifiedObject object, String name)(Code)(Java Doc)
public static boolean nameMatches(IdentifiedObject o1, IdentifiedObject o2)(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.