org.n52.oxf.valueDomains.filter
Class ComparisonFilter

java.lang.Object
  extended by org.n52.oxf.valueDomains.filter.ComparisonFilter
All Implemented Interfaces:
IFilter

public class ComparisonFilter
extends Object
implements IFilter

Class represents a comparison filter which is conform to OGC Filter Encoding Specification 1.1.0


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.n52.oxf.valueDomains.filter.IFilter
IFilter.ComparisonOperators
 
Field Summary
static String PROPERTY_IS_BETWEEN
           
static String PROPERTY_IS_EQUAL_TO
           
static String PROPERTY_IS_GREATER_THAN
           
static String PROPERTY_IS_GREATER_THAN_OR_EQUAL_TO
           
static String PROPERTY_IS_LESS_THAN
           
static String PROPERTY_IS_LESS_THAN_OR_EQUAL_TO
           
static String PROPERTY_IS_LIKE
           
static String PROPERTY_IS_NOT_EQUAL_TO
           
static String PROPERTY_IS_NULL
           
 
Fields inherited from interface org.n52.oxf.valueDomains.filter.IFilter
AND, NOT, OR
 
Constructor Summary
ComparisonFilter(String filterType)
           
ComparisonFilter(String filterType, String propertyName)
          Constructor with all parameters
 
Method Summary
 String getFilterType()
          returns the type of the ComparisonFilter
 String getPropertyName()
           
 void setPropertyName(String propertyName)
           
 String toString()
           
 String toXML()
          creates a string representation of this filter in xml-format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTY_IS_EQUAL_TO

public static final String PROPERTY_IS_EQUAL_TO
See Also:
Constant Field Values

PROPERTY_IS_NOT_EQUAL_TO

public static final String PROPERTY_IS_NOT_EQUAL_TO
See Also:
Constant Field Values

PROPERTY_IS_LESS_THAN

public static final String PROPERTY_IS_LESS_THAN
See Also:
Constant Field Values

PROPERTY_IS_GREATER_THAN

public static final String PROPERTY_IS_GREATER_THAN
See Also:
Constant Field Values

PROPERTY_IS_LESS_THAN_OR_EQUAL_TO

public static final String PROPERTY_IS_LESS_THAN_OR_EQUAL_TO
See Also:
Constant Field Values

PROPERTY_IS_GREATER_THAN_OR_EQUAL_TO

public static final String PROPERTY_IS_GREATER_THAN_OR_EQUAL_TO
See Also:
Constant Field Values

PROPERTY_IS_LIKE

public static final String PROPERTY_IS_LIKE
See Also:
Constant Field Values

PROPERTY_IS_NULL

public static final String PROPERTY_IS_NULL
See Also:
Constant Field Values

PROPERTY_IS_BETWEEN

public static final String PROPERTY_IS_BETWEEN
See Also:
Constant Field Values
Constructor Detail

ComparisonFilter

public ComparisonFilter(String filterType,
                        String propertyName)
Constructor with all parameters


ComparisonFilter

public ComparisonFilter(String filterType)
Method Detail

getFilterType

public String getFilterType()
returns the type of the ComparisonFilter

Specified by:
getFilterType in interface IFilter
Returns:
the filterType of this ComparisonFilter (e.g. PROPERTY_IS_LIKE)

getPropertyName

public String getPropertyName()

setPropertyName

public void setPropertyName(String propertyName)

toString

public String toString()
Overrides:
toString in class Object

toXML

public String toXML()
creates a string representation of this filter in xml-format.
Example A:
    <Filter>
       <PropertyIsLessThan>
           <PropertyName>DEPTH</PropertyName>
           <Literal>30</Literal>
       </PropertyIsLessThan>
    </Filter>
 

Specified by:
toXML in interface IFilter
Returns:
string representation of this filter in xml-Format


Copyright © 2012-2013 52north.org. All Rights Reserved.