org.w3c.mwi.mobileok.basic
Class TestSubResultPosition

java.lang.Object
  extended by org.w3c.mwi.mobileok.basic.TestSubResultPosition
Direct Known Subclasses:
TestSubResultBytePosition, TestSubResultGeneralPosition, TestSubResultHeaderPosition, TestSubResultLineColumnPosition

public abstract class TestSubResultPosition
extends java.lang.Object

Abstract class that defines the position or the resource that made a TestSubResult subtest WARN or FAIL.

Depending on the subtest being checked, the position may be the URI of a Web resource (see TestSubResultGeneralPosition), a precise line/column position in a textual representation of a Web resource (see TestSubResultLineColumnPosition), an HTTP header field (see TestSubResultHeaderPosition), or a byte offset if the Web resource returned binary content (see TestSubResultBytePosition).

The appendRemainderToTestResultsDOM(Document, Element) abstract method must be implemented in derivated classes.

Version:
$Revision: 1.1 $
Author:
The W3C mobileOK Checker Task Force
See Also:
TestSubResultPositionType

Field Summary
private  java.lang.String mokiID
           
private  boolean tidied
           
private  TestSubResultPositionType type
           
private  java.lang.String uri
           
 
Constructor Summary
TestSubResultPosition(TestSubResultPositionType type)
           
 
Method Summary
(package private) abstract  void appendRemainderToTestResultsDOM(org.w3c.dom.Document document, org.w3c.dom.Element parent)
           
(package private)  void appendToTestResultsDOM(org.w3c.dom.Document document, org.w3c.dom.Node parent)
           
 java.lang.String getMokiID()
           
 TestSubResultPositionType getType()
           
 java.lang.String getUri()
           
 boolean isTidied()
           
 void setMokiID(java.lang.String mokiID)
           
 void setTidied(boolean tidied)
           
 void setUri(java.lang.String uri)
           
(package private) static TestSubResultPosition valueOf(org.w3c.dom.Element position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private final TestSubResultPositionType type

tidied

private boolean tidied

uri

private java.lang.String uri

mokiID

private java.lang.String mokiID
Constructor Detail

TestSubResultPosition

TestSubResultPosition(TestSubResultPositionType type)
Method Detail

getType

public TestSubResultPositionType getType()

isTidied

public boolean isTidied()

setTidied

public void setTidied(boolean tidied)

getUri

public java.lang.String getUri()

setUri

public void setUri(java.lang.String uri)

getMokiID

public java.lang.String getMokiID()

setMokiID

public void setMokiID(java.lang.String mokiID)

appendToTestResultsDOM

final void appendToTestResultsDOM(org.w3c.dom.Document document,
                                  org.w3c.dom.Node parent)

appendRemainderToTestResultsDOM

abstract void appendRemainderToTestResultsDOM(org.w3c.dom.Document document,
                                              org.w3c.dom.Element parent)

valueOf

static TestSubResultPosition valueOf(org.w3c.dom.Element position)