Class: Moxml::Adapter
- Inherits:
-
Object
- Object
- Moxml::Adapter
- Defined in:
- lib/moxml/adapter.rb
Instance Method Summary collapse
- #add_child(element, child) ⇒ Object
- #add_namespace(element, prefix, uri) ⇒ Object
- #attribute_namespace(attribute) ⇒ Object
-
#attribute_value(attribute) ⇒ Object
Attribute operations.
- #attributes(element) ⇒ Object
- #children(node) ⇒ Object
- #comment_content(comment) ⇒ Object
-
#create_cdata(document, content) ⇒ Object
CDATA operations.
-
#create_comment(document, content) ⇒ Object
Comment operations.
-
#create_element(document, name) ⇒ Object
Element operations.
-
#create_processing_instruction(document, target, content) ⇒ Object
Processing instruction operations.
-
#create_text(document, content) ⇒ Object
Text operations.
- #document(node) ⇒ Object
- #get_attribute(element, name) ⇒ Object
- #namespace_prefix(namespace) ⇒ Object
- #namespace_uri(namespace) ⇒ Object
-
#namespaces(element) ⇒ Object
Namespace operations.
- #next_sibling(node) ⇒ Object
-
#node_name(node) ⇒ Object
Node operations.
-
#node_type(node) ⇒ Object
Node type detection.
- #parent(node) ⇒ Object
-
#parse(input, options = {}) ⇒ Object
Document operations.
- #previous_sibling(node) ⇒ Object
- #processing_instruction_content(pi) ⇒ Object
- #processing_instruction_target(pi) ⇒ Object
- #remove(node) ⇒ Object
- #remove_attribute(element, name) ⇒ Object
- #replace(node, new_node) ⇒ Object
-
#root(document) ⇒ Object
Document specific operations.
- #serialize(node, options = {}) ⇒ Object
- #set_attribute(element, name, value) ⇒ Object
- #set_attribute_value(attribute, value) ⇒ Object
- #set_comment_content(comment, content) ⇒ Object
- #set_processing_instruction_content(pi, content) ⇒ Object
- #set_processing_instruction_target(pi, target) ⇒ Object
- #set_text_content(text, content) ⇒ Object
- #text_content(text) ⇒ Object
Instance Method Details
#add_child(element, child) ⇒ Object
72 73 74 |
# File 'lib/moxml/adapter.rb', line 72 def add_child(element, child) raise NotImplementedError end |
#add_namespace(element, prefix, uri) ⇒ Object
81 82 83 |
# File 'lib/moxml/adapter.rb', line 81 def add_namespace(element, prefix, uri) raise NotImplementedError end |
#attribute_namespace(attribute) ⇒ Object
102 103 104 |
# File 'lib/moxml/adapter.rb', line 102 def attribute_namespace(attribute) raise NotImplementedError end |
#attribute_value(attribute) ⇒ Object
Attribute operations
94 95 96 |
# File 'lib/moxml/adapter.rb', line 94 def attribute_value(attribute) raise NotImplementedError end |
#attributes(element) ⇒ Object
56 57 58 |
# File 'lib/moxml/adapter.rb', line 56 def attributes(element) raise NotImplementedError end |
#children(node) ⇒ Object
27 28 29 |
# File 'lib/moxml/adapter.rb', line 27 def children(node) raise NotImplementedError end |
#comment_content(comment) ⇒ Object
129 130 131 |
# File 'lib/moxml/adapter.rb', line 129 def comment_content(comment) raise NotImplementedError end |
#create_cdata(document, content) ⇒ Object
CDATA operations
120 121 122 |
# File 'lib/moxml/adapter.rb', line 120 def create_cdata(document, content) raise NotImplementedError end |
#create_comment(document, content) ⇒ Object
Comment operations
125 126 127 |
# File 'lib/moxml/adapter.rb', line 125 def create_comment(document, content) raise NotImplementedError end |
#create_element(document, name) ⇒ Object
Element operations
52 53 54 |
# File 'lib/moxml/adapter.rb', line 52 def create_element(document, name) raise NotImplementedError end |
#create_processing_instruction(document, target, content) ⇒ Object
Processing instruction operations
138 139 140 |
# File 'lib/moxml/adapter.rb', line 138 def create_processing_instruction(document, target, content) raise NotImplementedError end |
#create_text(document, content) ⇒ Object
Text operations
107 108 109 |
# File 'lib/moxml/adapter.rb', line 107 def create_text(document, content) raise NotImplementedError end |
#document(node) ⇒ Object
39 40 41 |
# File 'lib/moxml/adapter.rb', line 39 def document(node) raise NotImplementedError end |
#get_attribute(element, name) ⇒ Object
60 61 62 |
# File 'lib/moxml/adapter.rb', line 60 def get_attribute(element, name) raise NotImplementedError end |
#namespace_prefix(namespace) ⇒ Object
85 86 87 |
# File 'lib/moxml/adapter.rb', line 85 def namespace_prefix(namespace) raise NotImplementedError end |
#namespace_uri(namespace) ⇒ Object
89 90 91 |
# File 'lib/moxml/adapter.rb', line 89 def namespace_uri(namespace) raise NotImplementedError end |
#namespaces(element) ⇒ Object
Namespace operations
77 78 79 |
# File 'lib/moxml/adapter.rb', line 77 def namespaces(element) raise NotImplementedError end |
#next_sibling(node) ⇒ Object
31 32 33 |
# File 'lib/moxml/adapter.rb', line 31 def next_sibling(node) raise NotImplementedError end |
#node_name(node) ⇒ Object
Node operations
19 20 21 |
# File 'lib/moxml/adapter.rb', line 19 def node_name(node) raise NotImplementedError end |
#node_type(node) ⇒ Object
Node type detection
14 15 16 |
# File 'lib/moxml/adapter.rb', line 14 def node_type(node) raise NotImplementedError end |
#parent(node) ⇒ Object
23 24 25 |
# File 'lib/moxml/adapter.rb', line 23 def parent(node) raise NotImplementedError end |
#parse(input, options = {}) ⇒ Object
Document operations
5 6 7 |
# File 'lib/moxml/adapter.rb', line 5 def parse(input, = {}) raise NotImplementedError end |
#previous_sibling(node) ⇒ Object
35 36 37 |
# File 'lib/moxml/adapter.rb', line 35 def previous_sibling(node) raise NotImplementedError end |
#processing_instruction_content(pi) ⇒ Object
146 147 148 |
# File 'lib/moxml/adapter.rb', line 146 def processing_instruction_content(pi) raise NotImplementedError end |
#processing_instruction_target(pi) ⇒ Object
142 143 144 |
# File 'lib/moxml/adapter.rb', line 142 def processing_instruction_target(pi) raise NotImplementedError end |
#remove(node) ⇒ Object
43 44 45 |
# File 'lib/moxml/adapter.rb', line 43 def remove(node) raise NotImplementedError end |
#remove_attribute(element, name) ⇒ Object
68 69 70 |
# File 'lib/moxml/adapter.rb', line 68 def remove_attribute(element, name) raise NotImplementedError end |
#replace(node, new_node) ⇒ Object
47 48 49 |
# File 'lib/moxml/adapter.rb', line 47 def replace(node, new_node) raise NotImplementedError end |
#root(document) ⇒ Object
Document specific operations
159 160 161 |
# File 'lib/moxml/adapter.rb', line 159 def root(document) raise NotImplementedError end |
#serialize(node, options = {}) ⇒ Object
9 10 11 |
# File 'lib/moxml/adapter.rb', line 9 def serialize(node, = {}) raise NotImplementedError end |
#set_attribute(element, name, value) ⇒ Object
64 65 66 |
# File 'lib/moxml/adapter.rb', line 64 def set_attribute(element, name, value) raise NotImplementedError end |
#set_attribute_value(attribute, value) ⇒ Object
98 99 100 |
# File 'lib/moxml/adapter.rb', line 98 def set_attribute_value(attribute, value) raise NotImplementedError end |
#set_comment_content(comment, content) ⇒ Object
133 134 135 |
# File 'lib/moxml/adapter.rb', line 133 def set_comment_content(comment, content) raise NotImplementedError end |
#set_processing_instruction_content(pi, content) ⇒ Object
154 155 156 |
# File 'lib/moxml/adapter.rb', line 154 def set_processing_instruction_content(pi, content) raise NotImplementedError end |
#set_processing_instruction_target(pi, target) ⇒ Object
150 151 152 |
# File 'lib/moxml/adapter.rb', line 150 def set_processing_instruction_target(pi, target) raise NotImplementedError end |
#set_text_content(text, content) ⇒ Object
115 116 117 |
# File 'lib/moxml/adapter.rb', line 115 def set_text_content(text, content) raise NotImplementedError end |
#text_content(text) ⇒ Object
111 112 113 |
# File 'lib/moxml/adapter.rb', line 111 def text_content(text) raise NotImplementedError end |