@@ -28,61 +28,78 @@ class DublinCore {
28
28
29
29
/// Parse constructor for the DublinCore class, used when 'parsing' a feed
30
30
factory DublinCore .parse (XmlElement element) => DublinCore (
31
- title: element.findElements ('dc:title' ).firstOrNull? .text,
32
- description: element.findElements ('dc:description' ).firstOrNull? .text,
33
- creator: element.findElements ('dc:creator' ).firstOrNull? .text,
34
- subject: element.findElements ('dc:subject' ).firstOrNull? .text,
35
- publisher: element.findElements ('dc:publisher' ).firstOrNull? .text,
36
- contributor: element.findElements ('dc:contributor' ).firstOrNull? .text,
37
- date: parseDateTime (element.findElements ('dc:date' ).firstOrNull? .text),
38
- created:
39
- parseDateTime (element.findElements ('dc:created' ).firstOrNull? .text),
40
- modified:
41
- parseDateTime (element.findElements ('dc:modified' ).firstOrNull? .text),
42
- type: element.findElements ('dc:type' ).firstOrNull? .text,
43
- format: element.findElements ('dc:format' ).firstOrNull? .text,
44
- identifier: element.findElements ('dc:identifier' ).firstOrNull? .text,
45
- source: element.findElements ('dc:source' ).firstOrNull? .text,
46
- language: element.findElements ('dc:language' ).firstOrNull? .text,
47
- relation: element.findElements ('dc:relation' ).firstOrNull? .text,
48
- coverage: element.findElements ('dc:coverage' ).firstOrNull? .text,
49
- rights: element.findElements ('dc:rights' ).firstOrNull? .text,
50
- );
31
+ title: element.findElements ('dc:title' ).firstOrNull? .text,
32
+ description: element.findElements ('dc:description' ).firstOrNull? .text,
33
+ creator: element.findElements ('dc:creator' ).firstOrNull? .text,
34
+ subject: element.findElements ('dc:subject' ).firstOrNull? .text,
35
+ publisher: element.findElements ('dc:publisher' ).firstOrNull? .text,
36
+ contributor: element.findElements ('dc:contributor' ).firstOrNull? .text,
37
+ date: parseDateTime (element.findElements ('dc:date' ).firstOrNull? .text),
38
+ created:
39
+ parseDateTime (element.findElements ('dc:created' ).firstOrNull? .text),
40
+ modified: parseDateTime (
41
+ element.findElements ('dc:modified' ).firstOrNull? .text,
42
+ ),
43
+ type: element.findElements ('dc:type' ).firstOrNull? .text,
44
+ format: element.findElements ('dc:format' ).firstOrNull? .text,
45
+ identifier: element.findElements ('dc:identifier' ).firstOrNull? .text,
46
+ source: element.findElements ('dc:source' ).firstOrNull? .text,
47
+ language: element.findElements ('dc:language' ).firstOrNull? .text,
48
+ relation: element.findElements ('dc:relation' ).firstOrNull? .text,
49
+ coverage: element.findElements ('dc:coverage' ).firstOrNull? .text,
50
+ rights: element.findElements ('dc:rights' ).firstOrNull? .text,
51
+ );
51
52
52
53
/// The title of the resource
53
54
final String ? title;
55
+
54
56
/// A description of the resource
55
57
final String ? description;
58
+
56
59
/// An entity primarily responsible for making the resource
57
60
final String ? creator;
61
+
58
62
/// The topic of the resource
59
63
final String ? subject;
64
+
60
65
/// An entity responsible for making the resource available
61
66
final String ? publisher;
67
+
62
68
/// An entity responsible for making contributions to the resource
63
69
final String ? contributor;
70
+
64
71
/// A point or period of time associated with an event in the lifecycle of the
65
72
/// resource
66
73
final DateTime ? date;
74
+
67
75
/// The date of creation of the resource
68
76
final DateTime ? created;
77
+
69
78
/// The date of modification of the resource
70
79
final DateTime ? modified;
80
+
71
81
/// The nature or genre of the resource
72
82
final String ? type;
83
+
73
84
/// The file format, physical medium, or dimensions of the resource
74
85
final String ? format;
86
+
75
87
/// An unambiguous reference to the resource within a given context
76
88
final String ? identifier;
89
+
77
90
/// A related resource from which the described resource is derived
78
91
final String ? source;
92
+
79
93
/// A language of the resource
80
94
final String ? language;
95
+
81
96
/// A related resource
82
97
final String ? relation;
98
+
83
99
/// The spatial or temporal topic of the resource, the spatial applicability
84
100
/// of the resource, or the jurisdiction under which the resource is relevant
85
101
final String ? coverage;
102
+
86
103
/// Information about rights held in and over the resource
87
104
final String ? rights;
88
105
}
0 commit comments