Mercurial > pub > Impl
comparison Lib/IMPL/DOM/Node.pm @ 75:915df8fcd16f
docs
small fixes
| author | wizard |
|---|---|
| date | Tue, 30 Mar 2010 20:31:36 +0400 |
| parents | 16ada169ca75 |
| children | cf3b6ef2be22 |
comparison
equal
deleted
inserted
replaced
| 74:84aa8c395fce | 75:915df8fcd16f |
|---|---|
| 227 # prevent from creating cyclicreferences | 227 # prevent from creating cyclicreferences |
| 228 weaken($this->{$parentNode}); | 228 weaken($this->{$parentNode}); |
| 229 | 229 |
| 230 } else { | 230 } else { |
| 231 delete $this->{$parentNode}; | 231 delete $this->{$parentNode}; |
| 232 $newOwner = 0; | 232 |
| 233 #keep document | |
| 234 $newOwner = $this->{$document}; | |
| 233 } | 235 } |
| 234 | 236 |
| 235 if (($this->{$document}||0) != $newOwner) { | 237 if (($this->{$document}||0) != $newOwner) { |
| 236 $this->{$document} = $newOwner; | 238 $this->{$document} = $newOwner; |
| 237 weaken($this->{$document}) if $newOwner; | 239 weaken($this->{$document}) if $newOwner; |
| 271 return $this->qname; | 273 return $this->qname; |
| 272 } | 274 } |
| 273 } | 275 } |
| 274 | 276 |
| 275 1; | 277 1; |
| 278 | |
| 279 __END__ | |
| 280 | |
| 281 =pod | |
| 282 | |
| 283 =head1 NAME | |
| 284 | |
| 285 C<IMPL::DOM::Node> Элемент DOM модели | |
| 286 | |
| 287 =head1 DESCRIPTION | |
| 288 | |
| 289 Базовый узел DOM модели. От него можно наследовать другие элементы DOM модели. | |
| 290 | |
| 291 =head1 MEMBERS | |
| 292 | |
| 293 =head2 PROPERTIES | |
| 294 | |
| 295 =over | |
| 296 | |
| 297 =item C<[get] nodeName> | |
| 298 | |
| 299 Имя узла. Задается при создании. | |
| 300 | |
| 301 =item C<[get] document> | |
| 302 | |
| 303 Документ к которому принадлежит узел. Задается при поздании узла. | |
| 304 | |
| 305 =item C<[get] isComplex> | |
| 306 | |
| 307 Определяет является ли узел сложным (тоесть есть ли дети). | |
| 308 | |
| 309 C<true> - есть, C<false> - нет. | |
| 310 | |
| 311 =item C<[get,set] nodeValue> | |
| 312 | |
| 313 Значение узла, обычно простой скаляр, но ничто не мешает туда | |
| 314 устанавливать любое значение. | |
| 315 | |
| 316 =item C<[get,list] childNodes> | |
| 317 | |
| 318 Список детей, является списокм C<IMPL::Object::List>. | |
| 319 | |
| 320 =item C<[get] parentNode> | |
| 321 | |
| 322 Ссылка на родительский элемент, если таковой имеется. | |
| 323 | |
| 324 =head2 METHODS | |
| 325 | |
| 326 =cut |
