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


org.geotools.xml.Node

All known Subclasses:   org.geotools.xml.impl.NodeImpl,
Node
public interface Node (Code)
Represents a value in the parse tree. A node has a corresponds to a particular instance component of a document (element or attribute). Each node contains a parsed value, as well as a reference to the instance.
author:
   Justin Deoliveira,Refractions Research Inc.,jdeolive@refractions.net




Method Summary
 NodegetAttribute(String name)
     Returns the node corresonding to the attribute with the specified name.
 NodegetAttribute(Class clazz)
     Returns the node corresponding to the attribute which has a parsed value which is an instance of clazz.
 ObjectgetAttributeValue(String name)
     Helper method for access to the parsed value of the attribute with the specified name.
Parameters:
  name - The name of the attribute in which to retreive the parsedvalue from.
 ObjectgetAttributeValue(Class clazz)
     Helper method for access to the parsed value of the attribute whose parsed value is an instance of clazz.
 ListgetAttributeValues(Class clazz)
     Helper method for access ot the parsed values of attribute nodes whose parsed values are instances of clazz.
Parameters:
  clazz - The class of parsed attribute values.
 ListgetAttributes()
     Returns all nodes corresponding to attributes.
 ListgetAttributes(Class clazz)
     Returns all nodes corresponding to attributes which has a parsed values which are instances of clazz.
Parameters:
  clazz - The class of parsed attribute values.
 NodegetChild(String name)
     Returns a node corresponding to a child element.
 NodegetChild(Class clazz)
     Returns a node corresponding to a child element which has a parsed value which is an instance of clazz.
 ObjectgetChildValue(int index)
     Helper method for access to child's parsed contents.
 ObjectgetChildValue(String name)
     Helper method for access to child's parsed contents by element name.

In the event that the node has multiple children mathing name the first encountered is returned, there is no guarantee of order.

 ObjectgetChildValue(Class clazz)
     Helper method for access to child's parsed contents by class.

In the event that the node has multiple children which are instances of clazz, the first is returned, there is no guarantee of order.

 ListgetChildValues(String name)
     Helper method for access to the set of parse child values with the specified name.
Parameters:
  name - The name of the child element in which to retreive theparsed value.
 ListgetChildValues(Class clazz)
     Helper method for access to the set of parsed child values which are instances of the specified class.
Parameters:
  clazz - The class of the child values.
 ListgetChildren()
     Returns all nodes corresponding child elements.
 ListgetChildren(String name)
     Returns all nodes corresponding child elements with the specified name. This method returns an empty list if it finds no nodes corresponding to the specified name.
Parameters:
  name - The name of a child element.
 ListgetChildren(Class clazz)
     Returns all nodes corresponding to child elements with the parsed values that are instances of clazz
Parameters:
  clazz - The class of parsed child values.
 InstanceComponentgetComponent()
    
 ObjectgetValue()
    
 booleanhasAttribute(String name)
     Determines if the node has an attribute with the specified name.
 booleanhasAttribute(Class clazz)
     Determines if the node has an attribute whose value is of the specified class.
 booleanhasChild(String name)
     Determines if the node has a child with the specified name.
Parameters:
  name - The name of a child node.
 booleanhasChild(Class clazz)
     Determines if the node has a child whose value is of the specified class.
Parameters:
  clazz - The class of the child node value.
 voidsetValue(Object value)
     Sets the value of the node.



Method Detail
getAttribute
Node getAttribute(String name)(Code)
Returns the node corresonding to the attribute with the specified name. This method returns null if it finds no such attribute node matching the specified name.
Parameters:
  name - The name of the attribute.



getAttribute
Node getAttribute(Class clazz)(Code)
Returns the node corresponding to the attribute which has a parsed value which is an instance of clazz. In the event that the node contains multple attributes matching the above criteria, the first encountered is returned, with no guaratnee of order. For all nodes matching this criteria use Node.getAttributes(Class) .
Parameters:
  clazz - The class of parsed attribute values. The attribute node whose parsed value is an instance ofclazz, or null if no such node exists.



getAttributeValue
Object getAttributeValue(String name)(Code)
Helper method for access to the parsed value of the attribute with the specified name.
Parameters:
  name - The name of the attribute in which to retreive the parsedvalue from. the parsed value of the attribute matching the criteria, ornull if no such attribute is found.



getAttributeValue
Object getAttributeValue(Class clazz)(Code)
Helper method for access to the parsed value of the attribute whose parsed value is an instance of clazz. In the event that the node contains multple attributes matching the above criteria, the first encountered is returned, with no guaratnee of order. For all values matching this criteria use Node.getAttributeValues(Class) .
Parameters:
  clazz - The class of parsed attribute values. the parsed value of the attribute matching the criteria, ornull if no such attribute is found.



