public class StyleTests extends BaseFixture
NS_MAP, testSubject| Constructor and Description |
|---|
StyleTests() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addError(Node node,
String msgKey,
org.opengis.cite.validation.ValidationErrorHandler errHandler) |
(package private) void |
checkFragmentIdentifier(Node styleUrl,
org.opengis.cite.validation.ValidationErrorHandler errHandler)
An error is produced if a kml:styleUrl does not contain fragment
identifier ("#").
|
(package private) void |
checkStyleTarget(Node styleUrl,
org.opengis.cite.validation.ValidationErrorHandler errHandler)
An error is produced if a kml:styleUrl does not refer to a valid style
element (which substitutes for kml:AbstractStyleSelectorGroup).
|
(package private) void |
checkUriScheme(Node styleUrl,
org.opengis.cite.validation.ValidationErrorHandler errHandler)
An error is produced if an absolute kml:styleUrl is not of a supported
URI scheme (
http). |
void |
verifyItemIconURI()
[
Test] Verifies that if a kml:ItemIcon element (with parent
kml:ListStyle) is not a descendant of kml:Update, then it has a kml:href
child element (that specifies the location of the image used in the list
view). |
void |
verifySharedStyleHasId()
[
Test] Verifies that if a style element (any element that may
substitute for kml:AbstractStyleSelectorGroup) has a parent
kml:Document it is a 'shared' style. |
void |
verifyStyleMap()
[
Test] Verifies that if a kml:StyleMap/kml:Pair element is not a
descendant of kml:Update, then it contains (a) a kml:key element, and (b)
at least one of kml:styleURL element or any element that substitutes for
kml:AbstractStyleSelectorGroup (kml:Style, kml:StyleMap). |
void |
verifyStyleReference()
[
Test] Verifies that a kml:styleUrl element satisfies all of the
following constraints:
its value is a valid relative or absolute URL that refers to a shared
style definition (any element that substitutes for
kml:AbstractStyleSelectorGroup);
if the reference is an absolute URI, the value conforms to the 'http'
or 'file' URI schemes;
it includes a fragment identifier conforming to the shorthand pointer
syntax as defined in the W3C XPointer framework. |
obtainTestSubject, setTestSubject, verifyElementNotEmptypublic void verifyStyleReference()
Test] Verifies that a kml:styleUrl element satisfies all of the
following constraints:
public void verifySharedStyleHasId()
Test] Verifies that if a style element (any element that may
substitute for kml:AbstractStyleSelectorGroup) has a parent
kml:Document it is a 'shared' style. All shared styles must have the 'id'
attribute present.
Shared styles include kml:Style and kml:StyleMap elements.public void verifyStyleMap()
Test] Verifies that if a kml:StyleMap/kml:Pair element is not a
descendant of kml:Update, then it contains (a) a kml:key element, and (b)
at least one of kml:styleURL element or any element that substitutes for
kml:AbstractStyleSelectorGroup (kml:Style, kml:StyleMap).public void verifyItemIconURI()
Test] Verifies that if a kml:ItemIcon element (with parent
kml:ListStyle) is not a descendant of kml:Update, then it has a kml:href
child element (that specifies the location of the image used in the list
view).void checkFragmentIdentifier(Node styleUrl, org.opengis.cite.validation.ValidationErrorHandler errHandler)
styleUrl - A kml:styleUrl element.errHandler - The error handler that receives any errors that were detected.void checkUriScheme(Node styleUrl, org.opengis.cite.validation.ValidationErrorHandler errHandler)
http).styleUrl - A kml:styleUrl element.errHandler - The error handler that receives any errors that were detected.void checkStyleTarget(Node styleUrl, org.opengis.cite.validation.ValidationErrorHandler errHandler)
styleUrl - A kml:styleUrl element.errHandler - The error handler that receives any errors that were detected.Copyright © 2021 Open Geospatial Consortium. All rights reserved.