public class RegionValidator extends Object
<xsd:complexType name="RegionType" final="#all">
<xsd:complexContent>
<xsd:extension base="kml:AbstractObjectType">
<xsd:all>
<element ref="kml:AbstractExtentGroup" minOccurs="0"/>
<element ref="kml:Lod" minOccurs="0"/>
</xsd:all>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
The applicable test cases are listed below.
| Constructor and Description |
|---|
RegionValidator()
Default constructor.
|
RegionValidator(int level)
Constructs a RegionValidator to check the constraints that apply to the
specified conformance level.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkLodFadeRange(Element region)
Checks that the following expression holds for the pixel ramp values that
determine whether or not a region is active:
|
(package private) void |
checkRegionExtent(Element region)
Checks the spatial extent of a Region (kml:LatLonAltBox).
|
(package private) void |
checkRegionVisibility(Element region)
Checks that the properties of the kml:Lod element satisfy the following
constraints:
it contains the kml:minLodPixels element
kml:minLodPixels < kml:maxLodPixels (Note: -1 denotes positive
infinity)
|
String |
getErrorMessages()
Returns the error messages reported during the last call to
validateRegionExtent. |
(package private) double |
getLodParameterValue(Element region,
String paramName)
Gets the value of a Lod parameter.
|
boolean |
isValid(Node node)
Validates a kml:Region element.
|
public RegionValidator()
public RegionValidator(int level)
level - The applicable conformance level.public String getErrorMessages()
validateRegionExtent.public boolean isValid(Node node)
node - A kml:Region element.void checkRegionExtent(Element region)
region - A kml:Region element.void checkRegionVisibility(Element region)
region - A kml:Region element.void checkLodFadeRange(Element region)
kml:minFadeExtent + kml:maxFadeExtent <= kml:maxLodPixels - kml:minLodPixels
region - a kml:Region element.Copyright © 2016 Open Geospatial Consortium. All rights reserved.