org.n52.oxf.valueDomains.filter
Class ComparisonFilter
java.lang.Object
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
Fields inherited from interface org.n52.oxf.valueDomains.filter.IFilter |
AND, NOT, OR |
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
ComparisonFilter
public ComparisonFilter(String filterType,
String propertyName)
- Constructor with all parameters
ComparisonFilter
public ComparisonFilter(String filterType)
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.