class XML::DOM::Entity

Class XML::DOM::Entity

superclass

Node

Class XML::DOM::Entity

superclass

Node

Public Class Methods

new(name, pubid, sysid, notation) click to toggle source

Class Methods

Calls superclass method XML::DOM::Node.new
# File lib/xml/dom/core.rb, line 2931
def initialize(name, pubid, sysid, notation)
  super()
  @name = name.freeze
  @pubid = pubid.freeze
  @sysid = sysid.freeze
  @notation = notation.freeze
end

Public Instance Methods

_checkNode(node) click to toggle source
# File lib/xml/dom/core.rb, line 3001
def _checkNode(node)
  unless node.nodeType == ELEMENT_NODE ||
      node.nodeType == PROCESSING_INSTRUCTION_NODE ||
      node.nodeType == COMMENT_NODE ||
      node.nodeType == TEXT_NODE ||
      node.nodeType == CDATA_SECTION_NODE ||
      node.nodeType == ENTITY_REFERENCE_NODE
    raise DOMException.new(DOMException::HIERARCHY_REQUEST_ERR)
  end
end
cloneNode(deep = true) click to toggle source
Calls superclass method XML::DOM::Node#cloneNode
# File lib/xml/dom/core.rb, line 2997
def cloneNode(deep = true)
  super(deep, @name, @pubid, @sysid, @notation)
end
nodeName() click to toggle source
# File lib/xml/dom/core.rb, line 2959
def nodeName
  @name
end
nodeType() click to toggle source
# File lib/xml/dom/core.rb, line 2948
def nodeType
  ENTITY_NODE
end
notationName() click to toggle source
# File lib/xml/dom/core.rb, line 2986
def notationName
  @notation
end
publicId() click to toggle source
# File lib/xml/dom/core.rb, line 2968
def publicId
  @pubid
end
systemId() click to toggle source
# File lib/xml/dom/core.rb, line 2977
def systemId
  @sysid
end