Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209

210

211

212

213

214

215

216

217

218

219

220

221

222

223

224

225

226

227

228

229

230

231

232

233

234

235

236

237

238

239

240

241

242

243

244

245

246

247

248

249

250

251

252

253

254

255

256

257

258

259

260

261

262

263

264

265

266

267

268

269

270

271

272

273

274

275

276

277

278

279

280

281

282

283

284

285

286

287

288

289

290

291

292

293

294

295

296

297

298

299

300

301

302

303

304

305

306

307

308

309

310

311

312

313

314

315

316

317

318

319

320

321

322

323

324

325

326

327

328

329

330

331

332

333

334

335

336

337

338

339

340

341

342

343

344

345

346

347

348

349

350

351

352

353

354

355

356

357

358

359

360

361

362

363

364

365

366

367

368

369

370

371

372

373

374

375

376

377

378

379

380

381

382

383

384

385

386

387

388

389

390

391

392

393

394

395

396

397

398

399

400

401

402

403

404

405

406

407

408

409

410

411

412

413

414

415

416

417

418

419

420

421

422

423

424

425

426

427

428

429

430

431

432

433

434

435

436

437

438

439

440

441

442

443

444

445

446

447

448

449

450

451

452

453

454

455

456

457

458

459

460

461

462

463

464

465

466

467

468

469

470

471

472

473

474

475

476

477

478

479

480

481

482

483

484

485

486

487

488

489

490

491

492

493

494

495

496

497

498

499

500

501

502

503

504

505

506

507

508

509

510

511

512

513

514

515

516

517

518

519

520

521

522

523

524

525

526

527

528

529

530

531

532

533

534

535

536

537

538

539

540

541

542

543

544

545

546

547

548

549

550

551

552

553

554

555

556

557

558

559

560

561

562

563

564

565

566

567

568

569

570

571

572

573

574

575

576

577

578

579

580

581

582

583

584

585

586

587

588

589

590

591

592

593

594

595

596

597

598

599

600

601

602

603

604

605

606

607

608

609

610

611

612

613

614

615

616

617

618

619

620

621

622

623

624

625

626

627

628

629

630

631

632

633

634

635

636

637

638

639

640

641

642

643

644

645

646

647

648

649

650

651

652

653

654

655

656

657

658

659

660

661

662

663

664

665

666

667

668

669

670

671

672

673

674

675

676

677

678

679

680

681

682

683

684

685

686

687

688

689

690

691

692

693

694

695

696

697

698

699

700

701

702

703

704

705

706

707

708

709

710

711

712

713

714

715

716

717

718

719

720

721

722

723

724

725

726

727

728

729

730

731

732

733

734

735

736

737

738

739

740

741

742

743

744

745

746

747

748

749

750

751

752

753

754

755

756

757

758

759

760

761

762

763

764

765

766

767

768

769

770

771

772

773

774

775

776

777

778

779

780

781

782

783

784

785

786

787

788

789

790

791

792

793

794

795

796

797

798

799

800

801

802

803

804

805

806

807

808

809

810

811

812

813

814

815

816

817

818

819

820

821

822

823

824

825

826

827

828

829

830

831

832

833

834

835

836

837

838

839

840

841

842

843

844

845

846

847

848

849

850

851

852

853

854

855

856

857

858

859

860

861

862

863

864

865

866

867

868

869

870

871

872

873

874

875

876

877

878

879

880

881

882

883

884

885

886

887

888

889

890

891

892

893

894

895

896

897

898

899

900

901

902

903

904

905

906

907

908

909

910

911

912

913

914

915

916

917

918

919

920

921

922

923

924

925

926

927

928

929

930

931

932

933

934

935

936

937

938

939

940

941

942

943

944

945

946

947

948

949

950

951

952

953

954

955

956

957

958

959

960

961

962

963

964

965

966

967

968

969

970

971

972

973

974

975

976

977

978

979

980

981

982

983

984

985

986

987

988

989

990

991

992

993

994

995

996

997

998

999

1000

1001

1002

1003

1004

1005

1006

1007

1008

1009

1010

1011

1012

1013

1014

1015

1016

1017

1018

1019

1020

1021

1022

1023

1024

1025

1026

1027

1028

1029

1030

1031

1032

1033

1034

1035

1036

1037

1038

1039

1040

1041

1042

1043

1044

1045

1046

1047

1048

1049

1050

1051

1052

1053

1054

1055

1056

1057

1058

1059

1060

1061

1062

1063

1064

1065

1066

1067

1068

1069

1070

1071

1072

1073

1074

1075

1076

1077

1078

1079

1080

1081

1082

1083

1084

1085

1086

1087

1088

1089

1090

1091

1092

1093

1094

1095

1096

1097

1098

1099

1100

1101

1102

1103

1104

1105

1106

1107

1108

1109

1110

1111

1112

1113

1114

1115

1116

1117

1118

1119

1120

1121

1122

1123

1124

1125

1126

1127

1128

1129

1130

1131

1132

1133

1134

1135

1136

1137

1138

1139

1140

1141

1142

1143

1144

1145

1146

1147

1148

1149

1150

1151

1152

1153

1154

1155

1156

1157

1158

1159

1160

1161

1162

1163

1164

1165

1166

1167

1168

1169

1170

1171

1172

1173

1174

1175

1176

1177

1178

1179

1180

1181

1182

1183

1184

1185

1186

1187

1188

1189

1190

1191

1192

1193

1194

1195

1196

1197

1198

1199

1200

1201

1202

1203

1204

1205

1206

1207

1208

1209

1210

1211

1212

1213

1214

1215

1216

1217

1218

1219

1220

1221

1222

1223

1224

1225

1226

1227

1228

1229

1230

1231

1232

1233

1234

1235

1236

1237

1238

1239

1240

1241

1242

1243

1244

1245

1246

1247

1248

1249

1250

1251

1252

1253

1254

1255

1256

1257

1258

1259

1260

1261

1262

1263

1264

1265

1266

1267

1268

1269

1270

1271

1272

1273

1274

1275

1276

1277

1278

1279

1280

1281

1282

1283

1284

1285

1286

1287

1288

1289

1290

1291

1292

1293

1294

1295

1296

1297

1298

1299

1300

1301

1302

1303

1304

1305

1306

1307

1308

1309

1310

1311

1312

1313

1314

1315

1316

1317

1318

1319

1320

1321

1322

1323

1324

1325

1326

1327

1328

1329

1330

1331

1332

1333

1334

1335

1336

1337

1338

1339

1340

1341

1342

1343

1344

1345

1346

1347

1348

1349

1350

1351

1352

1353

1354

1355

1356

1357

1358

1359

1360

1361

1362

1363

1364

1365

1366

1367

1368

1369

1370

1371

1372

1373

1374

1375

1376

1377

1378

1379

1380

1381

1382

1383

1384

1385

1386

1387

1388

1389

1390

1391

1392

1393

1394

1395

1396

1397

1398

1399

1400

1401

1402

1403

1404

1405

1406

1407

1408

1409

1410

1411

1412

1413

1414

1415

1416

1417

1418

1419

1420

1421

1422

1423

1424

1425

1426

1427

1428

1429

1430

1431

1432

1433

1434

1435

1436

1437

1438

1439

1440

1441

1442

1443

1444

1445

1446

1447

1448

1449

1450

1451

1452

1453

1454

1455

1456

1457

1458

1459

1460

1461

1462

1463

1464

1465

1466

1467

1468

1469

1470

1471

1472

1473

1474

1475

1476

1477

1478

1479

1480

1481

1482

1483

1484

1485

1486

1487

1488

1489

1490

1491

1492

1493

1494

1495

1496

1497

1498

1499

1500

1501

1502

1503

1504

1505

1506

1507

1508

1509

1510

1511

1512

1513

1514

1515

1516

1517

1518

1519

1520

1521

1522

1523

1524

1525

1526

1527

1528

1529

1530

1531

1532

1533

1534

1535

1536

1537

1538

1539

1540

1541

1542

1543

1544

1545

1546

1547

1548

1549

1550

1551

1552

1553

1554

1555

1556

1557

1558

1559

1560

1561

1562

1563

1564

1565

1566

1567

1568

1569

1570

1571

1572

1573

1574

1575

1576

1577

1578

1579

1580

1581

1582

1583

1584

1585

1586

1587

1588

1589

1590

1591

1592

1593

1594

1595

1596

1597

1598

1599

1600

1601

1602

1603

1604

1605

1606

1607

1608

1609

1610

1611

1612

1613

1614

1615

1616

1617

1618

1619

1620

1621

1622

1623

1624

1625

1626

1627

1628

1629

1630

1631

1632

1633

1634

1635

1636

1637

1638

1639

1640

1641

1642

1643

1644

1645

1646

1647

1648

1649

1650

1651

1652

1653

1654

1655

1656

1657

1658

1659

1660

1661

1662

1663

1664

1665

1666

1667

1668

1669

1670

1671

1672

1673

1674

1675

1676

1677

1678

1679

1680

1681

1682

1683

1684

1685

1686

1687

1688

1689

1690

1691

1692

1693

1694

1695

1696

1697

1698

1699

1700

1701

1702

1703

1704

1705

1706

1707

1708

1709

1710

1711

1712

1713

1714

1715

1716

1717

1718

1719

1720

1721

1722

1723

1724

1725

1726

1727

1728

1729

1730

1731

1732

1733

1734

1735

1736

1737

1738

1739

1740

1741

1742

1743

1744

1745

1746

1747

1748

1749

1750

1751

1752

1753

1754

1755

1756

1757

1758

1759

1760

1761

1762

1763

1764

1765

1766

1767

1768

1769

1770

1771

1772

1773

1774

1775

1776

1777

1778

1779

1780

1781

1782

1783

1784

1785

1786

1787

1788

1789

1790

1791

1792

1793

1794

1795

1796

1797

1798

1799

1800

1801

1802

1803

1804

1805

1806

1807

1808

1809

1810

1811

1812

1813

1814

1815

1816

1817

1818

1819

1820

1821

1822

1823

1824

1825

1826

1827

1828

1829

1830

1831

1832

1833

1834

1835

1836

1837

1838

1839

1840

1841

1842

1843

1844

1845

1846

1847

1848

1849

1850

1851

1852

1853

1854

1855

1856

1857

1858

1859

1860

1861

1862

1863

1864

1865

1866

1867

1868

1869

1870

1871

1872

1873

1874

1875

1876

1877

1878

1879

1880

1881

1882

1883

1884

1885

1886

1887

1888

1889

1890

1891

1892

1893

1894

1895

1896

1897

1898

1899

1900

1901

1902

1903

1904

1905

1906

1907

1908

1909

1910

1911

1912

1913

1914

1915

1916

1917

1918

1919

1920

1921

1922

1923

1924

1925

1926

1927

1928

1929

1930

1931

1932

1933

1934

1935

1936

1937

1938

1939

1940

1941

1942

1943

1944

1945

1946

1947

1948

1949

1950

1951

1952

1953

1954

1955

1956

1957

1958

1959

1960

1961

1962

1963

1964

1965

1966

1967

1968

1969

1970

1971

1972

1973

1974

1975

1976

1977

1978

1979

1980

1981

1982

1983

1984

1985

1986

1987

1988

1989

1990

1991

1992

1993

1994

1995

1996

1997

1998

1999

2000

2001

2002

2003

2004

2005

2006

2007

2008

2009

2010

2011

2012

2013

2014

2015

2016

2017

2018

2019

2020

2021

2022

2023

2024

2025

2026

2027

2028

2029

2030

2031

2032

2033

2034

2035

2036

2037

2038

2039

2040

2041

2042

2043

2044

2045

2046

2047

2048

2049

2050

2051

2052

2053

2054

2055

2056

2057

2058

2059

2060

2061

2062

2063

2064

2065

2066

2067

2068

2069

2070

2071

2072

2073

2074

2075

2076

2077

2078

2079

2080

2081

2082

2083

2084

2085

2086

2087

2088

2089

2090

2091

2092

2093

2094

2095

2096

2097

2098

2099

2100

2101

2102

2103

2104

2105

2106

2107

2108

2109

2110

2111

2112

2113

2114

2115

2116

2117

2118

2119

2120

2121

2122

2123

2124

2125

2126

2127

2128

2129

2130

2131

2132

2133

2134

2135

2136

2137

2138

2139

2140

2141

2142

2143

2144

2145

2146

2147

2148

2149

2150

2151

2152

2153

2154

2155

2156

2157

2158

2159

2160

2161

2162

2163

2164

2165

2166

2167

2168

2169

2170

2171

2172

2173

2174

2175

2176

2177

2178

2179

2180

2181

2182

2183

2184

2185

2186

2187

2188

2189

2190

2191

2192

2193

2194

2195

2196

2197

2198

2199

2200

2201

2202

2203

2204

2205

2206

2207

2208

2209

2210

2211

2212

2213

2214

2215

2216

2217

2218

2219

2220

2221

2222

2223

2224

2225

2226

2227

2228

2229

2230

2231

2232

2233

2234

2235

2236

2237

2238

2239

2240

2241

2242

2243

2244

2245

2246

2247

2248

2249

2250

2251

2252

2253

2254

2255

2256

2257

2258

2259

2260

2261

2262

2263

2264

2265

2266

2267

2268

2269

2270

2271

2272

2273

2274

2275

2276

2277

2278

2279

2280

2281

2282

2283

2284

2285

2286

2287

2288

2289

2290

2291

2292

2293

2294

2295

2296

2297

2298

2299

2300

2301

2302

2303

2304

2305

2306

2307

2308

2309

2310

2311

2312

2313

2314

2315

2316

2317

2318

2319

2320

2321

2322

2323

2324

2325

2326

2327

2328

2329

2330

2331

2332

2333

2334

2335

2336

2337

2338

2339

2340

2341

2342

2343

2344

2345

2346

2347

2348

2349

2350

2351

2352

2353

2354

2355

2356

2357

2358

2359

2360

2361

2362

2363

2364

2365

2366

2367

2368

2369

2370

2371

2372

2373

2374

2375

2376

2377

2378

2379

2380

2381

2382

2383

2384

2385

2386

2387

2388

2389

2390

2391

2392

2393

2394

2395

2396

2397

2398

2399

2400

2401

2402

2403

2404

2405

2406

2407

2408

2409

2410

2411

2412

2413

2414

2415

2416

2417

2418

2419

2420

2421

2422

2423

2424

2425

2426

2427

2428

2429

2430

2431

2432

2433

2434

2435

2436

2437

2438

2439

2440

2441

2442

2443

2444

2445

2446

2447

2448

2449

2450

2451

2452

2453

2454

2455

2456

2457

2458

2459

2460

2461

2462

2463

2464

2465

2466

2467

2468

2469

2470

2471

2472

2473

2474

2475

2476

2477

2478

2479

2480

2481

2482

2483

2484

2485

2486

2487

2488

2489

2490

2491

2492

2493

2494

2495

2496

2497

2498

2499

2500

2501

2502

2503

2504

2505

2506

2507

2508

2509

2510

2511

2512

2513

2514

2515

2516

2517

2518

2519

2520

2521

2522

2523

2524

2525

2526

2527

2528

2529

2530

2531

2532

2533

2534

2535

2536

2537

2538

2539

2540

2541

2542

2543

2544

2545

2546

2547

2548

2549

2550

2551

2552

2553

2554

2555

2556

2557

2558

2559

2560

2561

2562

2563

2564

2565

2566

2567

2568

2569

2570

2571

2572

2573

2574

2575

2576

2577

2578

2579

2580

2581

2582

2583

2584

2585

2586

2587

2588

2589

2590

2591

2592

2593

2594

2595

2596

2597

2598

2599

2600

2601

2602

2603

2604

2605

2606

2607

2608

2609

2610

2611

2612

2613

2614

2615

2616

2617

2618

2619

2620

2621

2622

2623

2624

2625

2626

2627

2628

2629

2630

2631

2632

2633

2634

2635

2636

2637

2638

2639

2640

2641

2642

2643

2644

2645

2646

2647

2648

2649

2650

2651

2652

2653

2654

2655

2656

2657

2658

2659

2660

2661

2662

2663

2664

2665

2666

2667

2668

2669

2670

2671

2672

2673

2674

2675

2676

2677

2678

2679

2680

2681

2682

2683

2684

2685

2686

2687

2688

2689

2690

2691

2692

2693

2694

2695

2696

2697

2698

2699

2700

2701

2702

2703

2704

2705

2706

2707

2708

2709

2710

2711

2712

2713

2714

2715

2716

2717

2718

2719

2720

2721

2722

2723

2724

2725

2726

2727

2728

2729

2730

2731

2732

2733

2734

2735

2736

2737

2738

2739

2740

2741

2742

2743

2744

2745

2746

2747

2748

2749

2750

2751

2752

2753

2754

2755

2756

2757

2758

2759

2760

2761

2762

2763

2764

2765

2766

2767

2768

2769

2770

2771

2772

2773

2774

2775

2776

2777

2778

2779

2780

2781

2782

2783

2784

2785

2786

2787

2788

2789

2790

2791

2792

2793

2794

2795

2796

2797

2798

2799

2800

2801

2802

2803

2804

2805

2806

2807

2808

2809

2810

2811

2812

2813

2814

2815

2816

2817

2818

2819

2820

2821

2822

2823

2824

2825

2826

2827

2828

2829

2830

2831

2832

2833

2834

2835

2836

2837

2838

2839

2840

2841

2842

2843

2844

2845

2846

2847

2848

2849

2850

2851

2852

2853

2854

2855

2856

2857

2858

2859

2860

2861

2862

2863

2864

2865

2866

2867

2868

2869

2870

2871

2872

2873

2874

2875

2876

2877

2878

2879

2880

2881

2882

2883

2884

2885

2886

2887

2888

2889

2890

2891

2892

2893

2894

2895

2896

2897

2898

2899

2900

2901

2902

2903

2904

2905

2906

2907

2908

2909

2910

2911

2912

2913

2914

2915

2916

2917

2918

2919

2920

2921

2922

2923

2924

2925

2926

2927

2928

2929

2930

2931

2932

2933

2934

2935

2936

2937

2938

2939

2940

2941

2942

2943

2944

2945

2946

2947

2948

2949

2950

2951

2952

2953

2954

2955

2956

2957

2958

2959

2960

2961

2962

2963

2964

2965

2966

2967

2968

2969

2970

2971

