org.deegree.coverage.rangeset
Class AxisSubset

java.lang.Object
  extended by org.deegree.coverage.rangeset.AxisSubset

public class AxisSubset
extends Object

The AxisSubset class represents the subset defined on one of the axis of the coverage.

Version:
$Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Constructor Summary
AxisSubset(String name, String label, List<Interval<?,?>> intervals, List<SingleValue<?>> singleValues)
           
 
Method Summary
 void convertTypes(ValueType newType)
          Convert the types of the intervals and single values of this axis subset to the given type, if and only if the type of this axis is ValueType.Void, if the conversion fails, the old types will not be changed.
 List<Interval<?,?>> getIntervals()
           
 String getLabel()
           
 String getName()
           
 List<SingleValue<?>> getSingleValues()
           
 ValueType getType()
          Returns the type of this axis ranges.
 boolean hasAxisConstraints()
           
 boolean match(AxisSubset other, boolean convert)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AxisSubset

public AxisSubset(String name,
                  String label,
                  List<Interval<?,?>> intervals,
                  List<SingleValue<?>> singleValues)
Parameters:
name -
label - may be null, in this case the name will be returned as label.
intervals -
singleValues -
Method Detail

getIntervals

public final List<Interval<?,?>> getIntervals()
Returns:
the intervals

getSingleValues

public final List<SingleValue<?>> getSingleValues()
Returns:
the singleValues

getName

public final String getName()
Returns:
the name

hasAxisConstraints

public boolean hasAxisConstraints()
Returns:
true if the given axis has interval or singlevalues defined.

match

public boolean match(AxisSubset other,
                     boolean convert)
Parameters:
other -
convert - if true the intervals and singlevalues of this instance will be converted to the type of the given axis subset if their names match and if this type is unknown (void).
Returns:
true if this AxisSubset matches the given AxisSubset, e.g. if the names are equal and the axis values have matching parameters in the given one.

getLabel

public String getLabel()
Returns:
the label or if not present the name

toString

public String toString()
Overrides:
toString in class Object

convertTypes

public void convertTypes(ValueType newType)
Convert the types of the intervals and single values of this axis subset to the given type, if and only if the type of this axis is ValueType.Void, if the conversion fails, the old types will not be changed.

Parameters:
newType - to convert the types of this axis to.

getType

public ValueType getType()
Returns the type of this axis ranges.

Returns:
the determined type of this axis ranges, if the type could not be determined it will be ValueType.Void


Copyright © 2011. All Rights Reserved.