/** * Checks if this node has one or more properties. * <p> * The default implementation calls {@link Node#getProperties()} and * returns <code>true</code> iff returned iterator has at least one element. * <p> * Note that in normal circumstances (i.e. no weird access controls) this * method will always return <code>true</code> since all nodes always have * at least the <code>jcr:primaryType</code> property. * * @return <code>true</code> if this node has properties, * <code>false</code> otherwise * @throws RepositoryException if an error occurs */ public boolean hasProperties() throws RepositoryException { return getProperties().hasNext(); }
/** * Checks if this node has one or more properties. * <p> * The default implementation calls {@link Node#getProperties()} and * returns <code>true</code> iff returned iterator has at least one element. * <p> * Note that in normal circumstances (i.e. no weird access controls) this * method will always return <code>true</code> since all nodes always have * at least the <code>jcr:primaryType</code> property. * * @return <code>true</code> if this node has properties, * <code>false</code> otherwise * @throws RepositoryException if an error occurs */ public boolean hasProperties() throws RepositoryException { return getProperties().hasNext(); }
/** * Checks if this node has one or more properties. * <p> * The default implementation calls {@link Node#getProperties()} and * returns <code>true</code> iff returned iterator has at least one element. * <p> * Note that in normal circumstances (i.e. no weird access controls) this * method will always return <code>true</code> since all nodes always have * at least the <code>jcr:primaryType</code> property. * * @return <code>true</code> if this node has properties, * <code>false</code> otherwise * @throws RepositoryException if an error occurs */ public boolean hasProperties() throws RepositoryException { return getProperties().hasNext(); }
/** * Checks if this node has one or more properties. * <p> * The default implementation calls {@link Node#getProperties()} and * returns <code>true</code> iff returned iterator has at least one element. * <p> * Note that in normal circumstances (i.e. no weird access controls) this * method will always return <code>true</code> since all nodes always have * at least the <code>jcr:primaryType</code> property. * * @return <code>true</code> if this node has properties, * <code>false</code> otherwise * @throws RepositoryException if an error occurs */ public boolean hasProperties() throws RepositoryException { return getProperties().hasNext(); }