Class: XamplGenerator::Attribute
- Inherits:
-
Object
- Object
- XamplGenerator::Attribute
- Includes:
- Xampl::XamplObject, Xampl::XamplWithoutContent
- Defined in:
- lib/xamplr-gen/xampl-generator.rb,
lib/xamplr-gen/xampl-hand-generated.rb
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
-
#tag_name ⇒ Object
Returns the value of attribute tag_name.
Class Method Summary collapse
Instance Method Summary collapse
- #after_visit(visitor) ⇒ Object
- #append_to(other) ⇒ Object
- #attributes ⇒ Object
- #before_visit(visitor) ⇒ Object
- #clear_non_persistent_index_attributes ⇒ Object
- #get_the_index ⇒ Object
- #indexed_by ⇒ Object
-
#initialize(index = nil) {|_self| ... } ⇒ Attribute
constructor
A new instance of Attribute.
- #module_name ⇒ Object
- #name ⇒ Object
- #name=(v) ⇒ Object
- #namespace ⇒ Object
- #namespace=(v) ⇒ Object
- #ns ⇒ Object
- #ns_tag ⇒ Object
- #persisted? ⇒ Boolean
- #set_the_index(index) ⇒ Object
- #substitute_in_visit(visitor) ⇒ Object
- #tag ⇒ Object
- #visit(visitor) ⇒ Object
Constructor Details
#initialize(index = nil) {|_self| ... } ⇒ Attribute
Returns a new instance of Attribute.
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1084 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.
5 6 7 |
# File 'lib/xamplr-gen/xampl-generator.rb', line 5 def tag_name @tag_name end |
Class Method Details
.module_name ⇒ Object
1118 1119 1120 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1118 def Attribute.module_name @@module_name end |
.ns ⇒ Object
1110 1111 1112 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1110 def Attribute.ns @@ns end |
.ns_tag ⇒ Object
1114 1115 1116 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1114 def Attribute.ns_tag @@ns_tag end |
.persisted? ⇒ Boolean
1045 1046 1047 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1045 def Attribute.persisted? false end |
.tag ⇒ Object
1106 1107 1108 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1106 def Attribute.tag @@tag end |
Instance Method Details
#after_visit(visitor) ⇒ Object
1166 1167 1168 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1166 def after_visit(visitor) visitor.after_visit_attribute(self) end |
#append_to(other) ⇒ Object
1102 1103 1104 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1102 def append_to(other) other.add_attribute(self) end |
#attributes ⇒ Object
1138 1139 1140 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1138 def attributes @@attributes end |
#before_visit(visitor) ⇒ Object
1158 1159 1160 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1158 def before_visit(visitor) visitor.before_visit_attribute(self) end |
#clear_non_persistent_index_attributes ⇒ Object
1097 1098 1099 1100 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1097 def clear_non_persistent_index_attributes @namespace = nil @name = nil end |
#get_the_index ⇒ Object
1146 1147 1148 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1146 def get_the_index @name end |
#indexed_by ⇒ Object
1142 1143 1144 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1142 def indexed_by :name end |
#module_name ⇒ Object
1134 1135 1136 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1134 def module_name @@module_name end |
#name ⇒ Object
1073 1074 1075 1076 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1073 def name accessed @name end |
#name=(v) ⇒ Object
1078 1079 1080 1081 1082 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1078 def name=(v) accessed changed @name = v end |
#namespace ⇒ Object
1062 1063 1064 1065 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1062 def namespace accessed @namespace end |
#namespace=(v) ⇒ Object
1067 1068 1069 1070 1071 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1067 def namespace=(v) accessed changed @namespace = v end |
#ns ⇒ Object
1126 1127 1128 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1126 def ns @@ns end |
#ns_tag ⇒ Object
1130 1131 1132 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1130 def ns_tag @@ns_tag end |
#persisted? ⇒ Boolean
1049 1050 1051 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1049 def persisted? false end |
#set_the_index(index) ⇒ Object
1150 1151 1152 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1150 def set_the_index(index) @name = index end |
#substitute_in_visit(visitor) ⇒ Object
1154 1155 1156 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1154 def substitute_in_visit(visitor) return visitor.substitute_in_visit_attribute(self) || self end |
#tag ⇒ Object
1122 1123 1124 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1122 def tag @@tag end |
#visit(visitor) ⇒ Object
1162 1163 1164 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1162 def visit(visitor) visitor.visit_attribute(self) end |