2972

2973

2974

2975

2976

2977

2978

2979

2980

2981

2982

2983

2984

2985

2986

2987

2988

2989

2990

2991

2992

2993

2994

2995

2996

2997

2998

2999

3000

3001

3002

3003

3004

3005

3006

3007

3008

3009

3010

3011

3012

3013

3014

3015

3016

3017

3018

3019

3020

3021

3022

3023

3024

3025

3026

3027

3028

3029

3030

3031

3032

3033

3034

3035

3036

3037

3038

3039

3040

3041

3042

3043

3044

3045

3046

3047

3048

3049

3050

3051

3052

3053

3054

3055

3056

3057

3058

3059

3060

3061

3062

3063

3064

3065

3066

3067

3068

3069

3070

3071

3072

3073

3074

3075

3076

3077

3078

3079

3080

3081

3082

3083

3084

3085

3086

3087

3088

3089

3090

3091

3092

3093

3094

3095

3096

3097

3098

3099

3100

3101

3102

3103

3104

3105

3106

3107

3108

3109

3110

3111

3112

3113

3114

3115

3116

3117

3118

3119

3120

3121

3122

3123

3124

3125

3126

3127

3128

3129

3130

3131

3132

3133

3134

3135

3136

3137

3138

3139

3140

3141

3142

3143

3144

3145

3146

3147

3148

3149

3150

3151

3152

3153

3154

3155

3156

3157

3158

3159

3160

3161

3162

3163

3164

3165

3166

3167

3168

3169

3170

3171

3172

3173

3174

3175

3176

3177

3178

3179

3180

3181

3182

3183

3184

3185

3186

3187

3188

3189

3190

3191

3192

3193

3194

3195

3196

3197

3198

3199

3200

3201

3202

3203

3204

3205

3206

3207

3208

3209

3210

3211

3212

3213

3214

3215

3216

3217

3218

3219

3220

3221

3222

3223

3224

3225

3226

3227

3228

3229

3230

3231

3232

3233

3234

3235

3236

3237

3238

3239

3240

3241

3242

3243

3244

3245

3246

3247

3248

3249

3250

3251

3252

3253

3254

3255

3256

3257

3258

3259

3260

3261

3262

3263

3264

3265

3266

3267

3268

3269

3270

3271

3272

3273

3274

3275

3276

3277

3278

3279

3280

3281

3282

3283

3284

3285

3286

3287

3288

3289

3290

3291

3292

3293

3294

3295

3296

3297

3298

3299

3300

3301

3302

3303

3304

3305

3306

3307

3308

3309

3310

3311

3312

3313

3314

3315

3316

3317

3318

3319

3320

3321

3322

3323

3324

3325

3326

3327

3328

3329

3330

3331

3332

3333

3334

3335

3336

3337

3338

3339

3340

3341

3342

3343

3344

3345

3346

3347

3348

3349

3350

3351

3352

3353

3354

3355

3356

3357

3358

3359

3360

3361

3362

3363

3364

3365

3366

3367

3368

3369

3370

3371

3372

3373

3374

3375

3376

3377

3378

3379

3380

3381

3382

3383

3384

3385

3386

3387

3388

3389

3390

3391

3392

3393

3394

3395

3396

3397

3398

3399

3400

3401

3402

3403

3404

3405

3406

3407

3408

3409

3410

3411

3412

3413

3414

3415

3416

3417

3418

3419

3420

3421

3422

3423

3424

3425

3426

3427

3428

3429

3430

3431

3432

3433

3434

3435

3436

3437

3438

3439

3440

3441

3442

3443

3444

3445

3446

3447

3448

3449

3450

3451

3452

3453

3454

3455

3456

3457

3458

3459

3460

3461

3462

3463

3464

3465

3466

3467

3468

3469

3470

3471

3472

3473

3474

3475

3476

3477

3478

3479

3480

3481

3482

3483

3484

3485

3486

3487

3488

3489

3490

3491

3492

3493

3494

3495

3496

3497

3498

3499

3500

3501

3502

3503

3504

3505

3506

3507

3508

3509

3510

3511

3512

3513

3514

3515

3516

3517

3518

3519

3520

3521

3522

3523

3524

3525

3526

3527

3528

3529

3530

3531

3532

3533

3534

3535

3536

3537

3538

3539

3540

3541

3542

3543

3544

3545

3546

3547

3548

3549

3550

3551

3552

3553

3554

3555

3556

3557

3558

3559

3560

3561

3562

3563

#!/usr/bin/env python 

 

# 

# Generated Fri Mar 4 13:10:52 2011 by generateDS.py version 2.1a. 

# 

 

from __future__ import print_function 

from future import standard_library 

standard_library.install_aliases() 

from builtins import range 

from past.builtins import basestring 

from builtins import object 

import sys 

import re as re_ 

 

16 ↛ 17line 16 didn't jump to line 17, because the condition on line 16 was never trueif sys.version_info.major == 2: 

from StringIO import StringIO 

else: 

from io import StringIO 

 

__all__ = ["VOEvent", "Who", "What", "Author", "Citations", 

"EventIVORN", "Group", "Param", "showIndent", 

"parsexml_", "get_root_tag", "AstroCoords", "Time", 

"TimeInstant", "Position2D", "Value2", 

"AstroCoordSystem", "ObservationLocation", 

"ObservatoryLocation", "ObsDataLocation", 

"WhereWhen", "Table", "Data", "TR"] 

 

etree_ = None 

Verbose_import_ = False 

( XMLParser_import_none, XMLParser_import_lxml, 

XMLParser_import_elementtree 

) = list(range(3)) 

XMLParser_import_library = None 

try: 

# lxml 

from lxml import etree as etree_ 

XMLParser_import_library = XMLParser_import_lxml 

if Verbose_import_: 

print("running with lxml.etree") 

except ImportError: 

try: 

# cElementTree from Python 2.5+ 

import xml.etree.cElementTree as etree_ 

XMLParser_import_library = XMLParser_import_elementtree 

46 ↛ 47line 46 didn't jump to line 47, because the condition on line 46 was never true if Verbose_import_: 

print("running with cElementTree on Python 2.5+") 

except ImportError: 

try: 

# ElementTree from Python 2.5+ 

import xml.etree.ElementTree as etree_ 

XMLParser_import_library = XMLParser_import_elementtree 

if Verbose_import_: 

print("running with ElementTree on Python 2.5+") 

except ImportError: 

try: 

# normal cElementTree install 

import cElementTree as etree_ 

XMLParser_import_library = XMLParser_import_elementtree 

if Verbose_import_: 

print("running with cElementTree") 

except ImportError: 

try: 

# normal ElementTree install 

import elementtree.ElementTree as etree_ 

XMLParser_import_library = XMLParser_import_elementtree 

if Verbose_import_: 

print("running with ElementTree") 

except ImportError: 

raise ImportError("Failed to import ElementTree from any known place") 

 

def parsexml_(*args, **kwargs): 

if (XMLParser_import_library == XMLParser_import_lxml and 

'parser' not in kwargs): 

# Use the lxml ElementTree compatible parser so that, e.g., 

# we ignore comments. 

kwargs['parser'] = etree_.ETCompatXMLParser() 

doc = etree_.parse(*args, **kwargs) 

return doc 

 

# 

# User methods 

# 

# Calls to the methods in these classes are generated by generateDS.py. 

# You can replace these methods by re-implementing the following class 

# in a module named generatedssuper.py. 

 

try: 

from generatedssuper import GeneratedsSuper 

except ImportError as exp: 

 

class GeneratedsSuper(object): 

def format_string(self, input_data, input_name=''): 

return input_data.decode(encoding='ascii') 

def format_integer(self, input_data, input_name=''): 

return '%d' % input_data 

def format_float(self, input_data, input_name=''): 

return '%f' % input_data 

def format_double(self, input_data, input_name=''): 

return '%e' % input_data 

def format_boolean(self, input_data, input_name=''): 

return '%s' % input_data 

 

 

# 

# If you have installed IPython you can uncomment and use the following. 

# IPython is available from http://ipython.scipy.org/. 

# 

 

## from IPython.Shell import IPShellEmbed 

## args = '' 

## ipshell = IPShellEmbed(args, 

## banner = 'Dropping into IPython', 

## exit_msg = 'Leaving Interpreter, back to program.') 

 

# Then use the following line where and when you want to drop into the 

# IPython shell: 

# ipshell('<some message> -- Entering ipshell.\nHit Ctrl-D to exit') 

 

# 

# Globals 

# 

 

ExternalEncoding = 'ascii' 

Tag_pattern_ = re_.compile(r'({.*})?(.*)') 

 

# 

# Support/utility functions. 

# 

 

def showIndent(outfile, level): 

for idx in range(level): 

outfile.write(' ') 

 

def quote_xml(inStr): 

s1 = (isinstance(inStr, basestring) and inStr or 

'%s' % inStr) 

s1 = s1.replace('&', '&amp;') 

s1 = s1.replace('<', '&lt;') 

s1 = s1.replace('>', '&gt;') 

return s1 

 

def quote_attrib(inStr): 

s1 = (isinstance(inStr, basestring) and inStr or 

'%s' % inStr) 

s1 = s1.replace('&', '&amp;') 

s1 = s1.replace('<', '&lt;') 

s1 = s1.replace('>', '&gt;') 

if '"' in s1: 

if "'" in s1: 

s1 = '"%s"' % s1.replace('"', "&quot;") 

else: 

s1 = "'%s'" % s1 

else: 

s1 = '"%s"' % s1 

return s1 

 

def quote_python(inStr): 

s1 = inStr 

if s1.find("'") == -1: 

if s1.find('\n') == -1: 

return "'%s'" % s1 

else: 

return "'''%s'''" % s1 

else: 

if s1.find('"') != -1: 

s1 = s1.replace('"', '\\"') 

if s1.find('\n') == -1: 

return '"%s"' % s1 

else: 

return '"""%s"""' % s1 

 

 

def get_all_text_(node): 

if node.text is not None: 

text = node.text 

else: 

text = '' 

for child in node: 

if child.tail is not None: 

text += child.tail 

return text 

 

 

class GDSParseError(Exception): 

pass 

 

def raise_parse_error(node, msg): 

if XMLParser_import_library == XMLParser_import_lxml: 

msg = '%s (element %s/line %d)' % (msg, node.tag, node.sourceline, ) 

else: 

msg = '%s (element %s)' % (msg, node.tag, ) 

raise GDSParseError(msg) 

 

 

class MixedContainer(object): 

# Constants for category: 

CategoryNone = 0 

CategoryText = 1 

CategorySimple = 2 

CategoryComplex = 3 

# Constants for content_type: 

TypeNone = 0 

TypeText = 1 

TypeString = 2 

TypeInteger = 3 

TypeFloat = 4 

TypeDecimal = 5 

TypeDouble = 6 

TypeBoolean = 7 

def __init__(self, category, content_type, name, value): 

self.category = category 

self.content_type = content_type 

self.name = name 

self.value = value 

def getCategory(self): 

return self.category 

def getContenttype(self, content_type): 

return self.content_type 

def getValue(self): 

return self.value 

def getName(self): 

return self.name 

def export(self, outfile, level, name, namespace): 

if self.category == MixedContainer.CategoryText: 

outfile.write(self.value) 

elif self.category == MixedContainer.CategorySimple: 

self.exportSimple(outfile, level, name) 

else: # category == MixedContainer.CategoryComplex 

self.value.export(outfile, level, namespace,name) 

def exportSimple(self, outfile, level, name): 

if self.content_type == MixedContainer.TypeString: 

outfile.write('<%s>%s</%s>' % (self.name, self.value, self.name)) 

elif self.content_type == MixedContainer.TypeInteger or \ 

self.content_type == MixedContainer.TypeBoolean: 

outfile.write('<%s>%d</%s>' % (self.name, self.value, self.name)) 

elif self.content_type == MixedContainer.TypeFloat or \ 

self.content_type == MixedContainer.TypeDecimal: 

outfile.write('<%s>%f</%s>' % (self.name, self.value, self.name)) 

elif self.content_type == MixedContainer.TypeDouble: 

outfile.write('<%s>%g</%s>' % (self.name, self.value, self.name)) 

def exportLiteral(self, outfile, level, name): 

if self.category == MixedContainer.CategoryText: 

showIndent(outfile, level) 

outfile.write('model_.MixedContainer(%d, %d, "%s", "%s"),\n' % \ 

(self.category, self.content_type, self.name, self.value)) 

elif self.category == MixedContainer.CategorySimple: 

showIndent(outfile, level) 

outfile.write('model_.MixedContainer(%d, %d, "%s", "%s"),\n' % \ 

(self.category, self.content_type, self.name, self.value)) 

else: # category == MixedContainer.CategoryComplex 

showIndent(outfile, level) 

outfile.write('model_.MixedContainer(%d, %d, "%s",\n' % \ 

(self.category, self.content_type, self.name,)) 

self.value.exportLiteral(outfile, level + 1) 

showIndent(outfile, level) 

outfile.write(')\n') 

 

 

class MemberSpec_(object): 

def __init__(self, name='', data_type='', container=0): 

self.name = name 

self.data_type = data_type 

self.container = container 

265 ↛ exitline 265 didn't return from function 'set_name' def set_name(self, name): self.name = name 

266 ↛ exitline 266 didn't return from function 'get_name', because the return on line 266 wasn't executed def get_name(self): return self.name 

267 ↛ exitline 267 didn't return from function 'set_data_type' def set_data_type(self, data_type): self.data_type = data_type 

268 ↛ exitline 268 didn't return from function 'get_data_type_chain', because the return on line 268 wasn't executed def get_data_type_chain(self): return self.data_type 

def get_data_type(self): 

if isinstance(self.data_type, list): 

if len(self.data_type) > 0: 

return self.data_type[-1] 

else: 

return 'xs:string' 

else: 

return self.data_type 

277 ↛ exitline 277 didn't return from function 'set_container' def set_container(self, container): self.container = container 

278 ↛ exitline 278 didn't return from function 'get_container', because the return on line 278 wasn't executed def get_container(self): return self.container 

 

def _cast(typ, value): 

if typ is None or value is None: 

return value 

return typ(value) 

 

# 

# Data representation classes. 

# 

 

class DataRepBase(object): 

 

def export(self, outfile, level, namespace_='', name_=None, namespacedef_=''): 

if name_ is None: 

name_ = self.export_name 

showIndent(outfile, level) 

outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) 

self.exportAttributes(outfile, level, namespace_, name_=self.export_name) 

if self.hasContent_(): 

outfile.write('>\n') 

self.exportChildren(outfile, level + 1, namespace_, name_) 

showIndent(outfile, level) 

outfile.write('</%s%s>\n' % (namespace_, name_)) 

else: 

outfile.write('/>\n') 

 

class VOEvent(DataRepBase, GeneratedsSuper): 

"""VOEvent is the root element for describing observations of immediate 

astronomical events. For more information, see 

http://www.ivoa.net/twiki/bin/view/IVOA/IvoaVOEvent. The event 

consists of at most one of each of: Who, What, WhereWhen, How, 

Why, Citations, Description, and Reference.""" 

subclass = None 

superclass = None 

def __init__(self, version=None, role='observation', ivorn=None, Who=None, What=None, WhereWhen=None, How=None, Why=None, Citations=None, Description=None, Reference=None): 

self.version = _cast(None, version) 

self.role = _cast(None, role) 

self.ivorn = _cast(None, ivorn) 

self.Who = Who 

self.What = What 

self.WhereWhen = WhereWhen 

self.How = How 

self.Why = Why 

self.Citations = Citations 

self.Description = Description 

self.Reference = Reference 

self.export_name = 'VOEvent' 

def factory(*args_, **kwargs_): 

if VOEvent.subclass: 

return VOEvent.subclass(*args_, **kwargs_) 

else: 

return VOEvent(*args_, **kwargs_) 

factory = staticmethod(factory) 

332 ↛ exitline 332 didn't return from function 'get_Who', because the return on line 332 wasn't executed def get_Who(self): return self.Who 

333 ↛ exitline 333 didn't return from function 'set_Who' def set_Who(self, Who): self.Who = Who 

334 ↛ exitline 334 didn't return from function 'get_What', because the return on line 334 wasn't executed def get_What(self): return self.What 

335 ↛ exitline 335 didn't return from function 'set_What' def set_What(self, What): self.What = What 

336 ↛ exitline 336 didn't return from function 'get_WhereWhen', because the return on line 336 wasn't executed def get_WhereWhen(self): return self.WhereWhen 

337 ↛ exitline 337 didn't return from function 'set_WhereWhen' def set_WhereWhen(self, WhereWhen): self.WhereWhen = WhereWhen 

338 ↛ exitline 338 didn't return from function 'get_How', because the return on line 338 wasn't executed def get_How(self): return self.How 

339 ↛ exitline 339 didn't return from function 'set_How' def set_How(self, How): self.How = How 

340 ↛ exitline 340 didn't return from function 'get_Why', because the return on line 340 wasn't executed def get_Why(self): return self.Why 

341 ↛ exitline 341 didn't return from function 'set_Why' def set_Why(self, Why): self.Why = Why 

342 ↛ exitline 342 didn't return from function 'get_Citations', because the return on line 342 wasn't executed def get_Citations(self): return self.Citations 

343 ↛ exitline 343 didn't return from function 'set_Citations' def set_Citations(self, Citations): self.Citations = Citations 

344 ↛ exitline 344 didn't return from function 'get_Description', because the return on line 344 wasn't executed def get_Description(self): return self.Description 

345 ↛ exitline 345 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

346 ↛ exitline 346 didn't return from function 'get_Reference', because the return on line 346 wasn't executed def get_Reference(self): return self.Reference 

347 ↛ exitline 347 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

348 ↛ exitline 348 didn't return from function 'get_version', because the return on line 348 wasn't executed def get_version(self): return self.version 

349 ↛ exitline 349 didn't return from function 'set_version' def set_version(self, version): self.version = version 

350 ↛ exitline 350 didn't return from function 'get_role', because the return on line 350 wasn't executed def get_role(self): return self.role 

351 ↛ exitline 351 didn't return from function 'set_role' def set_role(self, role): self.role = role 

def validate_roleValues(self, value): 

# Validate type roleValues, a restriction on xs:string. 

pass 

355 ↛ exitline 355 didn't return from function 'get_ivorn', because the return on line 355 wasn't executed def get_ivorn(self): return self.ivorn 

