Package org.n52.shetland.ogc.ows
Class OwsRange
- java.lang.Object
-
- org.n52.shetland.ogc.ows.OwsRange
-
- All Implemented Interfaces:
Comparable<OwsValueRestriction>,OwsValueRestriction
public class OwsRange extends Object implements OwsValueRestriction
A range of values of a numeric parameter. This range can be continuous or discrete, defined by a fixed spacing between adjacent valid values. If the MinimumValue or MaximumValue is not included, there is no value limit in that direction. Inclusion of the specified minimum and maximum values in the range shall be defined by the rangeClosure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOwsRange.BoundType
-
Field Summary
Fields Modifier and Type Field Description static StringCLOSEDstatic StringCLOSED_OPENstatic Comparator<OwsRange>COMPARATORstatic StringOPENstatic StringOPEN_CLOSED
-
Constructor Summary
Constructors Constructor Description OwsRange(OwsValue lowerBound, OwsRange.BoundType lowerBoundType, OwsValue upperBound, OwsRange.BoundType upperBoundType)OwsRange(OwsValue lowerBound, OwsRange.BoundType lowerBoundType, OwsValue upperBound, OwsRange.BoundType upperBoundType, OwsValue spacing)OwsRange(OwsValue lowerBound, OwsValue upperBound)OwsRange(OwsValue lowerBound, OwsValue upperBound, String type)OwsRange(OwsValue lowerBound, OwsValue upperBound, String type, OwsValue spacing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OwsRangeasRange()booleanequals(Object obj)Optional<OwsValue>getLowerBound()OwsRange.BoundTypegetLowerBoundType()Optional<OwsValue>getSpacing()StringgetType()Optional<OwsValue>getUpperBound()OwsRange.BoundTypegetUpperBoundType()inthashCode()booleanisRange()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.n52.shetland.ogc.ows.OwsValueRestriction
asValue, compareTo, isValue
-
-
-
-
Field Detail
-
COMPARATOR
public static final Comparator<OwsRange> COMPARATOR
-
CLOSED
public static final String CLOSED
- See Also:
- Constant Field Values
-
CLOSED_OPEN
public static final String CLOSED_OPEN
- See Also:
- Constant Field Values
-
OPEN_CLOSED
public static final String OPEN_CLOSED
- See Also:
- Constant Field Values
-
OPEN
public static final String OPEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OwsRange
public OwsRange(OwsValue lowerBound, OwsRange.BoundType lowerBoundType, OwsValue upperBound, OwsRange.BoundType upperBoundType)
-
OwsRange
public OwsRange(OwsValue lowerBound, OwsRange.BoundType lowerBoundType, OwsValue upperBound, OwsRange.BoundType upperBoundType, OwsValue spacing)
-
-
Method Detail
-
getLowerBoundType
public OwsRange.BoundType getLowerBoundType()
-
getUpperBoundType
public OwsRange.BoundType getUpperBoundType()
-
getType
public String getType()
-
asRange
public OwsRange asRange()
- Specified by:
asRangein interfaceOwsValueRestriction
-
isRange
public boolean isRange()
- Specified by:
isRangein interfaceOwsValueRestriction
-
-