Skip to content

Commit

Permalink
调整Filter类的命名空间为GeoBeans.Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
radi-ac committed Sep 22, 2016
1 parent 6876af1 commit 12ef8a3
Show file tree
Hide file tree
Showing 20 changed files with 133 additions and 18 deletions.
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/ComparisionFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.ComparisionFilter = GeoBeans.Class(GeoBeans.Filter,{
/**
* @classdesc
* 比较过滤器
* @class
* @extends {GeoBeans.Filter}
*/
GeoBeans.Filter.ComparisionFilter = GeoBeans.Class(GeoBeans.Filter,{

operator : null,

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.BinaryComparisionFilter = GeoBeans.Class(GeoBeans.ComparisionFilter,{
/**
* @classdesc
* 二元比较过滤器
* @class
* @extends {GeoBeans.Filter.ComparisionFilter}
*/
GeoBeans.Filter.BinaryComparisionFilter = GeoBeans.Class(GeoBeans.ComparisionFilter,{

expression1 : null,
expression2 : null,
Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/ComparisionFilter/IsBetweenFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.IsBetweenFilter = GeoBeans.Class(GeoBeans.ComparisionFilter,{
/**
* @classdesc
* Between比较过滤器
* @class
* @extends {GeoBeans.Filter.ComparisionFilter}
*/
GeoBeans.Filter.IsBetweenFilter = GeoBeans.Class(GeoBeans.ComparisionFilter,{
expression : null,
lowerBound : null,
upperBound : null,
Expand Down
9 changes: 7 additions & 2 deletions src/GeoBeans/Filter/ComparisionFilter/IsLikeFilter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// 可以用BinaryComparisionFilter代替
GeoBeans.IsLikeFilter = GeoBeans.Class(GeoBeans.ComparisionFilter,{
/**
* @classdesc
* like比较过滤器
* @class
* @extends {GeoBeans.Filter.ComparisionFilter}
*/
GeoBeans.Filter.IsLikeFilter = GeoBeans.Class(GeoBeans.ComparisionFilter,{
properyName : null,
literal : null,

Expand Down
10 changes: 8 additions & 2 deletions src/GeoBeans/Filter/ComparisionFilter/IsNullFilter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
GeoBeans.IsNullFilter = GeoBeans.Class(GeoBeans.ComparisionFilter,{
properyName : null,
/**
* @classdesc
* Null比较过滤器
* @class
* @extends {GeoBeans.Filter.ComparisionFilter}
*/
GeoBeans.Filter.IsNullFilter = GeoBeans.Class(GeoBeans.ComparisionFilter,{

properyName : null,

initialize : function(properyName){
GeoBeans.ComparisionFilter.prototype.initialize.apply(this,arguments);
Expand Down
5 changes: 5 additions & 0 deletions src/GeoBeans/Filter/Expression.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* @classdesc
* 查询表达式
* @class
*/
GeoBeans.Expression = GeoBeans.Class({
type : null,

Expand Down
6 changes: 6 additions & 0 deletions src/GeoBeans/Filter/Expression/Literal.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @classdesc
* 属性值表达式
* @class
* @extends {GeoBeans.ComparisionFilter}
*/
GeoBeans.Literal = GeoBeans.Class(GeoBeans.Expression,{
value : null,

Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/Expression/PropertyName.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.PropertyName = GeoBeans.Class({
/**
* @classdesc
* 属性名称表达式
* @class
* @extends {GeoBeans.ComparisionFilter}
*/
GeoBeans.PropertyName = GeoBeans.Class(GeoBeans.Expression, {
name : null,

initialize : function(){
Expand Down
5 changes: 5 additions & 0 deletions src/GeoBeans/Filter/FilterReader.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* @classdesc
* XML格式过滤器转换为对象
* @class
*/
GeoBeans.FilterReader = GeoBeans.Class({

initialize : function(){
Expand Down
5 changes: 5 additions & 0 deletions src/GeoBeans/Filter/FilterWriter.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* @classdesc
* 过滤器对象转换为XML格式
* @class
*/
GeoBeans.FilterWriter = GeoBeans.Class({

initialize : function(){
Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/IDFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.IDFilter = GeoBeans.Class(GeoBeans.Filter,{
/**
* @classdesc
* ID过滤器
* @class
* @extends {GeoBeans.Filter}
*/
GeoBeans.Filter.IDFilter = GeoBeans.Class(GeoBeans.Filter,{
ids : null,

initialize : function(){
Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/LogicFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.LogicFilter = GeoBeans.Class(GeoBeans.Filter,{
/**
* @classdesc
* 逻辑过滤器
* @class
* @extends {GeoBeans.Filter}
*/
GeoBeans.Filter.LogicFilter = GeoBeans.Class(GeoBeans.Filter,{
operator : null,


Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/LogicFilter/BinaryLogicFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.BinaryLogicFilter = GeoBeans.Class(GeoBeans.LogicFilter,{
/**
* @classdesc
* 二元逻辑比较过滤器(AND, OR)
* @class
* @extends {GeoBeans.Filter.LogicFilter}
*/
GeoBeans.Filter.BinaryLogicFilter = GeoBeans.Class(GeoBeans.LogicFilter,{
// operator : null,
filters : null,

Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/LogicFilter/UnaryLogicFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.UnaryLogicFilter = GeoBeans.Class(GeoBeans.LogicFilter,{
/**
* @classdesc
* 一元逻辑比较过滤器(NOT)
* @class
* @extends {GeoBeans.Filter.LogicFilter}
*/
GeoBeans.Filter.UnaryLogicFilter = GeoBeans.Class(GeoBeans.LogicFilter,{
filter : null,

initialize : function(filter){
Expand Down
7 changes: 6 additions & 1 deletion src/GeoBeans/Filter/OrderBy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
GeoBeans.OrderBy = GeoBeans.Class({
/**
* @classdesc
* 排序类
* @class
*/
GeoBeans.Query.OrderBy = GeoBeans.Class({
fields : null,

order : null,
Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/SpatialFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.SpatialFilter = GeoBeans.Class(GeoBeans.Filter,{
/**
* @classdesc
* 空间查询过滤器
* @class
* @extends {GeoBeans.Filter}
*/
GeoBeans.Filter.SpatialFilter = GeoBeans.Class(GeoBeans.Filter,{


initialize : function(){
Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/SpatialFilter/BBoxFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.BBoxFilter = GeoBeans.Class(GeoBeans.SpatialFilter,{
/**
* @classdesc
* 矩形空间查询过滤器
* @class
* @extends {GeoBeans.Filter.SpatialFilter}
*/
GeoBeans.Filter.BBoxFilter = GeoBeans.Class(GeoBeans.SpatialFilter,{
// propExpression : null,
extent : null,

Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/SpatialFilter/BeyondFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.BeyondFilter = GeoBeans.Class(GeoBeans.SpatialFilter,{
/**
* @classdesc
* Beyond空间查询过滤器
* @class
* @extends {GeoBeans.Filter.SpatialFilter}
*/
GeoBeans.Filter.BeyondFilter = GeoBeans.Class(GeoBeans.SpatialFilter,{
distance : null,


Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/SpatialFilter/BinarySpatialFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.BinarySpatialFilter = GeoBeans.Class(GeoBeans.SpatialFilter,{
/**
* @classdesc
* 二元空间查询过滤器
* @class
* @extends {GeoBeans.Filter.SpatialFilter}
*/
GeoBeans.Filter.BinarySpatialFilter = GeoBeans.Class(GeoBeans.SpatialFilter,{
operator : null,
propName : null,
geometry : null,
Expand Down
8 changes: 7 additions & 1 deletion src/GeoBeans/Filter/SpatialFilter/DistanceBufferFilter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
GeoBeans.DistanceBufferFilter = GeoBeans.Class(GeoBeans.SpatialFilter,{
/**
* @classdesc
* 距离缓冲去空间查询过滤器
* @class
* @extends {GeoBeans.Filter.SpatialFilter}
*/
GeoBeans.Filter.DistanceBufferFilter = GeoBeans.Class(GeoBeans.SpatialFilter,{
distance : null,

initialize : function(propName,geometry,distance){
Expand Down

0 comments on commit 12ef8a3

Please sign in to comment.