annotate Lib/IMPL/DOM/Transform.pm @ 46:75148ccd732d

Upgrading resources
author Sergey
date Tue, 02 Feb 2010 17:09:49 +0300
parents d660fb38b7cc
children 16ada169ca75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
1 package IMPL::DOM::Transform;
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
2 use strict;
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
3 use warnings;
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
4
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
5 use base qw(IMPL::Transform);
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
6
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
7 __PACKAGE__->PassThroughArgs;
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
8
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
9 sub GetClassForObject {
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
10 my ($this,$object) = @_;
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
11
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
12 if (my $class = ref $object) {
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
13 if (UNIVERSAL::isa($object,'IMPL::DOM::Node')) {
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
14 return $object->nodeName;
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
15 } else {
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
16 return $class;
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
17 }
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
18 } else {
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
19 return undef;
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
20 }
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
21 }
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
22
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
23 1;
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
24
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
25 __END__
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
26
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
27 =pod
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
28
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
29 =head1 DESCRIPTION
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
30
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
31 Преобразование для DOM документа
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
32
d660fb38b7cc small fixes
Sergey
parents:
diff changeset
33 =cut