Class mozile.rng.Validation

Object
   |
   +--mozile.rng.Validation

class mozile.rng.Validation

Defined in rng.js


Field Summary
 Object _currentElement
          
 Object _currentParent
          
 Object _lastValidElement
          
 Object _messages
          
 Object _validAttributes
          
 Object allowText
          
 Object isEmpty
          
 Object isValid
          
 
Constructor Summary
mozile.rng.Validation ()
            Represents the result of validating an element.
 
Method Summary
 Attr addAttribute(<Attr> attr)
           Adds an attribute to the list of valid attributes.
 Void append(<mozile.rng.Validation> validation, <Boolean> status)
           Appends the messages from the given mozile.rng.Validation to this object's message list.
 mozile.rng.Validation branch()
           Creates a new Validation object, and copies some of the properties of the current object to the new object.
 Element getCurrentElement()
           Gets the last valid element.
 Element getCurrentParent()
           Gets the current parent element.
 Object getFirstError()
           Returns the first error message.
 String getType()
           Gets the object's type.
 Boolean isAttributeValid(<Attr> attr)
           Determines whether an attribute is on the validAttributes list.
 Void logError(rngNode, <Node> node, <String> message)
           Logs a parsing error message object to the messae array, and sets isValid to false.
 Void logMessage(rngNode, <Node> node, <String> message, <String> type)
           Logs a message object to the messae array.
 Void merge(<mozile.rng.Validation> validation)
           Appends messages and then merges validAttributes lists from the given mozile.rng.Validation object with this object.
 String report(<Boolean> errorsOnly)
           Prints a report of the validation operation.
 Element setCurrentElement(element)
           Sets the element to be validated and marks the last element as validated.
 Element setCurrentParent(element)
           Sets the current parent element.
 String toString()
           Returns "[object mozile.rng.Validation]".

Field Detail

_currentElement

Object _currentElement

_currentParent

Object _currentParent

_lastValidElement

Object _lastValidElement

_messages

Object _messages

_validAttributes

Object _validAttributes

allowText

Object allowText

isEmpty

Object isEmpty

isValid

Object isValid

Constructor Detail

mozile.rng.Validation

mozile.rng.Validation()

Method Detail

addAttribute

Attr addAttribute(<Attr> attr)

append

Void append(<mozile.rng.Validation> validation, <Boolean> status)

branch

mozile.rng.Validation branch()

getCurrentElement

Element getCurrentElement()

getCurrentParent

Element getCurrentParent()

getFirstError

Object getFirstError()

getType

String getType()

isAttributeValid

Boolean isAttributeValid(<Attr> attr)

logError

Void logError(rngNode, <Node> node, <String> message)

logMessage

Void logMessage(rngNode, <Node> node, <String> message, <String> type)

merge

Void merge(<mozile.rng.Validation> validation)

report

String report(<Boolean> errorsOnly)

setCurrentElement

Element setCurrentElement(element)

setCurrentParent

Element setCurrentParent(element)

toString

String toString()


Documentation generated by JSDoc on Wed Feb 20 13:25:28 2008