356 ↛ exitline 356 didn't return from function 'set_ivorn' def set_ivorn(self, ivorn): self.ivorn = ivorn 

 

def exportAttributes(self, outfile, level, namespace_='', name_='VOEvent'): 

outfile.write(' version=%s' % (self.format_string(quote_attrib(self.version).encode(ExternalEncoding), input_name='version'), )) 

if self.role is not None: 

outfile.write(' role=%s' % (quote_attrib(self.role), )) 

outfile.write(' ivorn=%s' % (self.format_string(quote_attrib(self.ivorn).encode(ExternalEncoding), input_name='ivorn'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='VOEvent'): 

if self.Who: 

self.Who.export(outfile, level, namespace_, name_='Who') 

if self.What: 

self.What.export(outfile, level, namespace_, name_='What') 

if self.WhereWhen: 

self.WhereWhen.export(outfile, level, namespace_, name_='WhereWhen') 

if self.How: 

self.How.export(outfile, level, namespace_, name_='How') 

if self.Why: 

self.Why.export(outfile, level, namespace_, name_='Why') 

if self.Citations: 

self.Citations.export(outfile, level, namespace_, name_='Citations') 

if self.Description is not None: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(self.Description).encode(ExternalEncoding), input_name='Description'), namespace_)) 

if self.Reference: 

self.Reference.export(outfile, level, namespace_, name_='Reference') 

def hasContent_(self): 

if ( 

self.Who is not None or 

self.What is not None or 

self.WhereWhen is not None or 

self.How is not None or 

self.Why is not None or 

self.Citations is not None or 

self.Description is not None or 

self.Reference is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='VOEvent'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.version is not None: 

showIndent(outfile, level) 

outfile.write('version = "%s",\n' % (self.version,)) 

if self.role is not None: 

showIndent(outfile, level) 

outfile.write('role = "%s",\n' % (self.role,)) 

if self.ivorn is not None: 

showIndent(outfile, level) 

outfile.write('ivorn = "%s",\n' % (self.ivorn,)) 

def exportLiteralChildren(self, outfile, level, name_): 

if self.Who is not None: 

showIndent(outfile, level) 

outfile.write('Who=model_.Who(\n') 

self.Who.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.What is not None: 

showIndent(outfile, level) 

outfile.write('What=model_.What(\n') 

self.What.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.WhereWhen is not None: 

showIndent(outfile, level) 

outfile.write('WhereWhen=model_.WhereWhen(\n') 

self.WhereWhen.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.How is not None: 

showIndent(outfile, level) 

outfile.write('How=model_.How(\n') 

self.How.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.Why is not None: 

showIndent(outfile, level) 

outfile.write('Why=model_.Why(\n') 

self.Why.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.Citations is not None: 

showIndent(outfile, level) 

outfile.write('Citations=model_.Citations(\n') 

self.Citations.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.Description is not None: 

showIndent(outfile, level) 

outfile.write('Description=%s,\n' % quote_python(self.Description).encode(ExternalEncoding)) 

if self.Reference is not None: 

showIndent(outfile, level) 

outfile.write('Reference=model_.Reference(\n') 

self.Reference.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('version') 

if value is not None: 

self.version = value 

self.version = ' '.join(self.version.split()) 

value = attrs.get('role') 

if value is not None: 

self.role = value 

self.validate_roleValues(self.role) # validate type roleValues 

value = attrs.get('ivorn') 

if value is not None: 

self.ivorn = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Who': 

obj_ = Who.factory() 

obj_.build(child_) 

self.set_Who(obj_) 

elif nodeName_ == 'What': 

obj_ = What.factory() 

obj_.build(child_) 

self.set_What(obj_) 

elif nodeName_ == 'WhereWhen': 

obj_ = WhereWhen.factory() 

obj_.build(child_) 

self.set_WhereWhen(obj_) 

elif nodeName_ == 'How': 

obj_ = How.factory() 

obj_.build(child_) 

self.set_How(obj_) 

elif nodeName_ == 'Why': 

obj_ = Why.factory() 

obj_.build(child_) 

self.set_Why(obj_) 

elif nodeName_ == 'Citations': 

obj_ = Citations.factory() 

obj_.build(child_) 

self.set_Citations(obj_) 

elif nodeName_ == 'Description': 

Description_ = child_.text 

self.Description = Description_ 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.set_Reference(obj_) 

# end class VOEvent 

 

 

class Who(DataRepBase, GeneratedsSuper): 

"""Who: Curation Metadata""" 

subclass = None 

superclass = None 

def __init__(self, AuthorIVORN=None, Date=None, Description=None, Reference=None, Author=None): 

self.AuthorIVORN = AuthorIVORN 

self.Date = Date 

self.Description = Description 

self.Reference = Reference 

self.Author = Author 

self.export_name = 'Who' 

def factory(*args_, **kwargs_): 

if Who.subclass: 

return Who.subclass(*args_, **kwargs_) 

else: 

return Who(*args_, **kwargs_) 

factory = staticmethod(factory) 

525 ↛ exitline 525 didn't return from function 'get_AuthorIVORN', because the return on line 525 wasn't executed def get_AuthorIVORN(self): return self.AuthorIVORN 

526 ↛ exitline 526 didn't return from function 'set_AuthorIVORN' def set_AuthorIVORN(self, AuthorIVORN): self.AuthorIVORN = AuthorIVORN 

527 ↛ exitline 527 didn't return from function 'get_Date', because the return on line 527 wasn't executed def get_Date(self): return self.Date 

528 ↛ exitline 528 didn't return from function 'set_Date' def set_Date(self, Date): self.Date = Date 

529 ↛ exitline 529 didn't return from function 'get_Description', because the return on line 529 wasn't executed def get_Description(self): return self.Description 

530 ↛ exitline 530 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

531 ↛ exitline 531 didn't return from function 'get_Reference', because the return on line 531 wasn't executed def get_Reference(self): return self.Reference 

532 ↛ exitline 532 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

533 ↛ exitline 533 didn't return from function 'get_Author', because the return on line 533 wasn't executed def get_Author(self): return self.Author 

534 ↛ exitline 534 didn't return from function 'set_Author' def set_Author(self, Author): self.Author = Author 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Who'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='Who'): 

if self.AuthorIVORN is not None: 

showIndent(outfile, level) 

outfile.write('<%sAuthorIVORN>%s</%sAuthorIVORN>\n' % (namespace_, self.format_string(quote_xml(self.AuthorIVORN).encode(ExternalEncoding), input_name='AuthorIVORN'), namespace_)) 

if self.Date is not None: 

showIndent(outfile, level) 

outfile.write('<%sDate>%s</%sDate>\n' % (namespace_, self.format_string(quote_xml(self.Date).encode(ExternalEncoding), input_name='Date'), namespace_)) 

if self.Description is not None: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(self.Description).encode(ExternalEncoding), input_name='Description'), namespace_)) 

if self.Reference: 

self.Reference.export(outfile, level, namespace_, name_='Reference') 

if self.Author: 

self.Author.export(outfile, level, namespace_, name_='Author') 

def hasContent_(self): 

if ( 

self.AuthorIVORN is not None or 

self.Date is not None or 

self.Description is not None or 

self.Reference is not None or 

self.Author is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Who'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

if self.AuthorIVORN is not None: 

showIndent(outfile, level) 

outfile.write('AuthorIVORN=%s,\n' % quote_python(self.AuthorIVORN).encode(ExternalEncoding)) 

if self.Date is not None: 

showIndent(outfile, level) 

outfile.write('Date=%s,\n' % quote_python(self.Date).encode(ExternalEncoding)) 

if self.Description is not None: 

showIndent(outfile, level) 

outfile.write('Description=%s,\n' % quote_python(self.Description).encode(ExternalEncoding)) 

if self.Reference is not None: 

showIndent(outfile, level) 

outfile.write('Reference=model_.Reference(\n') 

self.Reference.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.Author is not None: 

showIndent(outfile, level) 

outfile.write('Author=model_.Author(\n') 

self.Author.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'AuthorIVORN': 

AuthorIVORN_ = child_.text 

self.AuthorIVORN = AuthorIVORN_ 

elif nodeName_ == 'Date': 

Date_ = child_.text 

self.Date = Date_ 

elif nodeName_ == 'Description': 

Description_ = child_.text 

self.Description = Description_ 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.set_Reference(obj_) 

elif nodeName_ == 'Author': 

obj_ = Author.factory() 

obj_.build(child_) 

self.set_Author(obj_) 

# end class Who 

 

 

class Author(DataRepBase, GeneratedsSuper): 

"""Author information follows the IVOA curation information schema: the 

organization responsible for the packet can have a title, short 

name or acronym, and a logo. A contact person has a name, email, 

and phone number. Other contributors can also be noted.""" 

subclass = None 

superclass = None 

def __init__(self, title=None, shortName=None, logoURL=None, contactName=None, contactEmail=None, contactPhone=None, contributor=None): 

if title is None: 

self.title = [] 

else: 

self.title = title 

if shortName is None: 

self.shortName = [] 

else: 

self.shortName = shortName 

if logoURL is None: 

self.logoURL = [] 

else: 

self.logoURL = logoURL 

if contactName is None: 

self.contactName = [] 

else: 

self.contactName = contactName 

if contactEmail is None: 

self.contactEmail = [] 

else: 

self.contactEmail = contactEmail 

if contactPhone is None: 

self.contactPhone = [] 

else: 

self.contactPhone = contactPhone 

if contributor is None: 

self.contributor = [] 

else: 

self.contributor = contributor 

 

self.export_name = 'Author' 

 

def factory(*args_, **kwargs_): 

if Author.subclass: 

return Author.subclass(*args_, **kwargs_) 

else: 

return Author(*args_, **kwargs_) 

factory = staticmethod(factory) 

665 ↛ exitline 665 didn't return from function 'get_title', because the return on line 665 wasn't executed def get_title(self): return self.title 

666 ↛ exitline 666 didn't return from function 'set_title' def set_title(self, title): self.title = title 

667 ↛ exitline 667 didn't return from function 'add_title' def add_title(self, value): self.title.append(value) 

668 ↛ exitline 668 didn't return from function 'insert_title' def insert_title(self, index, value): self.title[index] = value 

669 ↛ exitline 669 didn't return from function 'get_shortName', because the return on line 669 wasn't executed def get_shortName(self): return self.shortName 

670 ↛ exitline 670 didn't return from function 'set_shortName' def set_shortName(self, shortName): self.shortName = shortName 

671 ↛ exitline 671 didn't return from function 'add_shortName' def add_shortName(self, value): self.shortName.append(value) 

672 ↛ exitline 672 didn't return from function 'insert_shortName' def insert_shortName(self, index, value): self.shortName[index] = value 

673 ↛ exitline 673 didn't return from function 'get_logoURL', because the return on line 673 wasn't executed def get_logoURL(self): return self.logoURL 

674 ↛ exitline 674 didn't return from function 'set_logoURL' def set_logoURL(self, logoURL): self.logoURL = logoURL 

675 ↛ exitline 675 didn't return from function 'add_logoURL' def add_logoURL(self, value): self.logoURL.append(value) 

676 ↛ exitline 676 didn't return from function 'insert_logoURL' def insert_logoURL(self, index, value): self.logoURL[index] = value 

677 ↛ exitline 677 didn't return from function 'get_contactName', because the return on line 677 wasn't executed def get_contactName(self): return self.contactName 

678 ↛ exitline 678 didn't return from function 'set_contactName' def set_contactName(self, contactName): self.contactName = contactName 

679 ↛ exitline 679 didn't return from function 'add_contactName' def add_contactName(self, value): self.contactName.append(value) 

680 ↛ exitline 680 didn't return from function 'insert_contactName' def insert_contactName(self, index, value): self.contactName[index] = value 

681 ↛ exitline 681 didn't return from function 'get_contactEmail', because the return on line 681 wasn't executed def get_contactEmail(self): return self.contactEmail 

682 ↛ exitline 682 didn't return from function 'set_contactEmail' def set_contactEmail(self, contactEmail): self.contactEmail = contactEmail 

683 ↛ exitline 683 didn't return from function 'add_contactEmail' def add_contactEmail(self, value): self.contactEmail.append(value) 

684 ↛ exitline 684 didn't return from function 'insert_contactEmail' def insert_contactEmail(self, index, value): self.contactEmail[index] = value 

685 ↛ exitline 685 didn't return from function 'get_contactPhone', because the return on line 685 wasn't executed def get_contactPhone(self): return self.contactPhone 

686 ↛ exitline 686 didn't return from function 'set_contactPhone' def set_contactPhone(self, contactPhone): self.contactPhone = contactPhone 

687 ↛ exitline 687 didn't return from function 'add_contactPhone' def add_contactPhone(self, value): self.contactPhone.append(value) 

688 ↛ exitline 688 didn't return from function 'insert_contactPhone' def insert_contactPhone(self, index, value): self.contactPhone[index] = value 

689 ↛ exitline 689 didn't return from function 'get_contributor', because the return on line 689 wasn't executed def get_contributor(self): return self.contributor 

690 ↛ exitline 690 didn't return from function 'set_contributor' def set_contributor(self, contributor): self.contributor = contributor 

691 ↛ exitline 691 didn't return from function 'add_contributor' def add_contributor(self, value): self.contributor.append(value) 

692 ↛ exitline 692 didn't return from function 'insert_contributor' def insert_contributor(self, index, value): self.contributor[index] = value 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Author'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='Author'): 

for title_ in self.title: 

showIndent(outfile, level) 

outfile.write('<%stitle>%s</%stitle>\n' % (namespace_, self.format_string(quote_xml(title_).encode(ExternalEncoding), input_name='title'), namespace_)) 

for shortName_ in self.shortName: 

showIndent(outfile, level) 

outfile.write('<%sshortName>%s</%sshortName>\n' % (namespace_, self.format_string(quote_xml(shortName_).encode(ExternalEncoding), input_name='shortName'), namespace_)) 

for logoURL_ in self.logoURL: 

showIndent(outfile, level) 

outfile.write('<%slogoURL>%s</%slogoURL>\n' % (namespace_, self.format_string(quote_xml(logoURL_).encode(ExternalEncoding), input_name='logoURL'), namespace_)) 

for contactName_ in self.contactName: 

showIndent(outfile, level) 

outfile.write('<%scontactName>%s</%scontactName>\n' % (namespace_, self.format_string(quote_xml(contactName_).encode(ExternalEncoding), input_name='contactName'), namespace_)) 

for contactEmail_ in self.contactEmail: 

showIndent(outfile, level) 

outfile.write('<%scontactEmail>%s</%scontactEmail>\n' % (namespace_, self.format_string(quote_xml(contactEmail_).encode(ExternalEncoding), input_name='contactEmail'), namespace_)) 

for contactPhone_ in self.contactPhone: 

showIndent(outfile, level) 

outfile.write('<%scontactPhone>%s</%scontactPhone>\n' % (namespace_, self.format_string(quote_xml(contactPhone_).encode(ExternalEncoding), input_name='contactPhone'), namespace_)) 

for contributor_ in self.contributor: 

showIndent(outfile, level) 

outfile.write('<%scontributor>%s</%scontributor>\n' % (namespace_, self.format_string(quote_xml(contributor_).encode(ExternalEncoding), input_name='contributor'), namespace_)) 

def hasContent_(self): 

