Tie::JCR

Tie::JCR is a tied hash interface for Java::JCR::Node.
Download

Tie::JCR Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Andrew Sterling Hanenkamp
  • Publisher web site:
  • http://search.cpan.org/~hanenkamp/

Tie::JCR Tags


Tie::JCR Description

Tie::JCR is a tied hash interface for Java::JCR::Node. Tie::JCR is a tied hash interface for Java::JCR::Node.SYNOPSIS use Data::Dumper; use Java::JCR; use Java::JCR::Jackrabbit; use Tie::JCR; my $repository = Java::JCR::Jackrabbit->new; my $session = $respoitory->session; my $root_node = $session->get_root_node; tie my %root, 'Tie::JCR', $root_node; # Expensive, but we can dump the whole tree: print Dumper(%root); my $type = $root{'jcr:primaryType'}; my $uuid = $root{'jcr:uuid'}; my $foo = $root{'foo'}; my $nested_bar = $root{'qux'}{'baz'}{'bar'};This provides a very simple, read-only interface to a node from Java::JCR. Each key represents the names of items within the node. Each value is either a scalar for non-multiple child properties, an array for multiple child properties, or nested hashes for child nodes. In the case of same-name children, you may see an array returned containing scalars and hashes for a mixture of properties and nodes. Requirements: · Perl


Tie::JCR Related Software