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


org.geotools.data.ComplexTestData

ComplexTestData
abstract public class ComplexTestData extends TestCase (Code)

author:
   Gabriel Roldan, Axios Engineering
version:
   $Id: ComplexTestData.java 25814 2007-06-12 12:03:41Z groldan $
since:
   2.4


Field Summary
final public static  StringGML_NSURI
    
final public static  StringNSURI
    


Method Summary
public static  voidcheckType(AttributeType type, Name name, Class binding, Set restrictions, boolean identified, boolean _abstract, AttributeType superType)
    
public static  FeatureTypecreateExample01MultiValuedComplexProperty(TypeFactory typeFactory)
    
public static  FeatureTypecreateExample02MultipleMultivalued(TypeFactory typeFactory)
     A feature type that has various multi-valued properties.
public static  FeatureTypecreateExample03MultipleGeometries(TypeFactory typeFactory)
    
public static  FeatureTypecreateExample04Type(TypeFactory typeFactory)
    
public static  FeatureTypecreateExample05JunctionType(TypeFactory typeFactory)
    
public static  AttributeTypecreateGmlLocation(TypeFactory typeFactory)
     Creates a representation of a gml:LocationPropertyType association.
public static  AttributeTypecreateGmlPoint(TypeFactory typeFactory)
     Creates a representation of a gml:PointPropertyType association as an AttributeType.
public static  ComplexTypecreateMeasurementType(TypeFactory typeFactory)
    

Field Detail
GML_NSURI
final public static String GML_NSURI(Code)



NSURI
final public static String NSURI(Code)





Method Detail
checkType
public static void checkType(AttributeType type, Name name, Class binding, Set restrictions, boolean identified, boolean _abstract, AttributeType superType)(Code)
Asserts the corresponding properties of type for equality with the provided parameter values
Parameters:
  type -
Parameters:
  name -
Parameters:
  binding -
Parameters:
  restrictions -
Parameters:
  identified -
Parameters:
  _abstract -
Parameters:
  superType -
Parameters:
  nillable -



createExample01MultiValuedComplexProperty
public static FeatureType createExample01MultiValuedComplexProperty(TypeFactory typeFactory)(Code)
 
 FeatureType[
 name = wq_plus
 identified = true
 super = Feature
 abstract = false
 binding = Feature.class
 restrictions = EMPTY_SET
 nillable = false
 defaultGeometry = #location
 descriptor = OrderedDescriptor(1, 1)[
 sequence = List[
 AttributeDescriptor(1, 1)[
 type = AttributeType[
 name = sitename
 identified = false
 super = null 
 abstract = false
 binding = String.class
 restrictions = EMPTY_SET
 nillable = false
 ]
 ],
 AttributeDescriptor(0, 1)[
 type = AttributeType[
 name = anzlic_no
 identified = false
 super = null 
 abstract = false
 binding = String.class
 restrictions = EMPTY_SET
 nillable = true
 ]
 ],
 AttributeDescriptor(0, 1)[
 type = GeometryAttribute[
 name = location
 identified = false
 super = HERE WE NEED TO REFER TO  gml:LocationPropertyType
 abstract = false
 binding = Point.class
 restrictions = EMPTY_SET
 nillable = true
 ]
 ],
 AttributeDescriptor (0, Integer.MAX_VALUE)[
 type = ComplexType[
 name = measurement
 identified = true
 super = null 
 abstract = false
 binding = null
 restrictions = EMPTY_SET
 nillable = true
 descriptor = OrderedDescriptor(0, Integer.MAX_VALUE)[
 AttributeDescriptor(1, 1)[
 type = AttributeType[
 name = determinand_description
 identified = false
 super = null 
 abstract = false
 binding = String.class
 restrictions = EMPTY_SET
 nillable = false
 ]
 ],
 AttributeDescriptor(1, 1)[
 type = AttributeType[
 name = result
 identified = false
 super = null 
 abstract = false
 binding = String.class
 restrictions = EMPTY_SET
 nillable = false
 ]
 ]
 ]//OrderedDescriptor
 ] //ComplexType
 ], //measurement
 AttributeDescriptor(0, 1)[
 type = AttributeType[
 name = project_no
 identified = false
 super = null 
 abstract = false
 binding = String.class
 restrictions = EMPTY_SET
 nillable = false
 ]
 ]
 ]
 ]
 ]	 
 
 

Parameters:
  typeFactory -
Parameters:
  descFactory -



createExample02MultipleMultivalued
public static FeatureType createExample02MultipleMultivalued(TypeFactory typeFactory)(Code)
A feature type that has various multi-valued properties.

