Package org.opengis.cite.kml22.level1
Class FeatureTests
java.lang.Object
org.opengis.cite.kml22.BaseFixture
org.opengis.cite.kml22.level1.FeatureTests
Contains test methods that verify constraints applicable to KML features, including:
- Document
- Folder
- NetworkLink
- Placemark
- GroundOverlay
- PhotoOverlay
- ScreenOverlay
Sources
- OGC 07-134r2: OGC KML 2.2 - Abstract Test Suite
-
Field Summary
Fields inherited from class org.opengis.cite.kml22.BaseFixture
NS_MAP, testSubject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidassertValidEmailAddr(String emailAddr) Asserts that a given email address conforms to the "addr-spec" production in RFC 5322.(package private) voidassertValidIRI(String id) Asserts that a resource identifier is a valid internationalized resource identifier (IRI).void[Test] Verifies that a kml:GroundOverlay feature with an kml:altitudeMode value of "absolute" includes a kml:altitude element.void[Test] Verifies that that an atom:author element satisfies all of the following constraints: the content of the atom:uri element is an IRI reference; the content of the atom:email element conforms to the "addr-spec" production in RFC 2822.void[Test] Verifies that the value of the atom:link/@rel attribute is "related".void[Test] Verifies that the value of the kml:phoneNumber element is a 'tel' URI that conforms to RFC 3966.void[Test] Verifies that if a kml:PhotoOverlay element is not a descendant of kml:Update, then it includes all of the following child elements: kml:Icon, kml:ViewVolume, kml:Point, and kml:Camera.void[Test] Verifies that if a kml:Region element is not a descendant of kml:Update, it contains the kml:LatLonAltBox and kml:Lod elements.void[Test] Verifies that a kml:Lod element (with parent kml:Region) satisfies all of the following constraints: if it is not a descendant of kml:Update, it contains the kml:minLodPixels element; kml:minLodPixels < kml:maxLodPixels (where a value of -1 denotes positive infinity).void[Test] Verifies that a kml:ViewVolume element (in kml:GroundOverlay) includes at least the following child elements: kml:leftFov, kml:rightFov, kml:bottomFov, kml:topFov, and kml:near (non-negative value).Methods inherited from class org.opengis.cite.kml22.BaseFixture
obtainTestSubject, setTestSubject, verifyElementNotEmpty
-
Constructor Details
-
FeatureTests
public FeatureTests()
-
-
Method Details
-
verifyViewVolumeContent
public void verifyViewVolumeContent()[Test] Verifies that a kml:ViewVolume element (in kml:GroundOverlay) includes at least the following child elements: kml:leftFov, kml:rightFov, kml:bottomFov, kml:topFov, and kml:near (non-negative value).- See Also:
-
- "OGC 07-134r2, ATC 19: ViewVolume - minimal content"
- KML Reference - PhotoOverlay
-
verifyPhoneNumberSyntax
public void verifyPhoneNumberSyntax()[Test] Verifies that the value of the kml:phoneNumber element is a 'tel' URI that conforms to RFC 3966.- See Also:
-
- "OGC 07-134r2, ATC 24: PhoneNumber"
- RFC 3966: The tel URI for Telephone Numbers
-
verifyAtomAuthor
public void verifyAtomAuthor()[Test] Verifies that that an atom:author element satisfies all of the following constraints:- the content of the atom:uri element is an IRI reference;
- the content of the atom:email element conforms to the "addr-spec" production in RFC 2822.
Sources
- OGC 07-134r2, ATC 30: atom:author
- RFC 4287: Person Constructs
- RFC 3987: Internationalized Resource Identifiers (IRIs)
- RFC 2822: Addr-spec specification
-
verifyAtomLink
public void verifyAtomLink()[Test] Verifies that the value of the atom:link/@rel attribute is "related". If the attribute is not present, the link must be interpreted as if@rel="alternate"; that is, the referent is an alternate version of the resource. The value "related" simply signifies a generic relationship.- See Also:
-
- "OGC 07-134r2, ATC 31: atom:link"
-
verifyAltitudeInGroundOverlay
public void verifyAltitudeInGroundOverlay()[Test] Verifies that a kml:GroundOverlay feature with an kml:altitudeMode value of "absolute" includes a kml:altitude element.- See Also:
-
- "OGC 07-134r2, ATC 33: GroundOverlay"
-
verifyPhotoOverlay
public void verifyPhotoOverlay()[Test] Verifies that if a kml:PhotoOverlay element is not a descendant of kml:Update, then it includes all of the following child elements: kml:Icon, kml:ViewVolume, kml:Point, and kml:Camera.- See Also:
-
- "OGC 07-134r2, ATC 35: PhotoOverlay - minimal content"
-
verifyRegion
public void verifyRegion()[Test] Verifies that if a kml:Region element is not a descendant of kml:Update, it contains the kml:LatLonAltBox and kml:Lod elements.- See Also:
-
- "OGC 07-134r2, ATC 41: Region"
-
verifyRegionLod
public void verifyRegionLod()[Test] Verifies that a kml:Lod element (with parent kml:Region) satisfies all of the following constraints:- if it is not a descendant of kml:Update, it contains the kml:minLodPixels element;
- kml:minLodPixels < kml:maxLodPixels (where a value of -1 denotes positive infinity).
- See Also:
-
- "OGC 07-134r2, ATC 39: Lod"
-
assertValidEmailAddr
Asserts that a given email address conforms to the "addr-spec" production in RFC 5322.- Parameters:
emailAddr- A String denoting an email address.- See Also:
-
assertValidIRI
Asserts that a resource identifier is a valid internationalized resource identifier (IRI). An IRI is a sequence of characters from the Universal Character Set (Unicode/ISO 10646).- Parameters:
id- A String representing a resource identifier.- See Also:
-