Class: XamplGenerator::IndexAttribute

Inherits:
Object
  • Object
show all
Includes:
Xampl::XamplObject, Xampl::XamplWithoutContent
Defined in:
lib/xamplr-gen/xampl-hand-generated.rb

Constant Summary collapse

@@tag =
"index-attribute"
@@ns =
"http://xampl.com/generator"
@@ns_tag =
"{http://xampl.com/generator}index-attribute"
@@module_name =
"XamplGenerator"
@@attributes =
[
        [ :@name, "name" ],
                [ :@persisted, "persisted" ],
]

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index = nil) {|_self| ... } ⇒ IndexAttribute

Returns a new instance of IndexAttribute.

Yields:

  • (_self)

Yield Parameters:



1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1311

def initialize(index=nil)
  @name = index if index
  super()

  @name = nil if not defined? @name
  @persisted = nil if not defined? @persisted

  init_xampl_object

  yield(self) if block_given?
  changed
end

Class Method Details

.module_nameObject



1345
1346
1347
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1345

def IndexAttribute.module_name
  @@module_name
end

.nsObject



1337
1338
1339
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1337

def IndexAttribute.ns
  @@ns
end

.ns_tagObject



1341
1342
1343
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1341

def IndexAttribute.ns_tag
  @@ns_tag
end

.persisted?Boolean

Returns:

  • (Boolean)


1272
1273
1274
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1272

def IndexAttribute.persisted?
  false
end

.tagObject



1333
1334
1335
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1333

def IndexAttribute.tag
  @@tag
end

Instance Method Details

#after_visit(visitor) ⇒ Object



1393
1394
1395
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1393

def after_visit(visitor)
  visitor.after_visit_index_attribute(self)
end

#append_to(other) ⇒ Object



1329
1330
1331
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1329

def append_to(other)
  other.add_index_attribute(self)
end

#attributesObject



1365
1366
1367
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1365

def attributes
  @@attributes
end

#before_visit(visitor) ⇒ Object



1385
1386
1387
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1385

def before_visit(visitor)
  visitor.before_visit_index_attribute(self)
end

#clear_non_persistent_index_attributesObject



1324
1325
1326
1327
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1324

def clear_non_persistent_index_attributes
  @name = nil
  @persisted = nil
end

#get_the_indexObject



1373
1374
1375
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1373

def get_the_index
  @name
end

#indexed_byObject



1369
1370
1371
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1369

def indexed_by
  :name
end

#module_nameObject



1361
1362
1363
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1361

def module_name
  @@module_name
end

#nameObject



1289
1290
1291
1292
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1289

def name
  accessed
  @name
end

#name=(v) ⇒ Object



1294
1295
1296
1297
1298
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1294

def name=(v)
  accessed
  changed
  @name = v
end

#nsObject



1353
1354
1355
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1353

def ns
  @@ns
end

#ns_tagObject



1357
1358
1359
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1357

def ns_tag
  @@ns_tag
end

#persistedObject



1300
1301
1302
1303
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1300

def persisted
  accessed
  @persisted
end

#persisted=(v) ⇒ Object



1305
1306
1307
1308
1309
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1305

def persisted=(v)
  accessed
  changed
  @persisted = v
end

#persisted?Boolean

Returns:

  • (Boolean)


1276
1277
1278
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1276

def persisted?
  false
end

#set_the_index(index) ⇒ Object



1377
1378
1379
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1377

def set_the_index(index)
  @name = index
end

#substitute_in_visit(visitor) ⇒ Object



1381
1382
1383
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1381

def substitute_in_visit(visitor)
  return visitor.substitute_in_visit_index_attribute(self) || self
end

#tagObject



1349
1350
1351
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1349

def tag
  @@tag
end

#visit(visitor) ⇒ Object



1389
1390
1391
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 1389

def visit(visitor)
  visitor.visit_index_attribute(self)
end