Esempio n. 1
0
        /// <summary>
        /// Implementation of the visit function to generate some output, used in the visitor pattern
        /// </summary>
        /// <param name="node">The actual node which needs to be generated</param>
        /// <param name="parent">The parent object of the node</param>
        public override void Visit(OwlResource node, Object parent)
        {
            XmlElement parentElement = parent as XmlElement;

            if (parentElement != null)
            {
                XmlComment comment = _owlDocument.CreateComment("Visiting a resource: " + node.ID);
                parentElement.AppendChild(comment);
                // Nothing is done when a resource has been reached
            }
        }
 /// <summary>
 /// Implementation of the visit function to generate some output, used in the visitor pattern
 /// </summary>
 /// <param name="node">The actual node which needs to be generated</param>
 /// <param name="parent">The parent object of the node</param>
 public override void Visit(OwlResource node, Object parent)
 {
     XmlElement parentElement = parent as XmlElement;
     if(parentElement != null)
     {
         XmlComment comment = _owlDocument.CreateComment("Visiting a resource: " + node.ID);
         parentElement.AppendChild(comment);
         // Nothing is done when a resource has been reached
     }
 }
 /// <summary>
 /// Implementation of the visit function to generate some output, used in the visitor pattern
 /// </summary>
 /// <param name="node">The actual node which needs to be generated</param>
 /// <param name="parent">The parent object of the node</param>
 public abstract void Visit(OwlResource node, Object parent);
 /// <summary>
 /// Implementation of the visit function to generate some output, used in the visitor pattern
 /// </summary>
 /// <param name="node">The actual node which needs to be generated</param>
 /// <param name="parent">The parent object of the node</param>
 public abstract void Visit(OwlResource node, Object parent);