/** * {@inheritDoc} * <p> * In JCR 1.0, this method applied to all children. However, this was changed in the JSR-283 specification to apply only to * nodes, and it is also deprecated. * </p> * * @see javax.jcr.nodetype.NodeType#canRemoveItem(java.lang.String) */ @Override @SuppressWarnings("deprecation") public boolean canRemoveItem( String itemName ) { CheckArg.isNotNull(itemName, "itemName"); Name childName = context.getValueFactories().getNameFactory().create(itemName); return nodeTypes().canRemoveItem(this.name, null, childName, true); }
/** * {@inheritDoc} * <p> * In JCR 1.0, this method applied to all children. However, this was changed in the JSR-283 specification to apply only to * nodes, and it is also deprecated. * </p> * * @see javax.jcr.nodetype.NodeType#canRemoveItem(java.lang.String) */ @Override @SuppressWarnings("deprecation") public boolean canRemoveItem( String itemName ) { CheckArg.isNotNull(itemName, "itemName"); Name childName = context.getValueFactories().getNameFactory().create(itemName); return nodeTypes().canRemoveItem(this.name, null, childName, true); }
if (!itemName.equals(JcrNodeType.RESIDUAL_NAME)) return canRemoveItem(primaryTypeNameOfParent, mixinTypeNamesOfParent, JcrNodeType.RESIDUAL_NAME, skipProtected); return false;
if (!itemName.equals(JcrNodeType.RESIDUAL_NAME)) return canRemoveItem(primaryTypeNameOfParent, mixinTypeNamesOfParent, JcrNodeType.RESIDUAL_NAME, skipProtected); return false;