PageRenderTime 23ms CodeModel.GetById 14ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/gdata/dublincore/data.py

http://radioappz.googlecode.com/
Python | 78 lines | 23 code | 29 blank | 26 comment | 0 complexity | 068a0b21ca3a8096b8ac7324ab9df3e9 MD5 | raw file
 1#!/usr/bin/python
 2#
 3# Copyright (C) 2009 Google Inc.
 4#
 5# Licensed under the Apache License, Version 2.0 (the "License");
 6# you may not use this file except in compliance with the License.
 7# You may obtain a copy of the License at
 8#
 9#      http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17"""Contains the data classes of the Dublin Core Metadata Initiative (DCMI) Extension"""
18
19
20__author__ = 'j.s@google.com (Jeff Scudder)'
21
22
23import atom.core
24
25
26DC_TEMPLATE = '{http://purl.org/dc/terms/}%s'
27
28
29class Creator(atom.core.XmlElement):
30  """Entity primarily responsible for making the resource."""
31  _qname = DC_TEMPLATE % 'creator'
32
33
34class Date(atom.core.XmlElement):
35  """Point or period of time associated with an event in the lifecycle of the resource."""
36  _qname = DC_TEMPLATE % 'date'
37
38
39class Description(atom.core.XmlElement):
40  """Account of the resource."""
41  _qname = DC_TEMPLATE % 'description'
42
43
44class Format(atom.core.XmlElement):
45  """File format, physical medium, or dimensions of the resource."""
46  _qname = DC_TEMPLATE % 'format'
47
48
49class Identifier(atom.core.XmlElement):
50  """An unambiguous reference to the resource within a given context."""
51  _qname = DC_TEMPLATE % 'identifier'
52
53
54class Language(atom.core.XmlElement):
55  """Language of the resource."""
56  _qname = DC_TEMPLATE % 'language'
57
58
59class Publisher(atom.core.XmlElement):
60  """Entity responsible for making the resource available."""
61  _qname = DC_TEMPLATE % 'publisher'
62
63
64class Rights(atom.core.XmlElement):
65  """Information about rights held in and over the resource."""
66  _qname = DC_TEMPLATE % 'rights'
67
68
69class Subject(atom.core.XmlElement):
70  """Topic of the resource."""
71  _qname = DC_TEMPLATE % 'subject'
72
73
74class Title(atom.core.XmlElement):
75  """Name given to the resource."""
76  _qname = DC_TEMPLATE % 'title'
77
78