jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller" <thomas.tom.muel...@gmail.com>
Subject Re: 3.1.3.1 Removing Items
Date Fri, 17 Aug 2007 22:58:53 GMT
Hi,

when you want to avoid using Exceptions for control flow:

Value getValue(Node node, String name) ... {
    if (node.hasProperty(name)) {
        return node.getProperty(name).getValue();
    } else {
        return null;
    }
}

Thomas

Mime
View raw message