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


org.geotools.filter.text.cql2.CQLTest

CQLTest
public class CQLTest extends TestCase (Code)
CQL Test

Test Common CQL language


author:
   Mauricio Pazos (Axios Engineering)
since:
   2.4



Constructor Summary
public  CQLTest(String testName)
    

Method Summary
public  voidtestAttribute()
     Test Attribute

 <attribute name > ::=
 <simple attribute name >
 |    <compound attribute name >
 <simple attribute name > ::=  <identifier >
 <compound attribute name > ::=  <identifier > <period > [{ <identifier > <period >}...] <simple attribute name >
 <identifier > ::=  <identifier start [ {  <colon > |  <identifier part > }...
public  voidtestBetweenPredicate()
     Test Between Predicate.
public  voidtestBoolean()
    
public  voidtestBooleanValueExpression()
     Test boolean value expressions.
public  voidtestBracketRoundtripFilter()
    
public  voidtestCharacterStringLiteral()
    
public  voidtestComparationPredicate()
    
public  voidtestComparationPredicateWithSimpleExpressions()
     Test Comparation Predicate.
public  voidtestExistencePredicate()
     Test Existnce Predicate.

EXIST: evaluates as true for all record instances where the attribute_name is a member of the record schema.

public  voidtestGeometryLiterals()
    
public  voidtestGeometryLiteralsError()
    
final public  voidtestGetSyntaxError()
    
public  voidtestNullPredicate()
    
public  voidtestParenRoundtripExpression()
    
public  voidtestParseExpression()
    
public  voidtestRoutineInvocationGeneric()
     Test RelGeo Operations [*]

 <routine invocation > ::=
 <geoop name > <georoutine argument list >
 |   <relgeoop name > <relgeoop argument list >
 |   <routine name > <argument list > [*]
 <argument list> ::=    [*]
 <left paren> [<positional arguments>] <right paren>
 <positional arguments> ::=
 <argument> [ { <comma&gt <argument> }...
public  voidtestRoutineInvocationGeoOp()
     Test Geo Operations.
public  voidtestRoutineInvocationRelGeoOp()
    
public  voidtestTemporalPredicateAfter()
     Test temporal predicate.
public  voidtestTemporalPredicateBefore()
     Test temporal predicate.
public  voidtestTemporalPredicateBeforeOrDuring()
     Test temporal predicate.
public  voidtestTemporalPredicateDuring()
     Test temporal predicate.
public  voidtestTemporalPredicateDuringOrAfter()
     Test temporal predicate.
public  voidtestTextPredicate()
    
public  voidtestTokensError()
    


Constructor Detail
CQLTest
public CQLTest(String testName)(Code)




Method Detail
testAttribute
public void testAttribute() throws Exception(Code)
Test Attribute

 <attribute name > ::=
 <simple attribute name >
 |    <compound attribute name >
 <simple attribute name > ::=  <identifier >
 <compound attribute name > ::=  <identifier > <period > [{ <identifier > <period >}...] <simple attribute name >
 <identifier > ::=  <identifier start [ {  <colon > |  <identifier part > }... ]
 <identifier start > ::=  <simple Latin letter >
 <identifier part > ::=  <simple Latin letter > |  <digit >
 




testBetweenPredicate
public void testBetweenPredicate() throws Exception(Code)
Test Between Predicate.

 This cql clause is an extension for convenience.
 <between predicate > ::=
 <attribute name > [ NOT ] BETWEEN  <literal& #62; AND  < literal  >
 




testBoolean
public void testBoolean() throws Exception(Code)



testBooleanValueExpression
public void testBooleanValueExpression() throws Exception(Code)
Test boolean value expressions.

 <boolean value expression > ::=
 <boolean term >
 |   <boolean value expression > OR  <boolean term >
 <boolean term > ::=
 <boolean factor >
 |   <boolean term > AND  <boolean factor>
 




testBracketRoundtripFilter
public void testBracketRoundtripFilter() throws Exception(Code)



testCharacterStringLiteral
public void testCharacterStringLiteral() throws Exception(Code)
 <character string literal> ::= <quote> [ {<character representation<} ]  <quote>
 <character representation> ::= 
 <nonquote character> 
 | 	<quote symbol>
 <quote symbol> ::=  <quote> <quote>
 



testComparationPredicate
public void testComparationPredicate() throws Exception(Code)
Test Comparison Predicate

 <comparison predicate > ::=
 <attribute name >  <comp op >  <literal >
 




testComparationPredicateWithSimpleExpressions
public void testComparationPredicateWithSimpleExpressions() throws Exception(Code)
Test Comparation Predicate.

 <comparison predicate > ::=
 <attrsibute name >  <comp op >  <literal >
 




testExistencePredicate
public void testExistencePredicate() throws Exception(Code)
Test Existnce Predicate.

EXIST: evaluates as true for all record instances where the attribute_name is a member of the record schema. DOES-NOT-EXIST: opposite to EXISTS

 <existence_predicate > ::=
 <attribute_name > EXISTS
 |   <attribute_name > DOES-NOT-EXIST
 




testGeometryLiterals
public void testGeometryLiterals() throws Exception(Code)
Tests Geometry Literals

 <geometry literal > :=
 <Point Tagged Text >
 |   <LineString Tagged Text >
 |   <Polygon Tagged Text >
 |   <MultiPoint Tagged Text >
 |   <MultiLineString Tagged Text >
 |   <MultiPolygon Tagged Text >
 |   <GeometryCollection Tagged Text >
 |   <Envelope Tagged Text >
 




testGeometryLiteralsError
public void testGeometryLiteralsError()(Code)
Test error at geometry literal



testGetSyntaxError
final public void testGetSyntaxError()(Code)



testNullPredicate
public void testNullPredicate() throws Exception(Code)
Test Null Predicate:

 <null predicate > ::=  <attribute name > IS [ NOT ] NULL
 




testParenRoundtripExpression
public void testParenRoundtripExpression() throws Exception(Code)



testParseExpression
public void testParseExpression() throws Exception(Code)
Test for expressions
throws:
  Exception -



testRoutineInvocationGeneric
public void testRoutineInvocationGeneric() throws Exception(Code)
Test RelGeo Operations [*]

 <routine invocation > ::=
 <geoop name > <georoutine argument list >
 |   <relgeoop name > <relgeoop argument list >
 |   <routine name > <argument list > [*]
 <argument list> ::=    [*]
 <left paren> [<positional arguments>] <right paren>
 <positional arguments> ::=
 <argument> [ { <comma&gt <argument> }... ]
 <argument>  ::=
 <literal>
 |   <attribute name>
 


throws:
  Exception -



testRoutineInvocationGeoOp
public void testRoutineInvocationGeoOp() throws Exception(Code)
Test Geo Operations.

 <routine invocation > ::=
 <geoop name > <georoutine argument list >[*]
 |   <relgeoop name > <relgeoop argument list >
 |   <routine name > <argument list >
 <geoop name > ::=
 EQUAL | DISJOINT | INTERSECT | TOUCH | CROSS | [*]
 WITHIN | CONTAINS |OVERLAP | RELATE [*]
 That rule is extended with bbox for convenience.
 <bbox argument list >::=
 "("  <attribute > "," <min X > "," <min Y > "," <max X > "," <max Y >[","  <srs >] ")"
 <min X > ::=  <signed numerical literal >
 <min Y > ::=  <signed numerical literal >
 <max X > ::=  <signed numerical literal >
 <max Y > ::=  <signed numerical literal >
 <srs > ::=
 

TODO Note: RELATE is not supported (implementation in GeoTools is required)



testRoutineInvocationRelGeoOp
public void testRoutineInvocationRelGeoOp() throws Exception(Code)
Test RelGeo Operations [*]

 <routine invocation > ::=
 <geoop name > <georoutine argument list >
 |   <relgeoop name > <relgeoop argument list > [*]
 |  <routine name > <argument list >
 <relgeoop name > ::=
 DWITHIN | BEYOND [*]
 




testTemporalPredicateAfter
public void testTemporalPredicateAfter() throws Exception(Code)
Test temporal predicate. This tests AFTER or during rule[*]

 <temporal predicate  >::=
 <attribute_name > BEFORE  <date-time expression >
 |   <attribute_name > BEFORE OR DURING  <period >
 |   <attribute_name > DURING  <period >
 |   <attribute_name > DURING OR AFTER  <period >
 |   <B>  <attribute_name > AFTER  <date-time expression >[*]</B>
 <date-time expression > ::=  <date-time > |  <period >
 <period > ::=
 <date-time > "/"  <date-time >[*]
 |   <date-time > "/"  <duration >  [*]
 |  <duration > "/"  <date-time >  [*]
 




testTemporalPredicateBefore
public void testTemporalPredicateBefore() throws Exception(Code)
Test temporal predicate. This test BEFORE rule [*]

 <temporal predicate  >::=
 <attribute_name > <b>BEFORE</b>  <date-time expression > [*]
 |   <attribute_name > BEFORE OR DURING  <period >
 |   <attribute_name > DURING  <period >
 |   <attribute_name > DURING OR AFTER  <period >
 |   <attribute_name > AFTER  <date-time expression >
 <date-time expression > ::=  <date-time > |  <period >[*]
 <period > ::=
 <date-time > "/"  <date-time >[*]
 |   <date-time > "/"  <duration > [*]
 |   <duration > "/"  <date-time > [*]
 




testTemporalPredicateBeforeOrDuring
public void testTemporalPredicateBeforeOrDuring() throws Exception(Code)
Test temporal predicate. This tests BEFORE or DURING rule[*]

 <temporal predicate  >::=
 <attribute_name > BEFORE  <date-time expression >
 |   <b> <attribute_name > BEFORE OR DURING  <period >[*]</b>
 |   <attribute_name > DURING  <period >
 |   <attribute_name > DURING OR AFTER  <period >
 |   <attribute_name > AFTER  <date-time expression >
 <date-time expression > ::=  <date-time > |  <period >
 <period > ::=
 <date-time > "/"  <date-time >[*]
 |   <date-time > "/"  <duration >[*]
 |   <duration > "/"  <date-time >[*]
 




testTemporalPredicateDuring
public void testTemporalPredicateDuring() throws Exception(Code)
Test temporal predicate. This tests DURING rule[*]

 <temporal predicate  >::=
 <attribute_name > BEFORE  <date-time expression >
 |   <b> <attribute_name > BEFORE OR DURING  <period ></b>
 |  <attribute_name > DURING  <period >[*]
 |  <attribute_name > DURING OR AFTER  <period >
 |  <attribute_name > AFTER  <date-time expression >
 <date-time expression > ::=  <date-time > |  <period >
 <period > ::=
 <date-time > "/"  <date-time >[*]
 |   <date-time > "/"  <duration >[*]
 |   <duration > "/"  <date-time >[*]
 




testTemporalPredicateDuringOrAfter
public void testTemporalPredicateDuringOrAfter() throws Exception(Code)
Test temporal predicate. This tests DURING OR AFTER rule[*]

 <temporal predicate  >::=
 <attribute_name > BEFORE  <date-time expression >
 |   <b> <attribute_name > BEFORE OR DURING  <period ></b>
 |   <attribute_name > DURING  <period >
 |   <attribute_name > DURING OR AFTER  <period >[*]
 |   <attribute_name > AFTER  <date-time expression >
 <date-time expression > ::=  <date-time > |  <period >
 <period > ::=
 <date-time > "/"  <date-time >[*]
 |   <date-time > "/"  <duration >[*]
 |   <duration > "/"  <date-time >[*]
 




testTextPredicate
public void testTextPredicate() throws Exception(Code)
Test Text Predicate

 <text predicate > ::=
 <attribute name > [ NOT ] LIKE  <character pattern >
 For example:
 attribute like '%contains_this%'
 attribute like 'begins_with_this%'
 attribute like '%ends_with_this'
 attribute like 'd_ve' will match 'dave' or 'dove'
 attribute not like '%will_not_contain_this%'
 attribute not like 'will_not_begin_with_this%'
 attribute not like '%will_not_end_with_this'
 




testTokensError
public void testTokensError()(Code)
Some token errors



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