Class: XML::DOM::Notation

Inherits:
Node
  • Object
show all
Defined in:
lib/xml/dom/core.rb,
lib/xml/dom2/notation.rb

Overview

Class XML::DOM::Notation

superclass

Node

Constant Summary

Constants inherited from Node

XML::DOM::Node::ATTRIBUTE_NODE, XML::DOM::Node::CDATA_SECTION_NODE, XML::DOM::Node::COMMENT_NODE, XML::DOM::Node::DOCUMENT_FRAGMENT_NODE, XML::DOM::Node::DOCUMENT_NODE, XML::DOM::Node::DOCUMENT_TYPE_NODE, XML::DOM::Node::ELEMENT_NODE, XML::DOM::Node::ENTITY_NODE, XML::DOM::Node::ENTITY_REFERENCE_NODE, XML::DOM::Node::NODE_NODE, XML::DOM::Node::NOTATION_NODE, XML::DOM::Node::PROCESSING_INSTRUCTION_NODE, XML::DOM::Node::TEXT_NODE

Instance Method Summary collapse

Methods inherited from Node

#+, #<=>, #==, #[], #[]=, #__collectAncestorNS, #__collectDescendatNS, #__sibling, #_ancestor, #_checkNode, #_child, #_descendant, #_following, #_fsibling, #_getChildIndex, #_getMyLocation, #_getMyLocationInXPath, #_getNodeByAbsoluteLocationTerm, #_insertNodes, #_matchAttribute?, #_matchNode?, #_matchNodeAttributes?, #_matchNodeType?, #_nodesByLocationTerms, #_nodesByRelativeLocationTerm, #_preceding, #_psibling, #_removeFromTree, #_removeNode, #_searchID, #accept, #accept_name, #appendChild, #attributes, #childNodes, #childNodes=, #children_accept, #children_accept_name, #dump, #each, #firstChild, #getDigest, #getNodesByXPath, #getNodesByXPointer, #hasAttributes, #hasChildNodes, #insertBefore, #inspect, #isSupported, #lastChild, #localname, #makeXPath, #makeXPointer, #namespaceURI, #nextSibling, #nodeValue, #nodeValue=, #ownerDocument, #ownerDocument=, #parentNode, #parentNode=, #prefix, #prefix=, #previousSibling, #removeChild, #replaceChild, #to_s, #trim

Constructor Details

#initialize(name, pubid, sysid) ⇒ Notation

Class Methods

--- Notation.new(name, pubid, sysid)

creates a new Notation.



2855
2856
2857
2858
2859
2860
# File 'lib/xml/dom/core.rb', line 2855

def initialize(name, pubid, sysid)
  super()
  @name = name.freeze
  @pubid = pubid.freeze
  @sysid = sysid.freeze
end

Instance Method Details

#cloneNode(deep = true) ⇒ Object

DOM


2911
2912
2913
# File 'lib/xml/dom/core.rb', line 2911

def cloneNode(deep = true)
  super(deep, @name, @pubid, @sysid)
end

#nodeNameObject

DOM


2882
2883
2884
# File 'lib/xml/dom/core.rb', line 2882

def nodeName
  @name
end

#nodeTypeObject

DOM


2871
2872
2873
# File 'lib/xml/dom/core.rb', line 2871

def nodeType
  NOTATION_NODE
end

#publicIdObject

— Notation#publicId

returns the publicId of the Notation.



2891
2892
2893
# File 'lib/xml/dom/core.rb', line 2891

def publicId
  @pubid
end

#systemIdObject

— Notation#systemId

returns the systemId of the Notation.



2900
2901
2902
# File 'lib/xml/dom/core.rb', line 2900

def systemId
  @sysid
end