getAttributeValues
List getAttributeValues(Class clazz)(Code)
Helper method for access ot the parsed values of attribute nodes whose parsed values are instances of clazz.
Parameters:
  clazz - The class of parsed attribute values. The list of attribute values which are instances ofclazz, or an empty list.



getAttributes
List getAttributes()(Code)
Returns all nodes corresponding to attributes. A list containing objects of type node.



getAttributes
List getAttributes(Class clazz)(Code)
Returns all nodes corresponding to attributes which has a parsed values which are instances of clazz.
Parameters:
  clazz - The class of parsed attribute values. A list of attribute nodes whose parsed values are instances ofclazz, or an empty list.



getChild
Node getChild(String name)(Code)
Returns a node corresponding to a child element. This method returns the first such node it finds and no order is guaranteed, it is provided for convenience. This method returns null if it finds no such child node matching the specified name.
Parameters:
  name - The name of a child element. The first node that matches a child element with the specifiedname.



getChild
Node getChild(Class clazz)(Code)
Returns a node corresponding to a child element which has a parsed value which is an instance of clazz. This method returns the first such node it finds an dno order is guarenteed, it is providedd for convenience. This method returns null if it finds no such child mathing the above criteria.
Parameters:
  clazz - The class of the parsed value of a child element. The first node found, or null.



getChildValue
Object getChildValue(int index)(Code)
Helper method for access to child's parsed contents.

Should be in the range of getChildren().size()

Simple helper method for the contents of getChildren: return ((Node)getChildren.get( index )).getValue();


Parameters:
  index - the value of the child at the given index



getChildValue
Object getChildValue(String name)(Code)
Helper method for access to child's parsed contents by element name.

In the event that the node has multiple children mathing name the first encountered is returned, there is no guarantee of order. For a list of all values matching name use Node.getChildValues(String) .

the value of the child with the given name, or null if the childdoes not exist.



getChildValue
Object getChildValue(Class clazz)(Code)
Helper method for access to child's parsed contents by class.

In the event that the node has multiple children which are instances of clazz, the first is returned, there is no guarantee of order. For a list of all values which are instances of clazz use Node.getChildValues(Class) .

the value of the child which is an instance of clazz,or null if no such child exists.
Parameters:
  clazz -



getChildValues
List getChildValues(String name)(Code)
Helper method for access to the set of parse child values with the specified name.
Parameters:
  name - The name of the child element in which to retreive theparsed value. A list of values representing the parsed values of the children,or an empty list of no such values exist.



getChildValues
List getChildValues(Class clazz)(Code)
Helper method for access to the set of parsed child values which are instances of the specified class.
Parameters:
  clazz - The class of the child values. A list of child values which are instances of class,or an empty list if no such values exist.



getChildren
List getChildren()(Code)
Returns all nodes corresponding child elements. A list containing objects of type Node.



getChildren
List getChildren(String name)(Code)
Returns all nodes corresponding child elements with the specified name. This method returns an empty list if it finds no nodes corresponding to the specified name.
Parameters:
  name - The name of a child element. A list containing objects of type Node.



getChildren
List getChildren(Class clazz)(Code)
Returns all nodes corresponding to child elements with the parsed values that are instances of clazz
Parameters:
  clazz - The class of parsed child values. A list containing objects of type Node, such that node#getValue()is an instance of clazz, or an empty list.



getComponent
InstanceComponent getComponent()(Code)
The component instance.



getValue
Object getValue()(Code)
The parsed value of the instance component.



hasAttribute
boolean hasAttribute(String name)(Code)
Determines if the node has an attribute with the specified name.
Parameters:
  name - The name of an attribute true if am attribute exists with the name, otehrwise false.



hasAttribute
boolean hasAttribute(Class clazz)(Code)
Determines if the node has an attribute whose value is of the specified class.
Parameters:
  clazz - The class of the attribute value true if an attribute exists with the class, otherwise false.



hasChild
boolean hasChild(String name)(Code)
Determines if the node has a child with the specified name.
Parameters:
  name - The name of a child node. true if a child node exists with the name, otehrwise false.



hasChild
boolean hasChild(Class clazz)(Code)
Determines if the node has a child whose value is of the specified class.
Parameters:
  clazz - The class of the child node value. true if a child node exists with the class, otherwise false.



setValue
void setValue(Object value)(Code)
Sets the value of the node.
Parameters:
  value - The new parse value.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.