Lines Matching refs:UID
30 my ($self, $UID) = @_;
31 (defined($UID)) || die "Insufficient Arguments : You must provide a UID to search for";
32 $self->{UID_to_find} = $UID;
50 my $UID = $self->{UID_to_find};
51 (defined($UID)) || die "Illegal Operation : You cannot search for a UID without setting one first";
65 (($tree->getUID() eq $UID) && $self->{_filter_function}->($tree)) && die $tree;
71 ($tree->getUID() eq $UID) && die $tree;
133 Tree::Simple::Visitor::FindByUID - A Visitor for finding an element in a Tree::Simple hierarchy by UID
155 Given a UID and Tree::Simple hierarchy, this Visitor will attempt to find the node with the same UID.
173 =item B<searchForUID ($UID)>
175 This is the UID we will attempt to find within the tree.
179 This method accepts a CODE reference as its C<$filter_function> argument and throws an exception if it is not a code reference. This code reference is used to further check the tree nodes as they are searched and so can be used to customize search behavior. For instance, you could to check against the UID as well as some other criteria. The filter function should accept a single argument, which is the current Tree::Simple object and return either true (C<1>) on success, or false (C<0>) on failure.
187 This method will return the tree found with the specified UID (set by the C<searchForUID> method) or C<undef> if no tree is found.