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


java.lang.Object
   org.geotools.metadata.PropertyAccessor

PropertyAccessor
final class PropertyAccessor (Code)
The getters declared in a GeoAPI interface, together with setters (if any) declared in the Geotools implementation.
version:
   $Id: PropertyAccessor.java 25193 2007-04-18 13:37:38Z desruisseaux $
author:
   Martin Desruisseaux


Field Summary
final  Classimplementation
     The implementation class.
final  Classtype
     The implemented metadata interface.

Constructor Summary
 PropertyAccessor(Class implementation, Class type)
     Creates a new property reader for the specified metadata implementation.

Method Summary
final  intcount()
     Returns the number of properties that can be read.
public  intcount(Object metadata, int max)
     Counts the number of non-null properties.
final  voidfreeze(Object metadata)
    
final  Objectget(int index, Object metadata)
     Returns the value for the specified metadata, or null if none.
static  ClassgetType(Class implementation, String interfacePackage)
     Returns the metadata interface implemented by the specified implementation. Only one metadata interface can be implemented.
Parameters:
  metadata - The metadata implementation to wraps.
Parameters:
  interfacePackage - The root package for metadata interfaces.
public  inthashCode(Object metadata)
     Returns a hash code for the specified metadata.
final  intindexOf(String key)
     Returns the index of the specified property, or -1 if none.
static  booleanisEmpty(Object value)
     Returns true if the specified object is null or an empty collection, array or string.
final  booleanisModifiable()
     Returns true if the metadata is modifiable.
final  booleanisWritable(int index)
     Returns true if the property at the given index is writable.
final  Stringname(int index)
     Returns the name of the property at the given index, or null if none.
final  Objectset(int index, Object metadata, Object value)
     Set a value for the specified metadata.
public  booleanshallowCopy(Object source, Object target, boolean skipNulls)
     Copies all metadata from source to target.
public  booleanshallowEquals(Object metadata1, Object metadata2, boolean skipNulls)
     Compares the two specified metadata objects.
final  Classtype(int index)
     Returns the type of the property at the given index.

Field Detail
implementation
final Class implementation(Code)
The implementation class. The following condition must hold:
 type.
 (implementation);
 



type
final Class type(Code)
The implemented metadata interface.




Constructor Detail
PropertyAccessor
PropertyAccessor(Class implementation, Class type)(Code)
Creates a new property reader for the specified metadata implementation.
Parameters:
  metadata - The metadata implementation to wrap.
Parameters:
  type - The interface implemented by the metadata.Should be the value returned by PropertyAccessor.getType.




Method Detail
count
final int count()(Code)
Returns the number of properties that can be read.



count
public int count(Object metadata, int max)(Code)
Counts the number of non-null properties.



freeze
final void freeze(Object metadata)(Code)
Replaces every properties in the specified metadata by their



get
final Object get(int index, Object metadata)(Code)
Returns the value for the specified metadata, or null if none.



getType
static Class getType(Class implementation, String interfacePackage)(Code)
Returns the metadata interface implemented by the specified implementation. Only one metadata interface can be implemented.
Parameters:
  metadata - The metadata implementation to wraps.
Parameters:
  interfacePackage - The root package for metadata interfaces. The single interface, or null if none where found.



hashCode
public int hashCode(Object metadata)(Code)
Returns a hash code for the specified metadata. The hash code is defined as the sum of hash code values of all non-null properties. This is the same contract than java.util.Set.hashCode and ensure that the hash code value is insensitive to the ordering of properties.



indexOf
final int indexOf(String key)(Code)
Returns the index of the specified property, or -1 if none. The search is case-insensitive.



isEmpty
static boolean isEmpty(Object value)(Code)
Returns true if the specified object is null or an empty collection, array or string.



isModifiable
final boolean isModifiable()(Code)
Returns true if the metadata is modifiable. This method is not public because it uses heuristic rules. In case of doubt, this method conservatively returns true .



isWritable
final boolean isWritable(int index)(Code)
Returns true if the property at the given index is writable.



name
final String name(int index)(Code)
Returns the name of the property at the given index, or null if none.



set
final Object set(int index, Object metadata, Object value) throws IllegalArgumentException(Code)
Set a value for the specified metadata. The old value.
throws:
  IllegalArgumentException - if the specified property can't be set.



shallowCopy
public boolean shallowCopy(Object source, Object target, boolean skipNulls) throws UnmodifiableMetadataException(Code)
Copies all metadata from source to target. The source can be any implementation of the metadata interface, but the target must be the implementation expected by this class.
Parameters:
  source - The metadata to copy.
Parameters:
  target - The target metadata.
Parameters:
  skipNulls - If true , only non-null values will be copied. true in case of success, or false if at leastone setter method was not found.
throws:
  UnmodifiableMetadataException - if the target metadata is unmodifiable.



shallowEquals
public boolean shallowEquals(Object metadata1, Object metadata2, boolean skipNulls)(Code)
Compares the two specified metadata objects. The comparaison is shallow, i.e. all metadata attributes are compared using the Object.equals method without recursive call to this shallowEquals method for other metadata.

This method can optionaly excludes null values from the comparaison. In metadata, null value often means "don't know", so in some occasion we want to consider two metadata as different only if an attribute value is know for sure to be different.
Parameters:
  metadata1 - The first metadata object to compare.
Parameters:
  metadata2 - The second metadata object to compare.
Parameters:
  skipNulls - If true , only non-null values will be compared.




type
final Class type(int index)(Code)
Returns the type of the property at the given index.



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.