deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

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: 19041 $, $Date: 2009-08-11 17:04:57 +0200 (Di, 11 Aug 2009) $
Author:
Rutger Bezema, last edited by: $Author: rbezema $

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

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>