< DOMVisitable > Protocol Reference

Inheritance diagram for < DOMVisitable >:

DOMNode DOMAttribute DOMCharacterData DOMDocType DOMParent DOMProcessingInstruction DOMComment DOMText DOMDocument DOMDocumentFragment DOMElement DOMCDATASection List of all members.

Detailed Description

To be implemented by visitable nodes.

The basic implementation is this:

 - (void)acceptVisitor:(id)visitor userInfo:(id)userInfo{
     [visitor visit[NODETYPE]Node:self userInfo:userInfo];
 }

Where [NODETYPE] should be the type of the node.

The visitor may or may not implement the DOMVisitor protocol. If it doesn't, the #acceptVisitor method should check if the visitor responds to the appropriate selector, and if it doesn't, send the generic DOMVisitor#visitUnknownNode:userInfo: instead.


Public Member Functions

(void)  acceptVisitor:userInfo:

Member Function Documentation

- (void) acceptVisitor: (id)  visitor
userInfo: (id)  userInfo