Mercurial > pub > Impl
annotate Lib/IMPL/DOM/Transform.pm @ 168:6148f89bb7bf
IMPL::SQL::Schema::Traits::Diff alfa version
IMPL::lang added hash traits
author | sourcer |
---|---|
date | Mon, 16 May 2011 04:30:38 +0400 |
parents | 4267a2ac3d46 |
children | d1676be8afcc |
rev | line source |
---|---|
49 | 1 package IMPL::DOM::Transform; |
2 use strict; | |
3 use warnings; | |
4 | |
166 | 5 use parent qw(IMPL::Transform); |
49 | 6 |
7 __PACKAGE__->PassThroughArgs; | |
8 | |
9 sub GetClassForObject { | |
10 my ($this,$object) = @_; | |
11 | |
12 if (my $class = ref $object) { | |
13 if (UNIVERSAL::isa($object,'IMPL::DOM::Node')) { | |
14 return $object->nodeName; | |
15 } else { | |
16 return $class; | |
17 } | |
18 } else { | |
19 return undef; | |
20 } | |
21 } | |
22 | |
23 1; | |
24 | |
25 __END__ | |
26 | |
27 =pod | |
28 | |
29 =head1 DESCRIPTION | |
30 | |
148
e6447ad85cb4
DOM objects now have a schema and schemaSource properties
wizard
parents:
80
diff
changeset
|
31 Преобразование для DOM документа, использует имя узла для применения подходящего преобразования. |
49 | 32 |
33 =cut |