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

All known Subclasses:   org.geotools.metadata.ModifiableMetadata,
AbstractMetadata
abstract public class AbstractMetadata (Code)
Base class for metadata implementations. Subclasses must implement the interfaces of some . This class uses in order to provide default implementation of , AbstractMetadata.equals and AbstractMetadata.hashCode methods.
since:
   2.4
version:
   $Id: AbstractMetadata.java 27862 2007-11-12 19:51:19Z desruisseaux $
author:
   Martin Desruisseaux (Geomatys)


Field Summary
final protected static  LoggerLOGGER
     The logger for metadata implementation.

Constructor Summary
protected  AbstractMetadata()
     Creates an initially empty metadata.
protected  AbstractMetadata(Object source)
     Constructs a metadata entity initialized with the values from the specified metadata. The source metadata must implements the same metadata interface (defined by the ) than this class, but don't need to be the same implementation class.

Method Summary
public synchronized  MapasMap()
     Returns a view of this metadata object as a .
public synchronized  TreeModelasTree()
     Returns a view of this metadata as a tree.
public synchronized  booleanequals(Object object)
     Compares this metadata with the specified object for equality.
public  ClassgetInterface()
     Returns the metadata interface implemented by this class.
abstract public  MetadataStandardgetStandard()
     Returns the metadata standard implemented by subclasses.
public synchronized  inthashCode()
     Computes a hash code value for this metadata using Java reflection.
 voidinvalidate()
     Invoked when the metadata changed.
 booleanisModifiable()
     Returns true if this metadata is modifiable.
public synchronized  StringtoString()
     Returns a string representation of this metadata.

Field Detail
LOGGER
final protected static Logger LOGGER(Code)
The logger for metadata implementation.




Constructor Detail
AbstractMetadata
protected AbstractMetadata()(Code)
Creates an initially empty metadata.



AbstractMetadata
protected AbstractMetadata(Object source) throws ClassCastException, UnmodifiableMetadataException(Code)
Constructs a metadata entity initialized with the values from the specified metadata. The source metadata must implements the same metadata interface (defined by the ) than this class, but don't need to be the same implementation class. The copy is performed using Java reflections.
Parameters:
  source - The metadata to copy values from.
throws:
  ClassCastException - if the specified metadata don't implements the expectedmetadata interface.
throws:
  UnmodifiableMetadataException - if this class don't define set methodscorresponding to the get methods found in the implemented interface,or if this instance is not modifiable for some other reason.




Method Detail
asMap
public synchronized Map asMap()(Code)
Returns a view of this metadata object as a . The map is backed by this metadata object using Java reflection, so changes in the underlying metadata object are immediately reflected in the map. The keys are the property names as determined by the list of get*() methods declared in the .

The map supports the Map.put put operations if the underlying metadata object contains #set*(...) methods.




asTree
public synchronized TreeModel asTree()(Code)
Returns a view of this metadata as a tree. Note that while TreeModel is defined in the javax.swing.tree package, it can be seen as a data structure independent of Swing. It will not force class loading of Swing framework.

In current implementation, the tree is not live (i.e. changes in metadata are not reflected in the tree). However it may be improved in a future Geotools implementation.




equals
public synchronized boolean equals(Object object)(Code)
Compares this metadata with the specified object for equality. The default implementation uses Java reflection. Subclasses may override this method for better performances.

This method performs a deep comparaison (i.e. if this metadata contains other metadata, the comparaison will walk through the other metadata content as well) providing that every childs implement the Object.equals method as well. This is the case by default if every childs are subclasses of AbstractMetadata .




getInterface
public Class getInterface()(Code)
Returns the metadata interface implemented by this class. It should be one of the interfaces defined in the implemented by this class.



getStandard
abstract public MetadataStandard getStandard()(Code)
Returns the metadata standard implemented by subclasses.



hashCode
public synchronized int hashCode()(Code)
Computes a hash code value for this metadata using Java reflection. 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.



invalidate
void invalidate()(Code)
Invoked when the metadata changed. Some cached informations will need to be recomputed.



isModifiable
boolean isModifiable()(Code)
Returns true if this metadata is modifiable. The default implementation uses heuristic rules which return false if and only if:

  • this class do not contains any set*(...) method
  • All get*() methods return a presumed immutable object. The maining of "presumed immutable" may vary in different Geotools versions.

Otherwise, this method conservatively returns true . Subclasses should override this method if they can provide a more rigorous analysis.




toString
public synchronized String toString()(Code)
Returns a string representation of this metadata.



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.