if ( 

self.title or 

self.shortName or 

self.logoURL or 

self.contactName or 

self.contactEmail or 

self.contactPhone or 

self.contributor 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Author'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('title=[\n') 

level += 1 

for title_ in self.title: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(title_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('shortName=[\n') 

level += 1 

for shortName_ in self.shortName: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(shortName_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('logoURL=[\n') 

level += 1 

for logoURL_ in self.logoURL: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(logoURL_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('contactName=[\n') 

level += 1 

for contactName_ in self.contactName: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(contactName_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('contactEmail=[\n') 

level += 1 

for contactEmail_ in self.contactEmail: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(contactEmail_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('contactPhone=[\n') 

level += 1 

for contactPhone_ in self.contactPhone: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(contactPhone_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('contributor=[\n') 

level += 1 

for contributor_ in self.contributor: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(contributor_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'title': 

title_ = child_.text 

self.title.append(title_) 

elif nodeName_ == 'shortName': 

shortName_ = child_.text 

self.shortName.append(shortName_) 

elif nodeName_ == 'logoURL': 

logoURL_ = child_.text 

self.logoURL.append(logoURL_) 

elif nodeName_ == 'contactName': 

contactName_ = child_.text 

self.contactName.append(contactName_) 

elif nodeName_ == 'contactEmail': 

contactEmail_ = child_.text 

self.contactEmail.append(contactEmail_) 

elif nodeName_ == 'contactPhone': 

contactPhone_ = child_.text 

self.contactPhone.append(contactPhone_) 

elif nodeName_ == 'contributor': 

contributor_ = child_.text 

self.contributor.append(contributor_) 

# end class Author 

 

 

class What(DataRepBase, GeneratedsSuper): 

"""What: Event Characterization. This is the part of the data model 

that is chosen by the Authoer of the event rather than the IVOA. 

There can be Params, that may be in Groups, and Tables, and 

simpleTimeSeries. There can also be Description and Reference as 

with most VOEvent elements.""" 

subclass = None 

superclass = None 

def __init__(self, Param=None, Group=None, Table=None, Description=None, Reference=None): 

if Param is None: 

self.Param = [] 

else: 

self.Param = Param 

if Group is None: 

self.Group = [] 

else: 

self.Group = Group 

if Table is None: 

self.Table = [] 

else: 

self.Table = Table 

if Description is None: 

self.Description = [] 

else: 

self.Description = Description 

if Reference is None: 

self.Reference = [] 

else: 

self.Reference = Reference 

 

self.export_name = 'What' 

 

def factory(*args_, **kwargs_): 

if What.subclass: 

return What.subclass(*args_, **kwargs_) 

else: 

return What(*args_, **kwargs_) 

factory = staticmethod(factory) 

872 ↛ exitline 872 didn't return from function 'get_Param', because the return on line 872 wasn't executed def get_Param(self): return self.Param 

873 ↛ exitline 873 didn't return from function 'set_Param' def set_Param(self, Param): self.Param = Param 

874 ↛ exitline 874 didn't return from function 'add_Param' def add_Param(self, value): self.Param.append(value) 

875 ↛ exitline 875 didn't return from function 'insert_Param' def insert_Param(self, index, value): self.Param[index] = value 

876 ↛ exitline 876 didn't return from function 'get_Group', because the return on line 876 wasn't executed def get_Group(self): return self.Group 

877 ↛ exitline 877 didn't return from function 'set_Group' def set_Group(self, Group): self.Group = Group 

878 ↛ exitline 878 didn't return from function 'add_Group' def add_Group(self, value): self.Group.append(value) 

879 ↛ exitline 879 didn't return from function 'insert_Group' def insert_Group(self, index, value): self.Group[index] = value 

880 ↛ exitline 880 didn't return from function 'get_Table', because the return on line 880 wasn't executed def get_Table(self): return self.Table 

881 ↛ exitline 881 didn't return from function 'set_Table' def set_Table(self, Table): self.Table = Table 

882 ↛ exitline 882 didn't return from function 'add_Table' def add_Table(self, value): self.Table.append(value) 

883 ↛ exitline 883 didn't return from function 'insert_Table' def insert_Table(self, index, value): self.Table[index] = value 

884 ↛ exitline 884 didn't return from function 'get_Description', because the return on line 884 wasn't executed def get_Description(self): return self.Description 

885 ↛ exitline 885 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

886 ↛ exitline 886 didn't return from function 'add_Description' def add_Description(self, value): self.Description.append(value) 

887 ↛ exitline 887 didn't return from function 'insert_Description' def insert_Description(self, index, value): self.Description[index] = value 

888 ↛ exitline 888 didn't return from function 'get_Reference', because the return on line 888 wasn't executed def get_Reference(self): return self.Reference 

889 ↛ exitline 889 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

890 ↛ exitline 890 didn't return from function 'add_Reference' def add_Reference(self, value): self.Reference.append(value) 

891 ↛ exitline 891 didn't return from function 'insert_Reference' def insert_Reference(self, index, value): self.Reference[index] = value 

 

def exportAttributes(self, outfile, level, namespace_='', name_='What'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='What'): 

for Param_ in self.Param: 

Param_.export(outfile, level, namespace_, name_='Param') 

for Group_ in self.Group: 

Group_.export(outfile, level, namespace_, name_='Group') 

for Table_ in self.Table: 

Table_.export(outfile, level, namespace_, name_='Table') 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(Description_).encode(ExternalEncoding), input_name='Description'), namespace_)) 

for Reference_ in self.Reference: 

Reference_.export(outfile, level, namespace_, name_='Reference') 

def hasContent_(self): 

if ( 

self.Param or 

self.Group or 

self.Table or 

self.Description or 

self.Reference 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='What'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('Param=[\n') 

level += 1 

for Param_ in self.Param: 

showIndent(outfile, level) 

outfile.write('model_.Param(\n') 

Param_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Group=[\n') 

level += 1 

for Group_ in self.Group: 

showIndent(outfile, level) 

outfile.write('model_.Group(\n') 

Group_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Table=[\n') 

level += 1 

for Table_ in self.Table: 

showIndent(outfile, level) 

outfile.write('model_.Table(\n') 

Table_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Description=[\n') 

level += 1 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Description_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Reference=[\n') 

level += 1 

for Reference_ in self.Reference: 

showIndent(outfile, level) 

outfile.write('model_.Reference(\n') 

Reference_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Param': 

obj_ = Param.factory() 

obj_.build(child_) 

self.Param.append(obj_) 

elif nodeName_ == 'Group': 

obj_ = Group.factory() 

obj_.build(child_) 

self.Group.append(obj_) 

elif nodeName_ == 'Table': 

obj_ = Table.factory() 

obj_.build(child_) 

self.Table.append(obj_) 

elif nodeName_ == 'Description': 

Description_ = child_.text 

self.Description.append(Description_) 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.Reference.append(obj_) 

# end class What 

 

 

class Param(DataRepBase, GeneratedsSuper): 

"""What/Param definition. A Param has name, value, ucd, unit, dataType; 

and may have Description and Reference.""" 

subclass = None 

superclass = None 

def __init__(self, name=None, dataType='string', value=None, utype=None, ucd=None, unit=None, Description=None, Reference=None, Value=None): 

self.name = _cast(None, name) 

self.dataType = _cast(None, dataType) 

self.value = _cast(None, value) 

self.utype = _cast(None, utype) 

self.ucd = _cast(None, ucd) 

self.unit = _cast(None, unit) 

if Description is None: 

self.Description = [] 

else: 

self.Description = Description 

if Reference is None: 

self.Reference = [] 

else: 

self.Reference = Reference 

self.Value = Value 

self.export_name = 'Param' 

def factory(*args_, **kwargs_): 

if Param.subclass: 

return Param.subclass(*args_, **kwargs_) 

else: 

return Param(*args_, **kwargs_) 

factory = staticmethod(factory) 

1041 ↛ exitline 1041 didn't return from function 'get_Description', because the return on line 1041 wasn't executed def get_Description(self): return self.Description 

1042 ↛ exitline 1042 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

1043 ↛ exitline 1043 didn't return from function 'add_Description' def add_Description(self, value): self.Description.append(value) 

1044 ↛ exitline 1044 didn't return from function 'insert_Description' def insert_Description(self, index, value): self.Description[index] = value 

1045 ↛ exitline 1045 didn't return from function 'get_Reference', because the return on line 1045 wasn't executed def get_Reference(self): return self.Reference 

1046 ↛ exitline 1046 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

1047 ↛ exitline 1047 didn't return from function 'add_Reference' def add_Reference(self, value): self.Reference.append(value) 

1048 ↛ exitline 1048 didn't return from function 'insert_Reference' def insert_Reference(self, index, value): self.Reference[index] = value 

1049 ↛ exitline 1049 didn't return from function 'get_Value', because the return on line 1049 wasn't executed def get_Value(self): return self.Value 

1050 ↛ exitline 1050 didn't return from function 'set_Value' def set_Value(self, Value): self.Value = Value 

1051 ↛ exitline 1051 didn't return from function 'get_name', because the return on line 1051 wasn't executed def get_name(self): return self.name 

1052 ↛ exitline 1052 didn't return from function 'set_name' def set_name(self, name): self.name = name 

1053 ↛ exitline 1053 didn't return from function 'get_dataType', because the return on line 1053 wasn't executed def get_dataType(self): return self.dataType 

1054 ↛ exitline 1054 didn't return from function 'set_dataType' def set_dataType(self, dataType): self.dataType = dataType 

def validate_dataType(self, value): 

# Validate type dataType, a restriction on xs:string. 

pass 

1058 ↛ exitline 1058 didn't return from function 'get_value', because the return on line 1058 wasn't executed def get_value(self): return self.value 

1059 ↛ exitline 1059 didn't return from function 'set_value' def set_value(self, value): self.value = value 

1060 ↛ exitline 1060 didn't return from function 'get_utype', because the return on line 1060 wasn't executed def get_utype(self): return self.utype 

1061 ↛ exitline 1061 didn't return from function 'set_utype' def set_utype(self, utype): self.utype = utype 

1062 ↛ exitline 1062 didn't return from function 'get_ucd', because the return on line 1062 wasn't executed def get_ucd(self): return self.ucd 

1063 ↛ exitline 1063 didn't return from function 'set_ucd' def set_ucd(self, ucd): self.ucd = ucd 

1064 ↛ exitline 1064 didn't return from function 'get_unit', because the return on line 1064 wasn't executed def get_unit(self): return self.unit 

1065 ↛ exitline 1065 didn't return from function 'set_unit' def set_unit(self, unit): self.unit = unit 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Param'): 

if self.name is not None: 

outfile.write(' name=%s' % (self.format_string(quote_attrib(self.name).encode(ExternalEncoding), input_name='name'), )) 

if self.dataType is not None: 

outfile.write(' dataType=%s' % (quote_attrib(self.dataType), )) 

if self.value is not None: 

outfile.write(' value=%s' % (self.format_string(quote_attrib(self.value).encode(ExternalEncoding), input_name='value'), )) 

if self.utype is not None: 

outfile.write(' utype=%s' % (self.format_string(quote_attrib(self.utype).encode(ExternalEncoding), input_name='utype'), )) 

if self.ucd is not None: 

outfile.write(' ucd=%s' % (self.format_string(quote_attrib(self.ucd).encode(ExternalEncoding), input_name='ucd'), )) 

if self.unit is not None: 

outfile.write(' unit=%s' % (self.format_string(quote_attrib(self.unit).encode(ExternalEncoding), input_name='unit'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='Param'): 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(Description_).encode(ExternalEncoding), input_name='Description'), namespace_)) 

for Reference_ in self.Reference: 

Reference_.export(outfile, level, namespace_, name_='Reference') 

if self.Value is not None: 

showIndent(outfile, level) 

outfile.write('<%sValue>%s</%sValue>\n' % (namespace_, self.format_string(quote_xml(self.Value).encode(ExternalEncoding), input_name='Value'), namespace_)) 

def hasContent_(self): 

if ( 

self.Description or 

self.Reference or 

self.Value is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Param'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.name is not None: 

showIndent(outfile, level) 

outfile.write('name = "%s",\n' % (self.name,)) 

if self.dataType is not None: 

showIndent(outfile, level) 

outfile.write('dataType = "%s",\n' % (self.dataType,)) 

if self.value is not None: 

showIndent(outfile, level) 

outfile.write('value = "%s",\n' % (self.value,)) 

if self.utype is not None: 

showIndent(outfile, level) 

outfile.write('utype = "%s",\n' % (self.utype,)) 

if self.ucd is not None: 

showIndent(outfile, level) 

outfile.write('ucd = "%s",\n' % (self.ucd,)) 

if self.unit is not None: 

showIndent(outfile, level) 

outfile.write('unit = "%s",\n' % (self.unit,)) 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('Description=[\n') 

level += 1 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Description_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Reference=[\n') 

level += 1 

for Reference_ in self.Reference: 

showIndent(outfile, level) 

outfile.write('model_.Reference(\n') 

Reference_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

if self.Value is not None: 

showIndent(outfile, level) 

outfile.write('Value=%s,\n' % quote_python(self.Value).encode(ExternalEncoding)) 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('name') 

if value is not None: 

self.name = value 

value = attrs.get('dataType') 

if value is not None: 

self.dataType = value 

self.validate_dataType(self.dataType) # validate type dataType 

value = attrs.get('value') 

if value is not None: 

self.value = value 

value = attrs.get('utype') 

if value is not None: 

self.utype = value 

value = attrs.get('ucd') 

if value is not None: 

self.ucd = value 

value = attrs.get('unit') 

if value is not None: 

self.unit = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Description': 

Description_ = child_.text 

self.Description.append(Description_) 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.Reference.append(obj_) 

elif nodeName_ == 'Value': 

Value_ = child_.text 

self.Value = Value_ 

# end class Param 

 

 

class Group(DataRepBase, GeneratedsSuper): 

"""What/Group definition: A group is a collection of Params, with name 

and type attributes.""" 

subclass = None 

superclass = None 

def __init__(self, type_=None, name=None, Param=None, Description=None, Reference=None): 

self.type_ = _cast(None, type_) 

self.name = _cast(None, name) 

if Param is None: 

self.Param = [] 

else: 

self.Param = Param 

if Description is None: 

self.Description = [] 

else: 

self.Description = Description 

if Reference is None: 

self.Reference = [] 

else: 

self.Reference = Reference 

self.export_name = 'Group' 

 

def factory(*args_, **kwargs_): 

if Group.subclass: 

return Group.subclass(*args_, **kwargs_) 

else: 

return Group(*args_, **kwargs_) 

factory = staticmethod(factory) 

1214 ↛ exitline 1214 didn't return from function 'get_Param', because the return on line 1214 wasn't executed def get_Param(self): return self.Param 

1215 ↛ exitline 1215 didn't return from function 'set_Param' def set_Param(self, Param): self.Param = Param 

1216 ↛ exitline 1216 didn't return from function 'add_Param' def add_Param(self, value): self.Param.append(value) 

1217 ↛ exitline 1217 didn't return from function 'insert_Param' def insert_Param(self, index, value): self.Param[index] = value 

1218 ↛ exitline 1218 didn't return from function 'get_Description', because the return on line 1218 wasn't executed def get_Description(self): return self.Description 

1219 ↛ exitline 1219 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

1220 ↛ exitline 1220 didn't return from function 'add_Description' def add_Description(self, value): self.Description.append(value) 

1221 ↛ exitline 1221 didn't return from function 'insert_Description' def insert_Description(self, index, value): self.Description[index] = value 

1222 ↛ exitline 1222 didn't return from function 'get_Reference', because the return on line 1222 wasn't executed def get_Reference(self): return self.Reference 

1223 ↛ exitline 1223 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

1224 ↛ exitline 1224 didn't return from function 'add_Reference' def add_Reference(self, value): self.Reference.append(value) 

1225 ↛ exitline 1225 didn't return from function 'insert_Reference' def insert_Reference(self, index, value): self.Reference[index] = value 

1226 ↛ exitline 1226 didn't return from function 'get_type', because the return on line 1226 wasn't executed def get_type(self): return self.type_ 

1227 ↛ exitline 1227 didn't return from function 'set_type' def set_type(self, type_): self.type_ = type_ 

1228 ↛ exitline 1228 didn't return from function 'get_name', because the return on line 1228 wasn't executed def get_name(self): return self.name 

1229 ↛ exitline 1229 didn't return from function 'set_name' def set_name(self, name): self.name = name 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Group'): 

if self.type_ is not None: 

outfile.write(' type=%s' % (self.format_string(quote_attrib(self.type_).encode(ExternalEncoding), input_name='type'), )) 

if self.name is not None: 

outfile.write(' name=%s' % (self.format_string(quote_attrib(self.name).encode(ExternalEncoding), input_name='name'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='Group'): 

for Param_ in self.Param: 

Param_.export(outfile, level, namespace_, name_='Param') 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(Description_).encode(ExternalEncoding), input_name='Description'), namespace_)) 

for Reference_ in self.Reference: 

Reference_.export(outfile, level, namespace_, name_='Reference') 

def hasContent_(self): 

if ( 

self.Param or 

self.Description or 

self.Reference 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Group'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.type_ is not None: 

showIndent(outfile, level) 

outfile.write('type_ = "%s",\n' % (self.type_,)) 

if self.name is not None: 

showIndent(outfile, level) 

outfile.write('name = "%s",\n' % (self.name,)) 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('Param=[\n') 

level += 1 

for Param_ in self.Param: 

showIndent(outfile, level) 

outfile.write('model_.Param(\n') 

Param_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Description=[\n') 

level += 1 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Description_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Reference=[\n') 

level += 1 

for Reference_ in self.Reference: 

showIndent(outfile, level) 

outfile.write('model_.Reference(\n') 

Reference_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('type') 

if value is not None: 

self.type_ = value 

value = attrs.get('name') 

if value is not None: 

self.name = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Param': 

obj_ = Param.factory() 

obj_.build(child_) 

self.Param.append(obj_) 

elif nodeName_ == 'Description': 

Description_ = child_.text 

self.Description.append(Description_) 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.Reference.append(obj_) 

# end class Group 

 

 

class Table(DataRepBase, GeneratedsSuper): 

"""What/Table definition. This small Table has Fields for the column 

definitions, and Data to hold the table data, with TR for row 

and TD for value of a table cell.""" 

subclass = None 

superclass = None 

def __init__(self, type_=None, name=None, Description=None, Reference=None, Param=None, Field=None, Data=None): 

self.type_ = _cast(None, type_) 

self.name = _cast(None, name) 

if Description is None: 

self.Description = [] 

else: 

self.Description = Description 

if Reference is None: 

self.Reference = [] 

else: 

self.Reference = Reference 

if Param is None: 

self.Param = [] 

else: 

self.Param = Param 

if Field is None: 

self.Field = [] 

else: 

self.Field = Field 

self.Data = Data 

self.export_name = 'Table' 

def factory(*args_, **kwargs_): 

if Table.subclass: 

return Table.subclass(*args_, **kwargs_) 

else: 

return Table(*args_, **kwargs_) 

factory = staticmethod(factory) 

1359 ↛ exitline 1359 didn't return from function 'get_Description', because the return on line 1359 wasn't executed def get_Description(self): return self.Description 

1360 ↛ exitline 1360 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

1361 ↛ exitline 1361 didn't return from function 'add_Description' def add_Description(self, value): self.Description.append(value) 

1362 ↛ exitline 1362 didn't return from function 'insert_Description' def insert_Description(self, index, value): self.Description[index] = value 

1363 ↛ exitline 1363 didn't return from function 'get_Reference', because the return on line 1363 wasn't executed def get_Reference(self): return self.Reference 

1364 ↛ exitline 1364 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

1365 ↛ exitline 1365 didn't return from function 'add_Reference' def add_Reference(self, value): self.Reference.append(value) 

1366 ↛ exitline 1366 didn't return from function 'insert_Reference' def insert_Reference(self, index, value): self.Reference[index] = value 

1367 ↛ exitline 1367 didn't return from function 'get_Param', because the return on line 1367 wasn't executed def get_Param(self): return self.Param 

1368 ↛ exitline 1368 didn't return from function 'set_Param' def set_Param(self, Param): self.Param = Param 

1369 ↛ exitline 1369 didn't return from function 'add_Param' def add_Param(self, value): self.Param.append(value) 

1370 ↛ exitline 1370 didn't return from function 'insert_Param' def insert_Param(self, index, value): self.Param[index] = value 

1371 ↛ exitline 1371 didn't return from function 'get_Field', because the return on line 1371 wasn't executed def get_Field(self): return self.Field 

1372 ↛ exitline 1372 didn't return from function 'set_Field' def set_Field(self, Field): self.Field = Field 

1373 ↛ exitline 1373 didn't return from function 'add_Field' def add_Field(self, value): self.Field.append(value) 

1374 ↛ exitline 1374 didn't return from function 'insert_Field' def insert_Field(self, index, value): self.Field[index] = value 

1375 ↛ exitline 1375 didn't return from function 'get_Data', because the return on line 1375 wasn't executed def get_Data(self): return self.Data 

1376 ↛ exitline 1376 didn't return from function 'set_Data' def set_Data(self, Data): self.Data = Data 

1377 ↛ exitline 1377 didn't return from function 'get_type', because the return on line 1377 wasn't executed def get_type(self): return self.type_ 

1378 ↛ exitline 1378 didn't return from function 'set_type' def set_type(self, type_): self.type_ = type_ 

1379 ↛ exitline 1379 didn't return from function 'get_name', because the return on line 1379 wasn't executed def get_name(self): return self.name 

1380 ↛ exitline 1380 didn't return from function 'set_name' def set_name(self, name): self.name = name 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Table'): 

if self.type_ is not None: 

outfile.write(' type=%s' % (self.format_string(quote_attrib(self.type_).encode(ExternalEncoding), input_name='type'), )) 

if self.name is not None: 

outfile.write(' name=%s' % (self.format_string(quote_attrib(self.name).encode(ExternalEncoding), input_name='name'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='Table'): 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(Description_).encode(ExternalEncoding), input_name='Description'), namespace_)) 

for Reference_ in self.Reference: 

Reference_.export(outfile, level, namespace_, name_='Reference') 

for Param_ in self.Param: 

Param_.export(outfile, level, namespace_, name_='Param') 

for Field_ in self.Field: 

Field_.export(outfile, level, namespace_, name_='Field') 

if self.Data: 

self.Data.export(outfile, level, namespace_, name_='Data', ) 

def hasContent_(self): 

if ( 

self.Description or 

self.Reference or 

self.Param or 

self.Field or 

self.Data is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Table'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.type_ is not None: 

showIndent(outfile, level) 

outfile.write('type_ = "%s",\n' % (self.type_,)) 

if self.name is not None: 

showIndent(outfile, level) 

outfile.write('name = "%s",\n' % (self.name,)) 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('Description=[\n') 

level += 1 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Description_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Reference=[\n') 

level += 1 

for Reference_ in self.Reference: 

showIndent(outfile, level) 

outfile.write('model_.Reference(\n') 

Reference_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Param=[\n') 

level += 1 

for Param_ in self.Param: 

showIndent(outfile, level) 

outfile.write('model_.Param(\n') 

Param_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Field=[\n') 

level += 1 

for Field_ in self.Field: 

showIndent(outfile, level) 

outfile.write('model_.Field(\n') 

Field_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

if self.Data is not None: 

showIndent(outfile, level) 

outfile.write('Data=model_.Data(\n') 

self.Data.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('type') 

if value is not None: 

self.type_ = value 

value = attrs.get('name') 

if value is not None: 

self.name = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Description': 

Description_ = child_.text 

self.Description.append(Description_) 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.Reference.append(obj_) 

elif nodeName_ == 'Param': 

obj_ = Param.factory() 

obj_.build(child_) 

self.Param.append(obj_) 

elif nodeName_ == 'Field': 

obj_ = Field.factory() 

obj_.build(child_) 

self.Field.append(obj_) 

elif nodeName_ == 'Data': 

obj_ = Data.factory() 

obj_.build(child_) 

self.set_Data(obj_) 

# end class Table 

 

 

class Field(DataRepBase, GeneratedsSuper): 

subclass = None 

superclass = None 

def __init__(self, dataType='string', utype=None, ucd=None, name=None, unit=None, Description=None, Reference=None): 

self.dataType = _cast(None, dataType) 

self.utype = _cast(None, utype) 

self.ucd = _cast(None, ucd) 

self.name = _cast(None, name) 

self.unit = _cast(None, unit) 

if Description is None: 

self.Description = [] 

else: 

self.Description = Description 

if Reference is None: 

self.Reference = [] 

else: 

self.Reference = Reference 

self.export_name = 'Field' 

def factory(*args_, **kwargs_): 

if Field.subclass: 

return Field.subclass(*args_, **kwargs_) 

else: 

return Field(*args_, **kwargs_) 

factory = staticmethod(factory) 

1533 ↛ exitline 1533 didn't return from function 'get_Description', because the return on line 1533 wasn't executed def get_Description(self): return self.Description 

1534 ↛ exitline 1534 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

1535 ↛ exitline 1535 didn't return from function 'add_Description' def add_Description(self, value): self.Description.append(value) 

1536 ↛ exitline 1536 didn't return from function 'insert_Description' def insert_Description(self, index, value): self.Description[index] = value 

1537 ↛ exitline 1537 didn't return from function 'get_Reference', because the return on line 1537 wasn't executed def get_Reference(self): return self.Reference 

1538 ↛ exitline 1538 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

1539 ↛ exitline 1539 didn't return from function 'add_Reference' def add_Reference(self, value): self.Reference.append(value) 

1540 ↛ exitline 1540 didn't return from function 'insert_Reference' def insert_Reference(self, index, value): self.Reference[index] = value 

1541 ↛ exitline 1541 didn't return from function 'get_dataType', because the return on line 1541 wasn't executed def get_dataType(self): return self.dataType 

1542 ↛ exitline 1542 didn't return from function 'set_dataType' def set_dataType(self, dataType): self.dataType = dataType 

def validate_dataType(self, value): 

# Validate type dataType, a restriction on xs:string. 

pass 

1546 ↛ exitline 1546 didn't return from function 'get_utype', because the return on line 1546 wasn't executed def get_utype(self): return self.utype 

1547 ↛ exitline 1547 didn't return from function 'set_utype' def set_utype(self, utype): self.utype = utype 

1548 ↛ exitline 1548 didn't return from function 'get_ucd', because the return on line 1548 wasn't executed def get_ucd(self): return self.ucd 

1549 ↛ exitline 1549 didn't return from function 'set_ucd' def set_ucd(self, ucd): self.ucd = ucd 

1550 ↛ exitline 1550 didn't return from function 'get_name', because the return on line 1550 wasn't executed def get_name(self): return self.name 

1551 ↛ exitline 1551 didn't return from function 'set_name' def set_name(self, name): self.name = name 

1552 ↛ exitline 1552 didn't return from function 'get_unit', because the return on line 1552 wasn't executed def get_unit(self): return self.unit 

1553 ↛ exitline 1553 didn't return from function 'set_unit' def set_unit(self, unit): self.unit = unit 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Field'): 

if self.dataType is not None: 

outfile.write(' dataType=%s' % (quote_attrib(self.dataType), )) 

if self.utype is not None: 

outfile.write(' utype=%s' % (self.format_string(quote_attrib(self.utype).encode(ExternalEncoding), input_name='utype'), )) 

if self.ucd is not None: 

outfile.write(' ucd=%s' % (self.format_string(quote_attrib(self.ucd).encode(ExternalEncoding), input_name='ucd'), )) 

if self.name is not None: 

outfile.write(' name=%s' % (self.format_string(quote_attrib(self.name).encode(ExternalEncoding), input_name='name'), )) 

if self.unit is not None: 

outfile.write(' unit=%s' % (self.format_string(quote_attrib(self.unit).encode(ExternalEncoding), input_name='unit'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='Field'): 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(Description_).encode(ExternalEncoding), input_name='Description'), namespace_)) 

for Reference_ in self.Reference: 

Reference_.export(outfile, level, namespace_, name_='Reference') 

def hasContent_(self): 

if ( 

self.Description or 

self.Reference 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Field'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.dataType is not None: 

showIndent(outfile, level) 

outfile.write('dataType = "%s",\n' % (self.dataType,)) 

if self.utype is not None: 

showIndent(outfile, level) 

outfile.write('utype = "%s",\n' % (self.utype,)) 

if self.ucd is not None: 

showIndent(outfile, level) 

outfile.write('ucd = "%s",\n' % (self.ucd,)) 

if self.name is not None: 

showIndent(outfile, level) 

outfile.write('name = "%s",\n' % (self.name,)) 

if self.unit is not None: 

showIndent(outfile, level) 

outfile.write('unit = "%s",\n' % (self.unit,)) 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('Description=[\n') 

level += 1 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Description_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Reference=[\n') 

level += 1 

for Reference_ in self.Reference: 

showIndent(outfile, level) 

outfile.write('model_.Reference(\n') 

Reference_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('dataType') 

if value is not None: 

self.dataType = value 

self.validate_dataType(self.dataType) # validate type dataType 

value = attrs.get('utype') 

if value is not None: 

self.utype = value 

value = attrs.get('ucd') 

if value is not None: 

self.ucd = value 

value = attrs.get('name') 

if value is not None: 

self.name = value 

value = attrs.get('unit') 

if value is not None: 

self.unit = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Description': 

Description_ = child_.text 

self.Description.append(Description_) 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.Reference.append(obj_) 

# end class Field 

 

 

class Data(DataRepBase, GeneratedsSuper): 

subclass = None 

superclass = None 

def __init__(self, TR=None): 

if TR is None: 

self.TR = [] 

else: 

self.TR = TR 

self.export_name = 'Data' 

 

def factory(*args_, **kwargs_): 

if Data.subclass: 

return Data.subclass(*args_, **kwargs_) 

else: 

return Data(*args_, **kwargs_) 

factory = staticmethod(factory) 

1672 ↛ exitline 1672 didn't return from function 'get_TR', because the return on line 1672 wasn't executed def get_TR(self): return self.TR 

1673 ↛ exitline 1673 didn't return from function 'set_TR' def set_TR(self, TR): self.TR = TR 

1674 ↛ exitline 1674 didn't return from function 'add_TR' def add_TR(self, value): self.TR.append(value) 

1675 ↛ exitline 1675 didn't return from function 'insert_TR' def insert_TR(self, index, value): self.TR[index] = value 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Data'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='Data'): 

for TR_ in self.TR: 

TR_.export(outfile, level, namespace_, name_='TR') 

def hasContent_(self): 

if ( 

self.TR 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Data'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('TR=[\n') 

level += 1 

for TR_ in self.TR: 

showIndent(outfile, level) 

outfile.write('model_.TR(\n') 

TR_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'TR': 

obj_ = TR.factory() 

obj_.build(child_) 

self.TR.append(obj_) 

# end class Data 

 

 

class TR(DataRepBase, GeneratedsSuper): 

subclass = None 

superclass = None 

def __init__(self, TD=None): 

if TD is None: 

self.TD = [] 

else: 

self.TD = TD 

self.export_name = 'TR' 

def factory(*args_, **kwargs_): 

if TR.subclass: 

return TR.subclass(*args_, **kwargs_) 

else: 

return TR(*args_, **kwargs_) 

factory = staticmethod(factory) 

1739 ↛ exitline 1739 didn't return from function 'get_TD', because the return on line 1739 wasn't executed def get_TD(self): return self.TD 

1740 ↛ exitline 1740 didn't return from function 'set_TD' def set_TD(self, TD): self.TD = TD 

1741 ↛ exitline 1741 didn't return from function 'add_TD' def add_TD(self, value): self.TD.append(value) 

1742 ↛ exitline 1742 didn't return from function 'insert_TD' def insert_TD(self, index, value): self.TD[index] = value 

 

def exportAttributes(self, outfile, level, namespace_='', name_='TR'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='TR'): 

for TD_ in self.TD: 

showIndent(outfile, level) 

outfile.write('<%sTD>%s</%sTD>\n' % (namespace_, self.format_string(quote_xml(TD_).encode(ExternalEncoding), input_name='TD'), namespace_)) 

def hasContent_(self): 

if ( 

self.TD 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='TR'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('TD=[\n') 

level += 1 

for TD_ in self.TD: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(TD_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'TD': 

TD_ = child_.text 

self.TD.append(TD_) 

# end class TR 

 

 

class WhereWhen(DataRepBase, GeneratedsSuper): 

"""WhereWhen: Space-Time Coordinates. Lots and lots of elements here, 

but the import is that each event has these: observatory, 

coord_system, time, timeError, longitude, latitude, posError.""" 

subclass = None 

superclass = None 

def __init__(self, id=None, ObsDataLocation=None, Description=None, Reference=None): 

self.id = _cast(None, id) 

self.ObsDataLocation = ObsDataLocation 

if Description is None: 

self.Description = [] 

else: 

self.Description = Description 

if Reference is None: 

self.Reference = [] 

else: 

self.Reference = Reference 

self.export_name = 'WhereWhen' 

 

def factory(*args_, **kwargs_): 

if WhereWhen.subclass: 

return WhereWhen.subclass(*args_, **kwargs_) 

else: 

return WhereWhen(*args_, **kwargs_) 

factory = staticmethod(factory) 

1813 ↛ exitline 1813 didn't return from function 'get_ObsDataLocation', because the return on line 1813 wasn't executed def get_ObsDataLocation(self): return self.ObsDataLocation 

1814 ↛ exitline 1814 didn't return from function 'set_ObsDataLocation' def set_ObsDataLocation(self, ObsDataLocation): self.ObsDataLocation = ObsDataLocation 

1815 ↛ exitline 1815 didn't return from function 'get_Description', because the return on line 1815 wasn't executed def get_Description(self): return self.Description 

1816 ↛ exitline 1816 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

1817 ↛ exitline 1817 didn't return from function 'add_Description' def add_Description(self, value): self.Description.append(value) 

1818 ↛ exitline 1818 didn't return from function 'insert_Description' def insert_Description(self, index, value): self.Description[index] = value 

1819 ↛ exitline 1819 didn't return from function 'get_Reference', because the return on line 1819 wasn't executed def get_Reference(self): return self.Reference 

1820 ↛ exitline 1820 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

1821 ↛ exitline 1821 didn't return from function 'add_Reference' def add_Reference(self, value): self.Reference.append(value) 

1822 ↛ exitline 1822 didn't return from function 'insert_Reference' def insert_Reference(self, index, value): self.Reference[index] = value 

1823 ↛ exitline 1823 didn't return from function 'get_id', because the return on line 1823 wasn't executed def get_id(self): return self.id 

1824 ↛ exitline 1824 didn't return from function 'set_id' def set_id(self, id): self.id = id 

 

def exportAttributes(self, outfile, level, namespace_='', name_='WhereWhen'): 

if self.id is not None: 

outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='WhereWhen'): 

if self.ObsDataLocation: 

self.ObsDataLocation.export(outfile, level, namespace_, name_='ObsDataLocation', ) 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(Description_).encode(ExternalEncoding), input_name='Description'), namespace_)) 

for Reference_ in self.Reference: 

Reference_.export(outfile, level, namespace_, name_='Reference') 

def hasContent_(self): 

if ( 

self.ObsDataLocation is not None or 

self.Description or 

self.Reference 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='WhereWhen'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.id is not None: 

showIndent(outfile, level) 

outfile.write('id = "%s",\n' % (self.id,)) 

def exportLiteralChildren(self, outfile, level, name_): 

if self.ObsDataLocation is not None: 

showIndent(outfile, level) 

outfile.write('ObsDataLocation=model_.ObsDataLocation(\n') 

self.ObsDataLocation.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

showIndent(outfile, level) 

outfile.write('Description=[\n') 

level += 1 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Description_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Reference=[\n') 

level += 1 

for Reference_ in self.Reference: 

showIndent(outfile, level) 

outfile.write('model_.Reference(\n') 

Reference_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('id') 

if value is not None: 

self.id = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'ObsDataLocation': 

obj_ = ObsDataLocation.factory() 

obj_.build(child_) 

self.set_ObsDataLocation(obj_) 

elif nodeName_ == 'Description': 

Description_ = child_.text 

self.Description.append(Description_) 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.Reference.append(obj_) 

# end class WhereWhen 

 

 

class ObsDataLocation(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, ObservatoryLocation=None, ObservationLocation=None): 

self.ObservatoryLocation = ObservatoryLocation 

self.ObservationLocation = ObservationLocation 

self.export_name = 'ObsDataLocation' 

 

def factory(*args_, **kwargs_): 

if ObsDataLocation.subclass: 

return ObsDataLocation.subclass(*args_, **kwargs_) 

else: 

return ObsDataLocation(*args_, **kwargs_) 

factory = staticmethod(factory) 

1922 ↛ exitline 1922 didn't return from function 'get_ObservatoryLocation', because the return on line 1922 wasn't executed def get_ObservatoryLocation(self): return self.ObservatoryLocation 

1923 ↛ exitline 1923 didn't return from function 'set_ObservatoryLocation' def set_ObservatoryLocation(self, ObservatoryLocation): self.ObservatoryLocation = ObservatoryLocation 

1924 ↛ exitline 1924 didn't return from function 'get_ObservationLocation', because the return on line 1924 wasn't executed def get_ObservationLocation(self): return self.ObservationLocation 

1925 ↛ exitline 1925 didn't return from function 'set_ObservationLocation' def set_ObservationLocation(self, ObservationLocation): self.ObservationLocation = ObservationLocation 

 

def exportAttributes(self, outfile, level, namespace_='', name_='ObsDataLocation'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='ObsDataLocation'): 

if self.ObservatoryLocation: 

self.ObservatoryLocation.export(outfile, level, namespace_, name_='ObservatoryLocation', ) 

if self.ObservationLocation: 

self.ObservationLocation.export(outfile, level, namespace_, name_='ObservationLocation', ) 

def hasContent_(self): 

if ( 

self.ObservatoryLocation is not None or 

self.ObservationLocation is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='ObsDataLocation'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

if self.ObservatoryLocation is not None: 

showIndent(outfile, level) 

outfile.write('ObservatoryLocation=model_.ObservatoryLocation(\n') 

self.ObservatoryLocation.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.ObservationLocation is not None: 

showIndent(outfile, level) 

outfile.write('ObservationLocation=model_.ObservationLocation(\n') 

self.ObservationLocation.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'ObservatoryLocation': 

obj_ = ObservatoryLocation.factory() 

obj_.build(child_) 

self.set_ObservatoryLocation(obj_) 

elif nodeName_ == 'ObservationLocation': 

obj_ = ObservationLocation.factory() 

obj_.build(child_) 

self.set_ObservationLocation(obj_) 

# end class ObsDataLocation 

 

 

class ObservationLocation(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, AstroCoordSystem=None, AstroCoords=None): 

self.AstroCoordSystem = AstroCoordSystem 

self.AstroCoords = AstroCoords 

self.export_name = 'ObservationLocation' 

def factory(*args_, **kwargs_): 

if ObservationLocation.subclass: 

return ObservationLocation.subclass(*args_, **kwargs_) 

else: 

return ObservationLocation(*args_, **kwargs_) 

factory = staticmethod(factory) 

1995 ↛ exitline 1995 didn't return from function 'get_AstroCoordSystem', because the return on line 1995 wasn't executed def get_AstroCoordSystem(self): return self.AstroCoordSystem 

1996 ↛ exitline 1996 didn't return from function 'set_AstroCoordSystem' def set_AstroCoordSystem(self, AstroCoordSystem): self.AstroCoordSystem = AstroCoordSystem 

1997 ↛ exitline 1997 didn't return from function 'get_AstroCoords', because the return on line 1997 wasn't executed def get_AstroCoords(self): return self.AstroCoords 

1998 ↛ exitline 1998 didn't return from function 'set_AstroCoords' def set_AstroCoords(self, AstroCoords): self.AstroCoords = AstroCoords 

 

def exportAttributes(self, outfile, level, namespace_='', name_='ObservationLocation'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='ObservationLocation'): 

if self.AstroCoordSystem: 

self.AstroCoordSystem.export(outfile, level, namespace_, name_='AstroCoordSystem', ) 

if self.AstroCoords: 

self.AstroCoords.export(outfile, level, namespace_, name_='AstroCoords', ) 

def hasContent_(self): 

if ( 

self.AstroCoordSystem is not None or 

self.AstroCoords is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='ObservationLocation'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

if self.AstroCoordSystem is not None: 

showIndent(outfile, level) 

outfile.write('AstroCoordSystem=model_.AstroCoordSystem(\n') 

self.AstroCoordSystem.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.AstroCoords is not None: 

showIndent(outfile, level) 

outfile.write('AstroCoords=model_.AstroCoords(\n') 

self.AstroCoords.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'AstroCoordSystem': 

obj_ = AstroCoordSystem.factory() 

obj_.build(child_) 

self.set_AstroCoordSystem(obj_) 

elif nodeName_ == 'AstroCoords': 

obj_ = AstroCoords.factory() 

obj_.build(child_) 

self.set_AstroCoords(obj_) 

# end class ObservationLocation 

 

 

class AstroCoordSystem(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, id=None, valueOf_=None): 

self.id = _cast(None, id) 

self.valueOf_ = valueOf_ 

self.export_name = 'AstroCoordSystem' 

def factory(*args_, **kwargs_): 

if AstroCoordSystem.subclass: 

return AstroCoordSystem.subclass(*args_, **kwargs_) 

else: 

return AstroCoordSystem(*args_, **kwargs_) 

factory = staticmethod(factory) 

2068 ↛ exitline 2068 didn't return from function 'get_id', because the return on line 2068 wasn't executed def get_id(self): return self.id 

2069 ↛ exitline 2069 didn't return from function 'set_id' def set_id(self, id): self.id = id 

def validate_idValues(self, value): 

# Validate type idValues, a restriction on xs:string. 

pass 

2073 ↛ exitline 2073 didn't return from function 'get_valueOf_', because the return on line 2073 wasn't executed def get_valueOf_(self): return self.valueOf_ 

2074 ↛ exitline 2074 didn't return from function 'set_valueOf_' def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ 

 

def exportAttributes(self, outfile, level, namespace_='', name_='AstroCoordSystem'): 

if self.id is not None: 

outfile.write(' id=%s' % (quote_attrib(self.id), )) 

def exportChildren(self, outfile, level, namespace_='', name_='AstroCoordSystem'): 

pass 

def hasContent_(self): 

if ( 

self.valueOf_ 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='AstroCoordSystem'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.id is not None: 

showIndent(outfile, level) 

outfile.write('id = "%s",\n' % (self.id,)) 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('valueOf_ = """%s""",\n' % (self.valueOf_,)) 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

self.valueOf_ = get_all_text_(node) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('id') 

if value is not None: 

self.id = value 

self.validate_idValues(self.id) # validate type idValues 

def buildChildren(self, child_, nodeName_): 

pass 

# end class AstroCoordSystem 

 

 

class AstroCoords(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, coord_system_id=None, Time=None, Position2D=None, Position3D=None): 

self.coord_system_id = _cast(None, coord_system_id) 

self.Time = Time 

self.Position2D = Position2D 

self.Position3D = Position3D 

self.export_name = 'AstroCoords' 

def factory(*args_, **kwargs_): 

if AstroCoords.subclass: 

return AstroCoords.subclass(*args_, **kwargs_) 

else: 

return AstroCoords(*args_, **kwargs_) 

factory = staticmethod(factory) 

2132 ↛ exitline 2132 didn't return from function 'get_Time', because the return on line 2132 wasn't executed def get_Time(self): return self.Time 

2133 ↛ exitline 2133 didn't return from function 'set_Time' def set_Time(self, Time): self.Time = Time 

2134 ↛ exitline 2134 didn't return from function 'get_Position2D', because the return on line 2134 wasn't executed def get_Position2D(self): return self.Position2D 

2135 ↛ exitline 2135 didn't return from function 'set_Position2D' def set_Position2D(self, Position2D): self.Position2D = Position2D 

2136 ↛ exitline 2136 didn't return from function 'get_Position3D', because the return on line 2136 wasn't executed def get_Position3D(self): return self.Position3D 

2137 ↛ exitline 2137 didn't return from function 'set_Position3D' def set_Position3D(self, Position3D): self.Position3D = Position3D 

2138 ↛ exitline 2138 didn't return from function 'get_coord_system_id', because the return on line 2138 wasn't executed def get_coord_system_id(self): return self.coord_system_id 

2139 ↛ exitline 2139 didn't return from function 'set_coord_system_id' def set_coord_system_id(self, coord_system_id): self.coord_system_id = coord_system_id 

def validate_idValues(self, value): 

# Validate type idValues, a restriction on xs:string. 

pass 

 

def exportAttributes(self, outfile, level, namespace_='', name_='AstroCoords'): 

if self.coord_system_id is not None: 

outfile.write(' coord_system_id=%s' % (quote_attrib(self.coord_system_id), )) 

def exportChildren(self, outfile, level, namespace_='', name_='AstroCoords'): 

if self.Time: 

self.Time.export(outfile, level, namespace_, name_='Time') 

if self.Position2D: 

self.Position2D.export(outfile, level, namespace_, name_='Position2D') 

if self.Position3D: 

self.Position3D.export(outfile, level, namespace_, name_='Position3D') 

def hasContent_(self): 

if ( 

self.Time is not None or 

self.Position2D is not None or 

self.Position3D is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='AstroCoords'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.coord_system_id is not None: 

showIndent(outfile, level) 

outfile.write('coord_system_id = "%s",\n' % (self.coord_system_id,)) 

def exportLiteralChildren(self, outfile, level, name_): 

if self.Time is not None: 

showIndent(outfile, level) 

outfile.write('Time=model_.Time(\n') 

self.Time.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.Position2D is not None: 

showIndent(outfile, level) 

outfile.write('Position2D=model_.Position2D(\n') 

self.Position2D.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.Position3D is not None: 

showIndent(outfile, level) 

outfile.write('Position3D=model_.Position3D(\n') 

self.Position3D.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('coord_system_id') 

if value is not None: 

self.coord_system_id = value 

self.validate_idValues(self.coord_system_id) # validate type idValues 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Time': 

obj_ = Time.factory() 

obj_.build(child_) 

self.set_Time(obj_) 

elif nodeName_ == 'Position2D': 

obj_ = Position2D.factory() 

obj_.build(child_) 

self.set_Position2D(obj_) 

elif nodeName_ == 'Position3D': 

obj_ = Position3D.factory() 

obj_.build(child_) 

self.set_Position3D(obj_) 

# end class AstroCoords 

 

 

class Time(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, unit=None, TimeInstant=None, Error=None): 

self.unit = _cast(None, unit) 

self.TimeInstant = TimeInstant 

self.Error = Error 

self.export_name = 'Time' 

def factory(*args_, **kwargs_): 

if Time.subclass: 

return Time.subclass(*args_, **kwargs_) 

else: 

return Time(*args_, **kwargs_) 

factory = staticmethod(factory) 

2232 ↛ exitline 2232 didn't return from function 'get_TimeInstant', because the return on line 2232 wasn't executed def get_TimeInstant(self): return self.TimeInstant 

2233 ↛ exitline 2233 didn't return from function 'set_TimeInstant' def set_TimeInstant(self, TimeInstant): self.TimeInstant = TimeInstant 

2234 ↛ exitline 2234 didn't return from function 'get_Error', because the return on line 2234 wasn't executed def get_Error(self): return self.Error 

2235 ↛ exitline 2235 didn't return from function 'set_Error' def set_Error(self, Error): self.Error = Error 

2236 ↛ exitline 2236 didn't return from function 'get_unit', because the return on line 2236 wasn't executed def get_unit(self): return self.unit 

2237 ↛ exitline 2237 didn't return from function 'set_unit' def set_unit(self, unit): self.unit = unit 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Time'): 

if self.unit is not None: 

outfile.write(' unit=%s' % (self.format_string(quote_attrib(self.unit).encode(ExternalEncoding), input_name='unit'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='Time'): 

if self.TimeInstant: 

self.TimeInstant.export(outfile, level, namespace_, name_='TimeInstant', ) 

if self.Error is not None: 

showIndent(outfile, level) 

outfile.write('<%sError>%s</%sError>\n' % (namespace_, self.format_float(self.Error, input_name='Error'), namespace_)) 

def hasContent_(self): 

if ( 

self.TimeInstant is not None or 

self.Error is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Time'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.unit is not None: 

showIndent(outfile, level) 

outfile.write('unit = "%s",\n' % (self.unit,)) 

def exportLiteralChildren(self, outfile, level, name_): 

if self.TimeInstant is not None: 

showIndent(outfile, level) 

outfile.write('TimeInstant=model_.TimeInstant(\n') 

self.TimeInstant.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.Error is not None: 

showIndent(outfile, level) 

outfile.write('Error=%f,\n' % self.Error) 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('unit') 

if value is not None: 

self.unit = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'TimeInstant': 

obj_ = TimeInstant.factory() 

obj_.build(child_) 

self.set_TimeInstant(obj_) 

elif nodeName_ == 'Error': 

sval_ = child_.text 

try: 

fval_ = float(sval_) 

except (TypeError, ValueError) as exp: 

raise_parse_error(child_, 'requires float or double: %s' % exp) 

self.Error = fval_ 

# end class Time 

 

 

class TimeInstant(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, ISOTime=None): 

self.ISOTime = ISOTime 

self.export_name = 'TimeInstant' 

def factory(*args_, **kwargs_): 

if TimeInstant.subclass: 

return TimeInstant.subclass(*args_, **kwargs_) 

else: 

return TimeInstant(*args_, **kwargs_) 

factory = staticmethod(factory) 

2312 ↛ exitline 2312 didn't return from function 'get_ISOTime', because the return on line 2312 wasn't executed def get_ISOTime(self): return self.ISOTime 

2313 ↛ exitline 2313 didn't return from function 'set_ISOTime' def set_ISOTime(self, ISOTime): self.ISOTime = ISOTime 

 

def exportAttributes(self, outfile, level, namespace_='', name_='TimeInstant'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='TimeInstant'): 

if self.ISOTime is not None: 

showIndent(outfile, level) 

outfile.write('<%sISOTime>%s</%sISOTime>\n' % (namespace_, self.format_string(quote_xml(self.ISOTime).encode(ExternalEncoding), input_name='ISOTime'), namespace_)) 

def hasContent_(self): 

if ( 

self.ISOTime is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='TimeInstant'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

if self.ISOTime is not None: 

showIndent(outfile, level) 

outfile.write('ISOTime=%s,\n' % quote_python(self.ISOTime).encode(ExternalEncoding)) 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'ISOTime': 

ISOTime_ = child_.text 

self.ISOTime = ISOTime_ 

# end class TimeInstant 

 

 

class Position2D(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, unit=None, Name1=None, Name2=None, Value2=None, Error2Radius=None): 

self.unit = _cast(None, unit) 

self.Name1 = Name1 

self.Name2 = Name2 

self.Value2 = Value2 

self.Error2Radius = Error2Radius 

self.export_name = 'Position2D' 

def factory(*args_, **kwargs_): 

if Position2D.subclass: 

return Position2D.subclass(*args_, **kwargs_) 

else: 

return Position2D(*args_, **kwargs_) 

factory = staticmethod(factory) 

2370 ↛ exitline 2370 didn't return from function 'get_Name1', because the return on line 2370 wasn't executed def get_Name1(self): return self.Name1 

2371 ↛ exitline 2371 didn't return from function 'set_Name1' def set_Name1(self, Name1): self.Name1 = Name1 

2372 ↛ exitline 2372 didn't return from function 'get_Name2', because the return on line 2372 wasn't executed def get_Name2(self): return self.Name2 

2373 ↛ exitline 2373 didn't return from function 'set_Name2' def set_Name2(self, Name2): self.Name2 = Name2 

2374 ↛ exitline 2374 didn't return from function 'get_Value2', because the return on line 2374 wasn't executed def get_Value2(self): return self.Value2 

2375 ↛ exitline 2375 didn't return from function 'set_Value2' def set_Value2(self, Value2): self.Value2 = Value2 

2376 ↛ exitline 2376 didn't return from function 'get_Error2Radius', because the return on line 2376 wasn't executed def get_Error2Radius(self): return self.Error2Radius 

2377 ↛ exitline 2377 didn't return from function 'set_Error2Radius' def set_Error2Radius(self, Error2Radius): self.Error2Radius = Error2Radius 

2378 ↛ exitline 2378 didn't return from function 'get_unit', because the return on line 2378 wasn't executed def get_unit(self): return self.unit 

2379 ↛ exitline 2379 didn't return from function 'set_unit' def set_unit(self, unit): self.unit = unit 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Position2D'): 

if self.unit is not None: 

outfile.write(' unit=%s' % (self.format_string(quote_attrib(self.unit).encode(ExternalEncoding), input_name='unit'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='Position2D'): 

if self.Name1 is not None: 

showIndent(outfile, level) 

outfile.write('<%sName1>%s</%sName1>\n' % (namespace_, self.format_string(quote_xml(self.Name1).encode(ExternalEncoding), input_name='Name1'), namespace_)) 

if self.Name2 is not None: 

showIndent(outfile, level) 

outfile.write('<%sName2>%s</%sName2>\n' % (namespace_, self.format_string(quote_xml(self.Name2).encode(ExternalEncoding), input_name='Name2'), namespace_)) 

if self.Value2: 

self.Value2.export(outfile, level, namespace_, name_='Value2', ) 

if self.Error2Radius is not None: 

showIndent(outfile, level) 

outfile.write('<%sError2Radius>%s</%sError2Radius>\n' % (namespace_, self.format_float(self.Error2Radius, input_name='Error2Radius'), namespace_)) 

def hasContent_(self): 

if ( 

self.Name1 is not None or 

self.Name2 is not None or 

self.Value2 is not None or 

self.Error2Radius is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Position2D'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.unit is not None: 

showIndent(outfile, level) 

outfile.write('unit = "%s",\n' % (self.unit,)) 

def exportLiteralChildren(self, outfile, level, name_): 

if self.Name1 is not None: 

showIndent(outfile, level) 

outfile.write('Name1=%s,\n' % quote_python(self.Name1).encode(ExternalEncoding)) 

if self.Name2 is not None: 

showIndent(outfile, level) 

outfile.write('Name2=%s,\n' % quote_python(self.Name2).encode(ExternalEncoding)) 

if self.Value2 is not None: 

showIndent(outfile, level) 

outfile.write('Value2=model_.Value2(\n') 

self.Value2.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.Error2Radius is not None: 

showIndent(outfile, level) 

outfile.write('Error2Radius=%f,\n' % self.Error2Radius) 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('unit') 

if value is not None: 

self.unit = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Name1': 

Name1_ = child_.text 

self.Name1 = Name1_ 

elif nodeName_ == 'Name2': 

Name2_ = child_.text 

self.Name2 = Name2_ 

elif nodeName_ == 'Value2': 

obj_ = Value2.factory() 

obj_.build(child_) 

self.set_Value2(obj_) 

elif nodeName_ == 'Error2Radius': 

sval_ = child_.text 

try: 

fval_ = float(sval_) 

except (TypeError, ValueError) as exp: 

raise_parse_error(child_, 'requires float or double: %s' % exp) 

self.Error2Radius = fval_ 

# end class Position2D 

 

 

class Position3D(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, unit=None, Name1=None, Name2=None, Name3=None, Value3=None): 

self.unit = _cast(None, unit) 

self.Name1 = Name1 

self.Name2 = Name2 

self.Name3 = Name3 

self.Value3 = Value3 

self.export_name = 'Position3D' 

def factory(*args_, **kwargs_): 

if Position3D.subclass: 

return Position3D.subclass(*args_, **kwargs_) 

else: 

return Position3D(*args_, **kwargs_) 

factory = staticmethod(factory) 

2478 ↛ exitline 2478 didn't return from function 'get_Name1', because the return on line 2478 wasn't executed def get_Name1(self): return self.Name1 

2479 ↛ exitline 2479 didn't return from function 'set_Name1' def set_Name1(self, Name1): self.Name1 = Name1 

2480 ↛ exitline 2480 didn't return from function 'get_Name2', because the return on line 2480 wasn't executed def get_Name2(self): return self.Name2 

2481 ↛ exitline 2481 didn't return from function 'set_Name2' def set_Name2(self, Name2): self.Name2 = Name2 

2482 ↛ exitline 2482 didn't return from function 'get_Name3', because the return on line 2482 wasn't executed def get_Name3(self): return self.Name3 

2483 ↛ exitline 2483 didn't return from function 'set_Name3' def set_Name3(self, Name3): self.Name3 = Name3 

2484 ↛ exitline 2484 didn't return from function 'get_Value3', because the return on line 2484 wasn't executed def get_Value3(self): return self.Value3 

2485 ↛ exitline 2485 didn't return from function 'set_Value3' def set_Value3(self, Value3): self.Value3 = Value3 

2486 ↛ exitline 2486 didn't return from function 'get_unit', because the return on line 2486 wasn't executed def get_unit(self): return self.unit 

2487 ↛ exitline 2487 didn't return from function 'set_unit' def set_unit(self, unit): self.unit = unit 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Position3D'): 

if self.unit is not None: 

outfile.write(' unit=%s' % (self.format_string(quote_attrib(self.unit).encode(ExternalEncoding), input_name='unit'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='Position3D'): 

if self.Name1 is not None: 

showIndent(outfile, level) 

outfile.write('<%sName1>%s</%sName1>\n' % (namespace_, self.format_string(quote_xml(self.Name1).encode(ExternalEncoding), input_name='Name1'), namespace_)) 

if self.Name2 is not None: 

showIndent(outfile, level) 

outfile.write('<%sName2>%s</%sName2>\n' % (namespace_, self.format_string(quote_xml(self.Name2).encode(ExternalEncoding), input_name='Name2'), namespace_)) 

if self.Name3 is not None: 

showIndent(outfile, level) 

outfile.write('<%sName3>%s</%sName3>\n' % (namespace_, self.format_string(quote_xml(self.Name3).encode(ExternalEncoding), input_name='Name3'), namespace_)) 

if self.Value3: 

self.Value3.export(outfile, level, namespace_, name_='Value3', ) 

def hasContent_(self): 

if ( 

self.Name1 is not None or 

self.Name2 is not None or 

self.Name3 is not None or 

self.Value3 is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Position3D'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.unit is not None: 

showIndent(outfile, level) 

outfile.write('unit = "%s",\n' % (self.unit,)) 

def exportLiteralChildren(self, outfile, level, name_): 

if self.Name1 is not None: 

showIndent(outfile, level) 

outfile.write('Name1=%s,\n' % quote_python(self.Name1).encode(ExternalEncoding)) 

if self.Name2 is not None: 

showIndent(outfile, level) 

outfile.write('Name2=%s,\n' % quote_python(self.Name2).encode(ExternalEncoding)) 

if self.Name3 is not None: 

showIndent(outfile, level) 

outfile.write('Name3=%s,\n' % quote_python(self.Name3).encode(ExternalEncoding)) 

if self.Value3 is not None: 

showIndent(outfile, level) 

outfile.write('Value3=model_.Value3(\n') 

self.Value3.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('unit') 

if value is not None: 

self.unit = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Name1': 

Name1_ = child_.text 

self.Name1 = Name1_ 

elif nodeName_ == 'Name2': 

Name2_ = child_.text 

self.Name2 = Name2_ 

elif nodeName_ == 'Name3': 

Name3_ = child_.text 

self.Name3 = Name3_ 

elif nodeName_ == 'Value3': 

obj_ = Value3.factory() 

obj_.build(child_) 

self.set_Value3(obj_) 

# end class Position3D 

 

 

class Value2(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, C1=None, C2=None): 

self.C1 = C1 

self.C2 = C2 

self.export_name = "Value2" 

def factory(*args_, **kwargs_): 

if Value2.subclass: 

return Value2.subclass(*args_, **kwargs_) 

else: 

return Value2(*args_, **kwargs_) 

factory = staticmethod(factory) 

2579 ↛ exitline 2579 didn't return from function 'get_C1', because the return on line 2579 wasn't executed def get_C1(self): return self.C1 

2580 ↛ exitline 2580 didn't return from function 'set_C1' def set_C1(self, C1): self.C1 = C1 

2581 ↛ exitline 2581 didn't return from function 'get_C2', because the return on line 2581 wasn't executed def get_C2(self): return self.C2 

2582 ↛ exitline 2582 didn't return from function 'set_C2' def set_C2(self, C2): self.C2 = C2 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Value2'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='Value2'): 

if self.C1 is not None: 

showIndent(outfile, level) 

outfile.write('<%sC1>%s</%sC1> <!-- RA --> \n' % (namespace_, self.format_float(self.C1, input_name='C1'), namespace_)) 

if self.C2 is not None: 

showIndent(outfile, level) 

outfile.write('<%sC2>%s</%sC2> <!-- Dec --> \n' % (namespace_, self.format_float(self.C2, input_name='C2'), namespace_)) 

def hasContent_(self): 

if ( 

self.C1 is not None or 

self.C2 is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Value2'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

if self.C1 is not None: 

showIndent(outfile, level) 

outfile.write('C1=%f,\n' % self.C1) 

if self.C2 is not None: 

showIndent(outfile, level) 

outfile.write('C2=%f,\n' % self.C2) 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'C1': 

sval_ = child_.text 

try: 

fval_ = float(sval_) 

except (TypeError, ValueError) as exp: 

raise_parse_error(child_, 'requires float or double: %s' % exp) 

self.C1 = fval_ 

elif nodeName_ == 'C2': 

sval_ = child_.text 

try: 

fval_ = float(sval_) 

except (TypeError, ValueError) as exp: 

raise_parse_error(child_, 'requires float or double: %s' % exp) 

self.C2 = fval_ 

# end class Value2 

 

 

class Value3(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, C1=None, C2=None, C3=None): 

self.C1 = C1 

self.C2 = C2 

self.C3 = C3 

self.export_name = 'Value3' 

def factory(*args_, **kwargs_): 

if Value3.subclass: 

return Value3.subclass(*args_, **kwargs_) 

else: 

return Value3(*args_, **kwargs_) 

factory = staticmethod(factory) 

2655 ↛ exitline 2655 didn't return from function 'get_C1', because the return on line 2655 wasn't executed def get_C1(self): return self.C1 

2656 ↛ exitline 2656 didn't return from function 'set_C1' def set_C1(self, C1): self.C1 = C1 

2657 ↛ exitline 2657 didn't return from function 'get_C2', because the return on line 2657 wasn't executed def get_C2(self): return self.C2 

2658 ↛ exitline 2658 didn't return from function 'set_C2' def set_C2(self, C2): self.C2 = C2 

2659 ↛ exitline 2659 didn't return from function 'get_C3', because the return on line 2659 wasn't executed def get_C3(self): return self.C3 

2660 ↛ exitline 2660 didn't return from function 'set_C3' def set_C3(self, C3): self.C3 = C3 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Value3'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='Value3'): 

if self.C1 is not None: 

showIndent(outfile, level) 

outfile.write('<%sC1>%s</%sC1>\n' % (namespace_, self.format_float(self.C1, input_name='C1'), namespace_)) 

if self.C2 is not None: 

showIndent(outfile, level) 

outfile.write('<%sC2>%s</%sC2>\n' % (namespace_, self.format_float(self.C2, input_name='C2'), namespace_)) 

if self.C3 is not None: 

showIndent(outfile, level) 

outfile.write('<%sC3>%s</%sC3>\n' % (namespace_, self.format_float(self.C3, input_name='C3'), namespace_)) 

def hasContent_(self): 

if ( 

self.C1 is not None or 

self.C2 is not None or 

self.C3 is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Value3'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

if self.C1 is not None: 

showIndent(outfile, level) 

outfile.write('C1=%f,\n' % self.C1) 

if self.C2 is not None: 

showIndent(outfile, level) 

outfile.write('C2=%f,\n' % self.C2) 

if self.C3 is not None: 

showIndent(outfile, level) 

outfile.write('C3=%f,\n' % self.C3) 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'C1': 

sval_ = child_.text 

try: 

fval_ = float(sval_) 

except (TypeError, ValueError) as exp: 

raise_parse_error(child_, 'requires float or double: %s' % exp) 

self.C1 = fval_ 

elif nodeName_ == 'C2': 

sval_ = child_.text 

try: 

fval_ = float(sval_) 

except (TypeError, ValueError) as exp: 

raise_parse_error(child_, 'requires float or double: %s' % exp) 

self.C2 = fval_ 

elif nodeName_ == 'C3': 

sval_ = child_.text 

try: 

fval_ = float(sval_) 

except (TypeError, ValueError) as exp: 

raise_parse_error(child_, 'requires float or double: %s' % exp) 

self.C3 = fval_ 

# end class Value3 

 

 

class ObservatoryLocation(DataRepBase, GeneratedsSuper): 

"""Part of WhereWhen""" 

subclass = None 

superclass = None 

def __init__(self, id=None, AstroCoordSystem=None, AstroCoords=None): 

self.id = _cast(None, id) 

self.AstroCoordSystem = AstroCoordSystem 

self.AstroCoords = AstroCoords 

self.export_name = 'ObservatoryLocation' 

def factory(*args_, **kwargs_): 

if ObservatoryLocation.subclass: 

return ObservatoryLocation.subclass(*args_, **kwargs_) 

else: 

return ObservatoryLocation(*args_, **kwargs_) 

factory = staticmethod(factory) 

2747 ↛ exitline 2747 didn't return from function 'get_AstroCoordSystem', because the return on line 2747 wasn't executed def get_AstroCoordSystem(self): return self.AstroCoordSystem 

2748 ↛ exitline 2748 didn't return from function 'set_AstroCoordSystem' def set_AstroCoordSystem(self, AstroCoordSystem): self.AstroCoordSystem = AstroCoordSystem 

2749 ↛ exitline 2749 didn't return from function 'get_AstroCoords', because the return on line 2749 wasn't executed def get_AstroCoords(self): return self.AstroCoords 

2750 ↛ exitline 2750 didn't return from function 'set_AstroCoords' def set_AstroCoords(self, AstroCoords): self.AstroCoords = AstroCoords 

2751 ↛ exitline 2751 didn't return from function 'get_id', because the return on line 2751 wasn't executed def get_id(self): return self.id 

2752 ↛ exitline 2752 didn't return from function 'set_id' def set_id(self, id): self.id = id 

 

def exportAttributes(self, outfile, level, namespace_='', name_='ObservatoryLocation'): 

if self.id is not None: 

outfile.write(' id=%s' % (self.format_string(quote_attrib(self.id).encode(ExternalEncoding), input_name='id'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='ObservatoryLocation'): 

if self.AstroCoordSystem: 

self.AstroCoordSystem.export(outfile, level, namespace_, name_='AstroCoordSystem') 

if self.AstroCoords: 

self.AstroCoords.export(outfile, level, namespace_, name_='AstroCoords') 

def hasContent_(self): 

if ( 

self.AstroCoordSystem is not None or 

self.AstroCoords is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='ObservatoryLocation'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.id is not None: 

showIndent(outfile, level) 

outfile.write('id = "%s",\n' % (self.id,)) 

def exportLiteralChildren(self, outfile, level, name_): 

if self.AstroCoordSystem is not None: 

showIndent(outfile, level) 

outfile.write('AstroCoordSystem=model_.AstroCoordSystem(\n') 

self.AstroCoordSystem.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

if self.AstroCoords is not None: 

showIndent(outfile, level) 

outfile.write('AstroCoords=model_.AstroCoords(\n') 

self.AstroCoords.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('id') 

if value is not None: 

self.id = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'AstroCoordSystem': 

obj_ = AstroCoordSystem.factory() 

obj_.build(child_) 

self.set_AstroCoordSystem(obj_) 

elif nodeName_ == 'AstroCoords': 

obj_ = AstroCoords.factory() 

obj_.build(child_) 

self.set_AstroCoords(obj_) 

# end class ObservatoryLocation 

 

 

class How(DataRepBase, GeneratedsSuper): 

"""How: Instrument Configuration. Built with some Description and 

Reference elements.""" 

subclass = None 

superclass = None 

def __init__(self, Description=None, Reference=None): 

if Description is None: 

self.Description = [] 

else: 

self.Description = Description 

if Reference is None: 

self.Reference = [] 

else: 

self.Reference = Reference 

self.export_name = 'How' 

 

def factory(*args_, **kwargs_): 

if How.subclass: 

return How.subclass(*args_, **kwargs_) 

else: 

return How(*args_, **kwargs_) 

factory = staticmethod(factory) 

2835 ↛ exitline 2835 didn't return from function 'get_Description', because the return on line 2835 wasn't executed def get_Description(self): return self.Description 

2836 ↛ exitline 2836 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

2837 ↛ exitline 2837 didn't return from function 'add_Description' def add_Description(self, value): self.Description.append(value) 

2838 ↛ exitline 2838 didn't return from function 'insert_Description' def insert_Description(self, index, value): self.Description[index] = value 

2839 ↛ exitline 2839 didn't return from function 'get_Reference', because the return on line 2839 wasn't executed def get_Reference(self): return self.Reference 

2840 ↛ exitline 2840 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

2841 ↛ exitline 2841 didn't return from function 'add_Reference' def add_Reference(self, value): self.Reference.append(value) 

2842 ↛ exitline 2842 didn't return from function 'insert_Reference' def insert_Reference(self, index, value): self.Reference[index] = value 

 

def exportAttributes(self, outfile, level, namespace_='', name_='How'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='How'): 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(Description_).encode(ExternalEncoding), input_name='Description'), namespace_)) 

for Reference_ in self.Reference: 

Reference_.export(outfile, level, namespace_, name_='Reference') 

def hasContent_(self): 

if ( 

self.Description or 

self.Reference 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='How'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('Description=[\n') 

level += 1 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Description_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Reference=[\n') 

level += 1 

for Reference_ in self.Reference: 

showIndent(outfile, level) 

outfile.write('model_.Reference(\n') 

Reference_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Description': 

Description_ = child_.text 

self.Description.append(Description_) 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.Reference.append(obj_) 

# end class How 

 

 

class Why(DataRepBase, GeneratedsSuper): 

"""Why: Initial Scientific Assessment. Can make simple 

Concept/Name/Desc/Ref for the inference or use multiple 

Inference containers for more semantic sophistication.""" 

subclass = None 

superclass = None 

def __init__(self, importance=None, expires=None, Name=None, Concept=None, Inference=None, Description=None, Reference=None): 

self.importance = _cast(float, importance) 

self.expires = _cast(None, expires) 

if Name is None: 

self.Name = [] 

else: 

self.Name = Name 

if Concept is None: 

self.Concept = [] 

else: 

self.Concept = Concept 

if Inference is None: 

self.Inference = [] 

else: 

self.Inference = Inference 

if Description is None: 

self.Description = [] 

else: 

self.Description = Description 

if Reference is None: 

self.Reference = [] 

else: 

self.Reference = Reference 

self.export_name = 'Why' 

 

def factory(*args_, **kwargs_): 

if Why.subclass: 

return Why.subclass(*args_, **kwargs_) 

else: 

return Why(*args_, **kwargs_) 

factory = staticmethod(factory) 

2944 ↛ exitline 2944 didn't return from function 'get_Name', because the return on line 2944 wasn't executed def get_Name(self): return self.Name 

2945 ↛ exitline 2945 didn't return from function 'set_Name' def set_Name(self, Name): self.Name = Name 

2946 ↛ exitline 2946 didn't return from function 'add_Name' def add_Name(self, value): self.Name.append(value) 

2947 ↛ exitline 2947 didn't return from function 'insert_Name' def insert_Name(self, index, value): self.Name[index] = value 

2948 ↛ exitline 2948 didn't return from function 'get_Concept', because the return on line 2948 wasn't executed def get_Concept(self): return self.Concept 

2949 ↛ exitline 2949 didn't return from function 'set_Concept' def set_Concept(self, Concept): self.Concept = Concept 

2950 ↛ exitline 2950 didn't return from function 'add_Concept' def add_Concept(self, value): self.Concept.append(value) 

2951 ↛ exitline 2951 didn't return from function 'insert_Concept' def insert_Concept(self, index, value): self.Concept[index] = value 

2952 ↛ exitline 2952 didn't return from function 'get_Inference', because the return on line 2952 wasn't executed def get_Inference(self): return self.Inference 

2953 ↛ exitline 2953 didn't return from function 'set_Inference' def set_Inference(self, Inference): self.Inference = Inference 

2954 ↛ exitline 2954 didn't return from function 'add_Inference' def add_Inference(self, value): self.Inference.append(value) 

2955 ↛ exitline 2955 didn't return from function 'insert_Inference' def insert_Inference(self, index, value): self.Inference[index] = value 

2956 ↛ exitline 2956 didn't return from function 'get_Description', because the return on line 2956 wasn't executed def get_Description(self): return self.Description 

2957 ↛ exitline 2957 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

2958 ↛ exitline 2958 didn't return from function 'add_Description' def add_Description(self, value): self.Description.append(value) 

2959 ↛ exitline 2959 didn't return from function 'insert_Description' def insert_Description(self, index, value): self.Description[index] = value 

2960 ↛ exitline 2960 didn't return from function 'get_Reference', because the return on line 2960 wasn't executed def get_Reference(self): return self.Reference 

2961 ↛ exitline 2961 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

2962 ↛ exitline 2962 didn't return from function 'add_Reference' def add_Reference(self, value): self.Reference.append(value) 

2963 ↛ exitline 2963 didn't return from function 'insert_Reference' def insert_Reference(self, index, value): self.Reference[index] = value 

2964 ↛ exitline 2964 didn't return from function 'get_importance', because the return on line 2964 wasn't executed def get_importance(self): return self.importance 

2965 ↛ exitline 2965 didn't return from function 'set_importance' def set_importance(self, importance): self.importance = importance 

2966 ↛ exitline 2966 didn't return from function 'get_expires', because the return on line 2966 wasn't executed def get_expires(self): return self.expires 

2967 ↛ exitline 2967 didn't return from function 'set_expires' def set_expires(self, expires): self.expires = expires 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Why'): 

if self.importance is not None: 

outfile.write(' importance="%s"' % self.format_float(self.importance, input_name='importance')) 

if self.expires is not None: 

outfile.write(' expires=%s' % (self.format_string(quote_attrib(self.expires).encode(ExternalEncoding), input_name='expires'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='Why'): 

for Name_ in self.Name: 

showIndent(outfile, level) 

outfile.write('<%sName>%s</%sName>\n' % (namespace_, self.format_string(quote_xml(Name_).encode(ExternalEncoding), input_name='Name'), namespace_)) 

for Concept_ in self.Concept: 

showIndent(outfile, level) 

outfile.write('<%sConcept>%s</%sConcept>\n' % (namespace_, self.format_string(quote_xml(Concept_).encode(ExternalEncoding), input_name='Concept'), namespace_)) 

for Inference_ in self.Inference: 

Inference_.export(outfile, level, namespace_, name_='Inference') 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(Description_).encode(ExternalEncoding), input_name='Description'), namespace_)) 

for Reference_ in self.Reference: 

Reference_.export(outfile, level, namespace_, name_='Reference') 

def hasContent_(self): 

if ( 

self.Name or 

self.Concept or 

self.Inference or 

self.Description or 

self.Reference 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Why'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.importance is not None: 

showIndent(outfile, level) 

outfile.write('importance = %f,\n' % (self.importance,)) 

if self.expires is not None: 

showIndent(outfile, level) 

outfile.write('expires = "%s",\n' % (self.expires,)) 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('Name=[\n') 

level += 1 

for Name_ in self.Name: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Name_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Concept=[\n') 

level += 1 

for Concept_ in self.Concept: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Concept_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Inference=[\n') 

level += 1 

for Inference_ in self.Inference: 

showIndent(outfile, level) 

outfile.write('model_.Inference(\n') 

Inference_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Description=[\n') 

level += 1 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Description_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Reference=[\n') 

level += 1 

for Reference_ in self.Reference: 

showIndent(outfile, level) 

outfile.write('model_.Reference(\n') 

Reference_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('importance') 

if value is not None: 

try: 

self.importance = float(value) 

except ValueError as exp: 

raise ValueError('Bad float/double attribute (importance): %s' % exp) 

value = attrs.get('expires') 

if value is not None: 

self.expires = value 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Name': 

Name_ = child_.text 

self.Name.append(Name_) 

elif nodeName_ == 'Concept': 

Concept_ = child_.text 

self.Concept.append(Concept_) 

elif nodeName_ == 'Inference': 

obj_ = Inference.factory() 

obj_.build(child_) 

self.Inference.append(obj_) 

elif nodeName_ == 'Description': 

Description_ = child_.text 

self.Description.append(Description_) 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.Reference.append(obj_) 

# end class Why 

 

 

class Inference(DataRepBase, GeneratedsSuper): 

"""Why/Inference: A container for a more nuanced expression, including 

relationships and probability.""" 

subclass = None 

superclass = None 

def __init__(self, relation=None, probability=None, Name=None, Concept=None, Description=None, Reference=None): 

self.relation = _cast(None, relation) 

self.probability = _cast(None, probability) 

if Name is None: 

self.Name = [] 

else: 

self.Name = Name 

if Concept is None: 

self.Concept = [] 

else: 

self.Concept = Concept 

if Description is None: 

self.Description = [] 

else: 

self.Description = Description 

if Reference is None: 

self.Reference = [] 

else: 

self.Reference = Reference 

self.export_name = 'Inference' 

 

def factory(*args_, **kwargs_): 

if Inference.subclass: 

return Inference.subclass(*args_, **kwargs_) 

else: 

return Inference(*args_, **kwargs_) 

factory = staticmethod(factory) 

3131 ↛ exitline 3131 didn't return from function 'get_Name', because the return on line 3131 wasn't executed def get_Name(self): return self.Name 

3132 ↛ exitline 3132 didn't return from function 'set_Name' def set_Name(self, Name): self.Name = Name 

3133 ↛ exitline 3133 didn't return from function 'add_Name' def add_Name(self, value): self.Name.append(value) 

3134 ↛ exitline 3134 didn't return from function 'insert_Name' def insert_Name(self, index, value): self.Name[index] = value 

3135 ↛ exitline 3135 didn't return from function 'get_Concept', because the return on line 3135 wasn't executed def get_Concept(self): return self.Concept 

3136 ↛ exitline 3136 didn't return from function 'set_Concept' def set_Concept(self, Concept): self.Concept = Concept 

3137 ↛ exitline 3137 didn't return from function 'add_Concept' def add_Concept(self, value): self.Concept.append(value) 

3138 ↛ exitline 3138 didn't return from function 'insert_Concept' def insert_Concept(self, index, value): self.Concept[index] = value 

3139 ↛ exitline 3139 didn't return from function 'get_Description', because the return on line 3139 wasn't executed def get_Description(self): return self.Description 

3140 ↛ exitline 3140 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

3141 ↛ exitline 3141 didn't return from function 'add_Description' def add_Description(self, value): self.Description.append(value) 

3142 ↛ exitline 3142 didn't return from function 'insert_Description' def insert_Description(self, index, value): self.Description[index] = value 

3143 ↛ exitline 3143 didn't return from function 'get_Reference', because the return on line 3143 wasn't executed def get_Reference(self): return self.Reference 

3144 ↛ exitline 3144 didn't return from function 'set_Reference' def set_Reference(self, Reference): self.Reference = Reference 

3145 ↛ exitline 3145 didn't return from function 'add_Reference' def add_Reference(self, value): self.Reference.append(value) 

3146 ↛ exitline 3146 didn't return from function 'insert_Reference' def insert_Reference(self, index, value): self.Reference[index] = value 

3147 ↛ exitline 3147 didn't return from function 'get_relation', because the return on line 3147 wasn't executed def get_relation(self): return self.relation 

3148 ↛ exitline 3148 didn't return from function 'set_relation' def set_relation(self, relation): self.relation = relation 

3149 ↛ exitline 3149 didn't return from function 'get_probability', because the return on line 3149 wasn't executed def get_probability(self): return self.probability 

3150 ↛ exitline 3150 didn't return from function 'set_probability' def set_probability(self, probability): self.probability = probability 

def validate_smallFloat(self, value): 

# Validate type smallFloat, a restriction on xs:float. 

pass 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Inference'): 

if self.relation is not None: 

outfile.write(' relation=%s' % (self.format_string(quote_attrib(self.relation).encode(ExternalEncoding), input_name='relation'), )) 

if self.probability is not None: 

outfile.write(' probability=%s' % (quote_attrib(self.probability), )) 

def exportChildren(self, outfile, level, namespace_='', name_='Inference'): 

for Name_ in self.Name: 

showIndent(outfile, level) 

outfile.write('<%sName>%s</%sName>\n' % (namespace_, self.format_string(quote_xml(Name_).encode(ExternalEncoding), input_name='Name'), namespace_)) 

for Concept_ in self.Concept: 

showIndent(outfile, level) 

outfile.write('<%sConcept>%s</%sConcept>\n' % (namespace_, self.format_string(quote_xml(Concept_).encode(ExternalEncoding), input_name='Concept'), namespace_)) 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(Description_).encode(ExternalEncoding), input_name='Description'), namespace_)) 

for Reference_ in self.Reference: 

Reference_.export(outfile, level, namespace_, name_='Reference') 

def hasContent_(self): 

if ( 

self.Name or 

self.Concept or 

self.Description or 

self.Reference 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Inference'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.relation is not None: 

showIndent(outfile, level) 

outfile.write('relation = "%s",\n' % (self.relation,)) 

if self.probability is not None: 

showIndent(outfile, level) 

outfile.write('probability = %f,\n' % (self.probability,)) 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('Name=[\n') 

level += 1 

for Name_ in self.Name: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Name_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Concept=[\n') 

level += 1 

for Concept_ in self.Concept: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Concept_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Description=[\n') 

level += 1 

for Description_ in self.Description: 

showIndent(outfile, level) 

outfile.write('%s,\n' % quote_python(Description_).encode(ExternalEncoding)) 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

showIndent(outfile, level) 

outfile.write('Reference=[\n') 

level += 1 

for Reference_ in self.Reference: 

showIndent(outfile, level) 

outfile.write('model_.Reference(\n') 

Reference_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('relation') 

if value is not None: 

self.relation = value 

value = attrs.get('probability') 

if value is not None: 

self.probability = value 

self.validate_smallFloat(self.probability) # validate type smallFloat 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'Name': 

Name_ = child_.text 

self.Name.append(Name_) 

elif nodeName_ == 'Concept': 

Concept_ = child_.text 

self.Concept.append(Concept_) 

elif nodeName_ == 'Description': 

Description_ = child_.text 

self.Description.append(Description_) 

elif nodeName_ == 'Reference': 

obj_ = Reference.factory() 

obj_.build(child_) 

self.Reference.append(obj_) 

# end class Inference 

 

 

class Citations(DataRepBase, GeneratedsSuper): 

"""Citations: Follow-up Observations. This section is a sequence of 

EventIVORN elements, each of which has the IVORN of a cited 

event.""" 

subclass = None 

superclass = None 

def __init__(self, EventIVORN=None, Description=None): 

if EventIVORN is None: 

self.EventIVORN = [] 

else: 

self.EventIVORN = EventIVORN 

self.Description = Description 

self.export_name = 'Citations' 

 

def factory(*args_, **kwargs_): 

if Citations.subclass: 

return Citations.subclass(*args_, **kwargs_) 

else: 

return Citations(*args_, **kwargs_) 

factory = staticmethod(factory) 

3284 ↛ exitline 3284 didn't return from function 'get_EventIVORN', because the return on line 3284 wasn't executed def get_EventIVORN(self): return self.EventIVORN 

3285 ↛ exitline 3285 didn't return from function 'set_EventIVORN' def set_EventIVORN(self, EventIVORN): self.EventIVORN = EventIVORN 

3286 ↛ exitline 3286 didn't return from function 'add_EventIVORN' def add_EventIVORN(self, value): self.EventIVORN.append(value) 

3287 ↛ exitline 3287 didn't return from function 'insert_EventIVORN' def insert_EventIVORN(self, index, value): self.EventIVORN[index] = value 

3288 ↛ exitline 3288 didn't return from function 'get_Description', because the return on line 3288 wasn't executed def get_Description(self): return self.Description 

3289 ↛ exitline 3289 didn't return from function 'set_Description' def set_Description(self, Description): self.Description = Description 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Citations'): 

pass 

def exportChildren(self, outfile, level, namespace_='', name_='Citations'): 

for EventIVORN_ in self.EventIVORN: 

EventIVORN_.export(outfile, level, namespace_, name_='EventIVORN') 

if self.Description is not None: 

showIndent(outfile, level) 

outfile.write('<%sDescription>%s</%sDescription>\n' % (namespace_, self.format_string(quote_xml(self.Description).encode(ExternalEncoding), input_name='Description'), namespace_)) 

def hasContent_(self): 

if ( 

self.EventIVORN or 

self.Description is not None 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Citations'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

pass 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('EventIVORN=[\n') 

level += 1 

for EventIVORN_ in self.EventIVORN: 

showIndent(outfile, level) 

outfile.write('model_.EventIVORN(\n') 

EventIVORN_.exportLiteral(outfile, level) 

showIndent(outfile, level) 

outfile.write('),\n') 

level -= 1 

showIndent(outfile, level) 

outfile.write('],\n') 

if self.Description is not None: 

showIndent(outfile, level) 

outfile.write('Description=%s,\n' % quote_python(self.Description).encode(ExternalEncoding)) 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

pass 

def buildChildren(self, child_, nodeName_): 

if nodeName_ == 'EventIVORN': 

obj_ = EventIVORN.factory() 

obj_.build(child_) 

self.EventIVORN.append(obj_) 

elif nodeName_ == 'Description': 

Description_ = child_.text 

self.Description = Description_ 

# end class Citations 

 

 

class EventIVORN(DataRepBase, GeneratedsSuper): 

"""Citations/EventIVORN. The value is the IVORN of the cited event, the 

'cite' attribute is the nature of that relationship, choosing 

from 'followup', 'supersedes', or 'retraction'.""" 

subclass = None 

superclass = None 

def __init__(self, cite=None, valueOf_=None): 

self.cite = _cast(None, cite) 

self.valueOf_ = valueOf_ 

self.export_name = 'EventIVORN' 

def factory(*args_, **kwargs_): 

if EventIVORN.subclass: 

return EventIVORN.subclass(*args_, **kwargs_) 

else: 

return EventIVORN(*args_, **kwargs_) 

factory = staticmethod(factory) 

3364 ↛ exitline 3364 didn't return from function 'get_cite', because the return on line 3364 wasn't executed def get_cite(self): return self.cite 

3365 ↛ exitline 3365 didn't return from function 'set_cite' def set_cite(self, cite): self.cite = cite 

def validate_citeValues(self, value): 

# Validate type citeValues, a restriction on xs:string. 

pass 

3369 ↛ exitline 3369 didn't return from function 'get_valueOf_', because the return on line 3369 wasn't executed def get_valueOf_(self): return self.valueOf_ 

3370 ↛ exitline 3370 didn't return from function 'set_valueOf_' def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ 

 

def exportAttributes(self, outfile, level, namespace_='', name_='EventIVORN'): 

if self.cite is not None: 

outfile.write(' cite=%s' % (quote_attrib(self.cite), )) 

def exportChildren(self, outfile, level, namespace_='', name_='EventIVORN'): 

pass 

def hasContent_(self): 

if ( 

self.valueOf_ 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='EventIVORN'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.cite is not None: 

showIndent(outfile, level) 

outfile.write('cite = "%s",\n' % (self.cite,)) 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('valueOf_ = """%s""",\n' % (self.valueOf_,)) 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

self.valueOf_ = get_all_text_(node) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('cite') 

if value is not None: 

self.cite = value 

self.validate_citeValues(self.cite) # validate type citeValues 

def buildChildren(self, child_, nodeName_): 

pass 

# end class EventIVORN 

 

 

class Reference(DataRepBase, GeneratedsSuper): 

"""Reference: External Content. The payload is the uri, and the 'type' 

describes the nature of the data under that uri. The Reference 

can also be named.""" 

subclass = None 

superclass = None 

def __init__(self, type_='url', uri=None, name=None, valueOf_=None): 

self.type_ = _cast(None, type_) 

self.uri = _cast(None, uri) 

self.name = _cast(None, name) 

self.valueOf_ = valueOf_ 

self.export_name = 'Reference' 

def factory(*args_, **kwargs_): 

if Reference.subclass: 

return Reference.subclass(*args_, **kwargs_) 

else: 

return Reference(*args_, **kwargs_) 

factory = staticmethod(factory) 

3430 ↛ exitline 3430 didn't return from function 'get_type', because the return on line 3430 wasn't executed def get_type(self): return self.type_ 

3431 ↛ exitline 3431 didn't return from function 'set_type' def set_type(self, type_): self.type_ = type_ 

3432 ↛ exitline 3432 didn't return from function 'get_uri', because the return on line 3432 wasn't executed def get_uri(self): return self.uri 

3433 ↛ exitline 3433 didn't return from function 'set_uri' def set_uri(self, uri): self.uri = uri 

3434 ↛ exitline 3434 didn't return from function 'get_name', because the return on line 3434 wasn't executed def get_name(self): return self.name 

3435 ↛ exitline 3435 didn't return from function 'set_name' def set_name(self, name): self.name = name 

3436 ↛ exitline 3436 didn't return from function 'get_valueOf_', because the return on line 3436 wasn't executed def get_valueOf_(self): return self.valueOf_ 

3437 ↛ exitline 3437 didn't return from function 'set_valueOf_' def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ 

 

def exportAttributes(self, outfile, level, namespace_='', name_='Reference'): 

if self.type_ is not None: 

outfile.write(' type=%s' % (self.format_string(quote_attrib(self.type_).encode(ExternalEncoding), input_name='type'), )) 

outfile.write(' uri=%s' % (self.format_string(quote_attrib(self.uri).encode(ExternalEncoding), input_name='uri'), )) 

if self.name is not None: 

outfile.write(' name=%s' % (self.format_string(quote_attrib(self.name).encode(ExternalEncoding), input_name='name'), )) 

def exportChildren(self, outfile, level, namespace_='', name_='Reference'): 

pass 

def hasContent_(self): 

if ( 

self.valueOf_ 

): 

return True 

else: 

return False 

def exportLiteral(self, outfile, level, name_='Reference'): 

level += 1 

self.exportLiteralAttributes(outfile, level, name_) 

if self.hasContent_(): 

self.exportLiteralChildren(outfile, level, name_) 

def exportLiteralAttributes(self, outfile, level, name_): 

if self.type_ is not None: 

showIndent(outfile, level) 

outfile.write('type_ = "%s",\n' % (self.type_,)) 

if self.uri is not None: 

showIndent(outfile, level) 

outfile.write('uri = "%s",\n' % (self.uri,)) 

if self.name is not None: 

showIndent(outfile, level) 

outfile.write('name = "%s",\n' % (self.name,)) 

def exportLiteralChildren(self, outfile, level, name_): 

showIndent(outfile, level) 

outfile.write('valueOf_ = """%s""",\n' % (self.valueOf_,)) 

def build(self, node): 

self.buildAttributes(node, node.attrib) 

self.valueOf_ = get_all_text_(node) 

for child in node: 

nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] 

self.buildChildren(child, nodeName_) 

def buildAttributes(self, node, attrs): 

value = attrs.get('type') 

if value is not None: 

self.type_ = value 

value = attrs.get('uri') 

if value is not None: 

self.uri = value 

value = attrs.get('name') 

if value is not None: 

self.name = value 

def buildChildren(self, child_, nodeName_): 

pass 

# end class Reference 

 

 

USAGE_TEXT = """ 

Usage: python <Parser>.py [ -s ] <in_xml_file> 

""" 

 

def usage(): 

print(USAGE_TEXT) 

sys.exit(1) 

 

 

def get_root_tag(node): 

tag = Tag_pattern_.match(node.tag).groups()[-1] 

rootClass = globals().get(tag) 

return tag, rootClass 

 

 

def parse(inFileName): 

doc = parsexml_(inFileName) 

rootNode = doc.getroot() 

rootTag, rootClass = get_root_tag(rootNode) 

rootObj = rootClass.factory() 

rootObj.build(rootNode) 

# Enable Python to collect the space used by the DOM. 

doc = None 

sys.stdout.write('<?xml version="1.0" ?>\n') 

rootObj.export(sys.stdout, 0, name_=rootTag, 

namespacedef_='') 

return rootObj 

 

 

def parseString(inString): 

doc = parsexml_(StringIO(inString)) 

rootNode = doc.getroot() 

rootTag, rootClass = get_root_tag(rootNode) 

rootObj = rootClass.factory() 

rootObj.build(rootNode) 

# Enable Python to collect the space used by the DOM. 

doc = None 

sys.stdout.write('<?xml version="1.0" ?>\n') 

rootObj.export(sys.stdout, 0, name_="VOEvent", 

namespacedef_='') 

return rootObj 

 

 

def parseLiteral(inFileName): 

doc = parsexml_(inFileName) 

rootNode = doc.getroot() 

rootTag, rootClass = get_root_tag(rootNode) 

rootObj = rootClass.factory() 

rootObj.build(rootNode) 

# Enable Python to collect the space used by the DOM. 

doc = None 

sys.stdout.write('#from VOEvent import *\n\n') 

sys.stdout.write('import VOEvent as model_\n\n') 

sys.stdout.write('rootObj = model_.rootTag(\n') 

rootObj.exportLiteral(sys.stdout, 0, name_=rootTag) 

sys.stdout.write(')\n') 

return rootObj 

 

 

def main(): 

args = sys.argv[1:] 

if len(args) == 1: 

parse(args[0]) 

else: 

usage() 

 

 

3560 ↛ 3562line 3560 didn't jump to line 3562, because the condition on line 3560 was never trueif __name__ == '__main__': 

#import pdb; pdb.set_trace() 

main()