|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.mwi.mobileok.basic.DecodedContent
public abstract class DecodedContent
Represents the decoded content of a resource.
The abstract class must be extended by the different content representations being handled by the Checker.
Constructor Summary | |
---|---|
DecodedContent()
|
Method Summary | |
---|---|
protected static void |
addByteErrorMessages(org.w3c.dom.Document document,
org.w3c.dom.Node parent,
java.lang.Iterable<ValidationByteMessage> messageList)
Adds a representation of the given list of ValidationByteMessage
error messages to the given Node . |
protected static void |
addLineAndColumnMessages(org.w3c.dom.Document document,
org.w3c.dom.Node parent,
java.lang.Iterable<ValidationLineAndColumnMessage> messageList,
java.lang.String type)
Adds a representation of the given list of ValidationLineAndColumnMessage
error messages to the given Node . |
abstract boolean |
isValid()
Returns true when the content could be successfully
decoded. |
abstract org.w3c.dom.Node |
toMokiNode(org.w3c.dom.Document document,
org.w3c.dom.Node parent)
Serializes the content to its moki representation as a DOM node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DecodedContent()
Method Detail |
---|
public abstract boolean isValid()
true
when the content could be successfully
decoded.
true
when the content is valid,
false
otherwise.public abstract org.w3c.dom.Node toMokiNode(org.w3c.dom.Document document, org.w3c.dom.Node parent)
document
- DOM document the created node should belong toparent
- DOM node to which the representation should be appended.
protected static void addLineAndColumnMessages(org.w3c.dom.Document document, org.w3c.dom.Node parent, java.lang.Iterable<ValidationLineAndColumnMessage> messageList, java.lang.String type)
ValidationLineAndColumnMessage
error messages to the given Node
.
document
- the document containing the Node
to completeparent
- the Node
that is to contain the representation of the list.messageList
- the list of validation errors to represent.type
- the name of the element that should contain each error (e.g. "error").protected static void addByteErrorMessages(org.w3c.dom.Document document, org.w3c.dom.Node parent, java.lang.Iterable<ValidationByteMessage> messageList)
ValidationByteMessage
error messages to the given Node
.
document
- the document containing the Node
to completeparent
- the Node
that is to contain the representation of the list.messageList
- the list of validation errors to represent.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |