Checkpoint

Description of Object

A Checkpoint to be added, modified, or deleted.

Required Input

None.

Optional Input

String ID

String InformationURL

String LongDescription

String Module

String Number

Int Priority

String Rule

String ShortDescription

 

Code Examples

C#

string rule = @"ForEachElement IMG[not(@ALT)]\r\nFail Bad image found on slide/page %page%\r\nPass OK";
int priority = 1;
Checkpoint checkpoint = new Checkpoint()
{
ShortDescription = "Short Description",
    LongDescription = "Long Description",
    InformationURL = "http://www.w3.org/TR/WCAG20-TECHS/G17.html",
    Number = "CKPT123",
    Priority = priority,
    Rule = rule
};

 

Java

Checkpoint pnt = new Checkpoint();
pnt.setInformationURL("http://www.example.com");
pnt.setPriority(1);
pnt.setShortDescription("ExampleAPICreateCheckpoint");
pnt.setLongDescription("Added in CreateCheckpointExample");
pnt.setRule("ForEachElement IMG[not(@ALT)]\r\nFail Bad image found on slide/page %page%\r\nPass OK");