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 2930
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 3000
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 2996
def cloneNode(deep = true)
  super(deep, @name, @pubid, @sysid, @notation)
end
nodeName() click to toggle source
# File lib/xml/dom/core.rb, line 2958
def nodeName
  @name
end
nodeType() click to toggle source

Methods

# File lib/xml/dom/core.rb, line 2947
def nodeType
  ENTITY_NODE
end
notationName() click to toggle source
# File lib/xml/dom/core.rb, line 2985
def notationName
  @notation
end
publicId() click to toggle source
# File lib/xml/dom/core.rb, line 2967
def publicId
  @pubid
end
systemId() click to toggle source
# File lib/xml/dom/core.rb, line 2976
def systemId
  @sysid
end