MarkupHandler

abstract class MarkupHandler

class that handles markup - provides callback methods to MarkupParser. the default is nonvalidating behaviour

class that handles markup - provides callback methods to MarkupParser. the default is nonvalidating behaviour

Authors

Burak Emir

Todo

can we ignore more entity declarations (i.e. those with extIDs)?

expanding entity references

class Object
trait Matchable
class Any

Value members

Abstract methods

def comment(pos: Int, comment: String): NodeSeq

callback method invoked by MarkupParser after parsing comment.

callback method invoked by MarkupParser after parsing comment.

def elem(pos: Int, pre: String, label: String, attrs: MetaData, scope: NamespaceBinding, empty: Boolean, args: NodeSeq): NodeSeq

callback method invoked by MarkupParser after parsing an element, between the elemStart and elemEnd callbacks

callback method invoked by MarkupParser after parsing an element, between the elemStart and elemEnd callbacks

Value Params
args

the children of this element

attrs

the attributes (metadata)

empty

true if the element was previously empty; false otherwise.

label

the local name

pos

the position in the source file

pre

the prefix

def entityRef(pos: Int, n: String): NodeSeq

callback method invoked by MarkupParser after parsing entity ref.

callback method invoked by MarkupParser after parsing entity ref.

Todo

expanding entity references

def procInstr(pos: Int, target: String, txt: String): NodeSeq

callback method invoked by MarkupParser after parsing PI.

callback method invoked by MarkupParser after parsing PI.

def reportSyntaxError(pos: Int, str: String): Unit
def text(pos: Int, txt: String): NodeSeq

callback method invoked by MarkupParser after parsing text.

callback method invoked by MarkupParser after parsing text.

Concrete methods

def attListDecl(name: String, attList: List[AttrDecl]): Unit
def elemDecl(n: String, cmstr: String): Unit
def elemEnd(pos: Int, pre: String, label: String): Unit

callback method invoked by MarkupParser after end-tag of element.

callback method invoked by MarkupParser after end-tag of element.

Value Params
label

the local name

pos

the position in the source file

pre

the prefix

def elemStart(pos: Int, pre: String, label: String, attrs: MetaData, scope: NamespaceBinding): Unit

callback method invoked by MarkupParser after start-tag of element.

callback method invoked by MarkupParser after start-tag of element.

Value Params
attrs

the attributes (metadata)

label

the local name

pos

the position in the sourcefile

pre

the prefix

def endDTD(n: String): Unit
def lookupElemDecl(Label: String): ElemDecl
def notationDecl(notat: String, extID: ExternalID): Unit
def parameterEntityDecl(name: String, edef: EntityDef): Unit
def parsedEntityDecl(name: String, edef: EntityDef): Unit
def peReference(name: String): Unit
def replacementText(entityName: String): Source
def unparsedEntityDecl(name: String, extID: ExternalID, notat: String): Unit

Deprecated methods

@deprecated("This method and its usages will be removed. Use a debugger to debug code.", "2.11")
def log(msg: String): Unit
Deprecated

Concrete fields

var decls: List[Decl]
var ent: Map[String, EntityDecl]
val isValidating: Boolean

returns true is this markup handler is validating

returns true is this markup handler is validating