Multi valued properties: meassurement(0:unbounded), sitename(1:unbounded).

 
 
 


Parameters:
  typeFactory -
Parameters:
  descFactory -



createExample03MultipleGeometries
public static FeatureType createExample03MultipleGeometries(TypeFactory typeFactory)(Code)
A feature may have multiple geometries

 <xs:complexType name="measurement_Type">
 <xs:sequence>
 <xs:element name="determinand_description" type="xs:string"/>
 <xs:element name="result" type="xs:string"/>
 </xs:sequence>            
 <xs:attribute ref="gml:id" use="optional"/>
 </xs:complexType> 
 <xs:complexType name="wq_plus_Type" xmlns:xs="http://www.w3.org/2001/XMLSchema">
 <xs:complexContent>
 <xs:extension base="gml:AbstractFeatureType">
 <xs:sequence>
 <xs:element name="measurement" maxOccurs="unbounded" type="sco:measurement_Type"/>
 <xs:element name="location" type="gml:LocationPropertyType"/>
 <xs:element name="nearestSlimePit" type="gml:PointPropertyType"/> 
 <xs:element name="sitename" maxOccurs="unbounded" nillable="false" type="xs:string" />
 </xs:sequence>
 </xs:extension>
 </xs:complexContent>
 </xs:complexType>
 <xs:element name='wq_plus' type='sco:wq_plus_Type' substitutionGroup="gml:_Feature" />
 

Parameters:
  typeFactory -
Parameters:
  descFactory -



createExample04Type
public static FeatureType createExample04Type(TypeFactory typeFactory)(Code)

Parameters:
  typeFactory -
Parameters:
  descFactory -



createExample05JunctionType
public static FeatureType createExample05JunctionType(TypeFactory typeFactory)(Code)
Creates a FeatureType for the Road

 <xs:element name="roadRef" type="sco:RoadPropertyType"/>
 <xs:element name="junctionRef" type="sco:JunctionPropertyType"/>
 <xs:complexType name="RoadPropertyType">
 <xs:annotation>
 <xs:documentation>Container for a road - follow gml:AssociationType pattern.</xs:documentation>
 </xs:annotation>
 <xs:sequence minOccurs="0">
 <xs:element ref="sco:Road" />
 </xs:sequence>
 <xs:attributeGroup ref="gml:AssociationAttributeGroup" />
 </xs:complexType>
 <xs:complexType name="JunctionPropertyType">
 <xs:annotation>
 <xs:documentation>Container for a junction - follow gml:AssociationType pattern.</xs:documentation>
 </xs:annotation>
 <xs:sequence minOccurs="0">
 <xs:element ref="sco:Junction" />
 </xs:sequence>
 <xs:attributeGroup ref="gml:AssociationAttributeGroup" />
 </xs:complexType>
 <xs:complexType name="RoadType">
 <xs:complexContent>
 <xs:extension base="gml:AbstractFeatureType">
 <xs:sequence>
 <xs:element name="geom" type="gml:CurvePropertyType" minOccurs="0" />
 <xs:element ref="sco:junctionRef" minOccurs="0" maxOccurs="unbounded" />
 </xs:sequence>
 </xs:extension>
 </xs:complexContent>
 </xs:complexType>
 <xs:complexType name="JunctionType">
 <xs:complexContent>
 <xs:extension base="gml:AbstractFeatureType">
 <xs:sequence>
 <xs:element ref="sco:roadRef" />
 <xs:element name="direction" type="xs:int" />
 </xs:sequence>
 </xs:extension>
 </xs:complexContent>
 </xs:complexType>
 <xs:element name='Junction' type='sco:JunctionType' substitutionGroup="gml:_Feature" />
 <xs:element name='Road' type='sco:RoadType' substitutionGroup="gml:_Feature" />
 



createGmlLocation
public static AttributeType createGmlLocation(TypeFactory typeFactory)(Code)
Creates a representation of a gml:LocationPropertyType association. This would be better done by obtaining the type from a registry, so we can have GML2TypeRegistry, GML3TypeRegistry, DefaultTypeRegistry, etc.



createGmlPoint
public static AttributeType createGmlPoint(TypeFactory typeFactory)(Code)
Creates a representation of a gml:PointPropertyType association as an AttributeType. This would be better done by obtaining the type from a registry, so we can have GML2TypeRegistry, GML3TypeRegistry, DefaultTypeRegistry, etc.



createMeasurementType
public static ComplexType createMeasurementType(TypeFactory typeFactory)(Code)



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