Class: XamplGenerator::Attribute
Constant Summary
collapse
- @@tag =
"attribute"
- @@ns =
"http://xampl.com/generator"
- @@ns_tag =
"{http://xampl.com/generator}attribute"
- @@module_name =
"XamplGenerator"
- @@attributes =
[
[ :@namespace, "namespace" ],
[ :@name, "name" ],
]
Instance Attribute Summary collapse
#is_changed, #parents
Class Method Summary
collapse
Instance Method Summary
collapse
#<<, #after_visit_by_element_kind, #before_visit_by_element_kind, #children, #has_mixed_content, #test_to_xml, #test_to_xml_internal, #visit_by_element_kind
#===, #accessed, #add_parent, #changed, #changes_accepted, #compare_xampl, #copy_xampl, from_ruby, from_string, from_xml_file, from_xml_string, #ignore_when_no_index, #init_attributes, #init_hook, #init_xampl_object, #invalid, #invalidate, lookup_preferred_ns_prefix, #mark_changed_deep, #note_add_child, #note_add_to_parent, #note_adding_text_content, #note_attributes_initialised, #note_closed, #note_created, #note_initialise_attributes_with, #note_invalidate, #note_replacing, ns_preferred_prefix, #persist, #persist_required, #pp_xml, realise_from_xml_string, recover_from_string, #to_ruby, #to_xml
Constructor Details
#initialize(index = nil) {|_self| ... } ⇒ Attribute
Returns a new instance of Attribute.
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1085
def initialize(index=nil)
@name = index if index
super()
@namespace = nil if not defined? @namespace
@name = nil if not defined? @name
init_xampl_object
yield(self) if block_given?
changed
end
|
Instance Attribute Details
#tag_name ⇒ Object
Returns the value of attribute tag_name.
13
14
15
|
# File 'lib/xamplr/xampl-generator.rb', line 13
def tag_name
@tag_name
end
|
Class Method Details
.module_name ⇒ Object
1119
1120
1121
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1119
def Attribute.module_name
@@module_name
end
|
.ns ⇒ Object
1111
1112
1113
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1111
def Attribute.ns
@@ns
end
|
.ns_tag ⇒ Object
1115
1116
1117
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1115
def Attribute.ns_tag
@@ns_tag
end
|
.persisted? ⇒ Boolean
1046
1047
1048
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1046
def Attribute.persisted?
false
end
|
.tag ⇒ Object
1107
1108
1109
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1107
def Attribute.tag
@@tag
end
|
Instance Method Details
#after_visit(visitor) ⇒ Object
1167
1168
1169
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1167
def after_visit(visitor)
visitor.after_visit_attribute(self)
end
|
#append_to(other) ⇒ Object
1103
1104
1105
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1103
def append_to(other)
other.add_attribute(self)
end
|
#attributes ⇒ Object
1139
1140
1141
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1139
def attributes
@@attributes
end
|
#before_visit(visitor) ⇒ Object
1159
1160
1161
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1159
def before_visit(visitor)
visitor.before_visit_attribute(self)
end
|
#clear_non_persistent_index_attributes ⇒ Object
1098
1099
1100
1101
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1098
def clear_non_persistent_index_attributes
@namespace = nil
@name = nil
end
|
#get_the_index ⇒ Object
1147
1148
1149
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1147
def get_the_index
@name
end
|
#indexed_by ⇒ Object
1143
1144
1145
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1143
def indexed_by
:name
end
|
#module_name ⇒ Object
1135
1136
1137
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1135
def module_name
@@module_name
end
|
#name ⇒ Object
1074
1075
1076
1077
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1074
def name
accessed
@name
end
|
#name=(v) ⇒ Object
1079
1080
1081
1082
1083
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1079
def name=(v)
accessed
changed
@name = v
end
|
#namespace ⇒ Object
1063
1064
1065
1066
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1063
def namespace
accessed
@namespace
end
|
#namespace=(v) ⇒ Object
1068
1069
1070
1071
1072
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1068
def namespace=(v)
accessed
changed
@namespace = v
end
|
#ns ⇒ Object
1127
1128
1129
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1127
def ns
@@ns
end
|
#ns_tag ⇒ Object
1131
1132
1133
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1131
def ns_tag
@@ns_tag
end
|
#persisted? ⇒ Boolean
1050
1051
1052
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1050
def persisted?
false
end
|
#set_the_index(index) ⇒ Object
1151
1152
1153
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1151
def set_the_index(index)
@name = index
end
|
#substitute_in_visit(visitor) ⇒ Object
1155
1156
1157
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1155
def substitute_in_visit(visitor)
return visitor.substitute_in_visit_attribute(self) || self
end
|
#tag ⇒ Object
1123
1124
1125
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1123
def tag
@@tag
end
|
#visit(visitor) ⇒ Object
1163
1164
1165
|
# File 'lib/xamplr/xampl-hand-generated.rb', line 1163
def visit(visitor)
visitor.visit_attribute(self)
end
|