File Coverage

blib/lib/WE/Obj/DocObj.pm
Criterion Covered Total %
statement 6 8 75.0
branch n/a
condition n/a
subroutine 2 4 50.0
pod 2 2 100.0
total 10 14 71.4


line stmt bran cond sub pod time code
1             # -*- perl -*-
2              
3             #
4             # $Id: DocObj.pm,v 1.4 2004/12/21 23:18:04 eserte Exp $
5             # Author: Slaven Rezic
6             #
7             # Copyright (C) 2001 Online Office Berlin. All rights reserved.
8             # Copyright (C) 2002 Slaven Rezic.
9             # This is free software; you can redistribute it and/or modify it under the
10             # terms of the GNU General Public License, see the file COPYING.
11              
12             #
13             # Mail: slaven@rezic.de
14             # WWW: http://we-framework.sourceforge.net
15             #
16              
17             package WE::Obj::DocObj;
18              
19             require WE::Obj;
20             @ISA = qw(WE::Obj);
21              
22             =head1 NAME
23              
24             WE::Obj::DocObj - base class for objects holding content data
25              
26             =head1 SYNOPSIS
27              
28             This is an abstract class.
29              
30             =head1 DESCRIPTION
31              
32             This is a base class for all objects containing data.
33              
34             DocObj instances can hold the additional attribute B with
35             the MIME type of the document (e.g. "text/html"). Undefined documents
36             will hold "application/octet-stream".
37              
38             =cut
39              
40             __PACKAGE__->mk_accessors(qw(ContentType));
41              
42 13     13   89 use strict;
  13         22  
  13         450  
43 13     13   64 use vars qw($VERSION);
  13         27  
  13         1576  
44             $VERSION = sprintf("%d.%02d", q$Revision: 1.4 $ =~ /(\d+)\.(\d+)/);
45              
46 0     0 1   sub instantiable { 0 }
47              
48             # document-like objects cannot hold other objects
49 0     0 1   sub insertable_types { [] }
50              
51             1;
52              
53             __END__