Class StyleRecommendations

java.lang.Object
org.opengis.cite.kml22.BaseFixture
org.opengis.cite.kml22.level2.StyleRecommendations

public class StyleRecommendations extends BaseFixture
Contains test methods for checking recommended constraints that apply to style selectors (kml: Style and kml:StyleMap elements).

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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    [Test] Verifies that if a kml:BalloonStyle element is not a descendant of kml:Update, it is not empty.
    void
    [Test] Verifies that if a kml:IconStyle element is not a descendant of kml:Update, it is not empty.
    void
    [Test] Verifies that if a kml:LabelStyle element is not a descendant of kml:Update, it has at least one of the following child elements: kml:color, kml:colorMode, or kml:scale.
    void
    [Test] Verifies that if a kml:ListStyle element is not a descendant of kml:Update, it contains at least one of the following child elements: kml:listItemType, kml:bgColor, or kml:ItemIcon.
    void
    [Test] Verifies that if a kml:PolyStyle element is not a descendant of kml:Update, it contains at least one of the following elements: kml:color, kml:colorMode, kml:fill, or kml:outline.
    void
    [Test] Verifies that if a kml:StyleMap element is not a descendant of kml:Update, it contains two kml:Pair elements where one key value is "normal" and the other key value is "highlight".
    void
    [Test] Verifies that if a kml:Style element is not a descendant of kml:Update, it is not empty.

    Methods inherited from class org.opengis.cite.kml22.BaseFixture

    obtainTestSubject, setTestSubject, verifyElementNotEmpty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StyleRecommendations

      public StyleRecommendations()
  • Method Details

    • verifyPolyStyle

      public void verifyPolyStyle()
      [Test] Verifies that if a kml:PolyStyle element is not a descendant of kml:Update, it contains at least one of the following elements: kml:color, kml:colorMode, kml:fill, or kml:outline.
      See Also:
      • "OGC 07-134r2, ATC 42: PolyStyle"
    • verifyBalloonStyleNotEmpty

      public void verifyBalloonStyleNotEmpty()
      [Test] Verifies that if a kml:BalloonStyle element is not a descendant of kml:Update, it is not empty.
      See Also:
      • "OGC 07-134r2, ATC 58: BalloonStyle"
    • verifyIconStyleNotEmpty

      public void verifyIconStyleNotEmpty()
      [Test] Verifies that if a kml:IconStyle element is not a descendant of kml:Update, it is not empty.
      See Also:
      • "OGC 07-134r2, ATC 61: IconStyle"
    • verifyLabelStyleNotEmpty

      public void verifyLabelStyleNotEmpty()
      [Test] Verifies that if a kml:LabelStyle element is not a descendant of kml:Update, it has at least one of the following child elements: kml:color, kml:colorMode, or kml:scale.
      See Also:
      • "OGC 07-134r2, ATC 63: LabelStyle"
    • verifyListStyle

      public void verifyListStyle()
      [Test] Verifies that if a kml:ListStyle element is not a descendant of kml:Update, it contains at least one of the following child elements: kml:listItemType, kml:bgColor, or kml:ItemIcon.
      See Also:
      • "OGC 07-134r2, ATC 64: ListStyle"
    • verifyStyleNotEmpty

      public void verifyStyleNotEmpty()
      [Test] Verifies that if a kml:Style element is not a descendant of kml:Update, it is not empty.
      See Also:
      • "OGC 07-134r2, ATC 65: Style"
    • verifyStyleMapPairs

      public void verifyStyleMapPairs()
      [Test] Verifies that if a kml:StyleMap element is not a descendant of kml:Update, it contains two kml:Pair elements where one key value is "normal" and the other key value is "highlight".
      See Also:
      • "OGC 07-134r2, ATC 68: StyleMap"