/** * Returns an array containing only those property definitions of this * node type (including the property definitions inherited from supertypes * of this node type) where <code>{@link PropertyDefinition#isMandatory()}</code> * returns <code>true</code>. * * @return an array of property definitions. * @see PropertyDefinition#isMandatory */ public PropertyDefinition[] getMandatoryPropertyDefinitions() { QPropertyDefinition[] pda = ent.getMandatoryPropDefs(); PropertyDefinition[] propDefs = new PropertyDefinition[pda.length]; for (int i = 0; i < pda.length; i++) { propDefs[i] = ntMgr.getPropertyDefinition(pda[i]); } return propDefs; }
/** * Returns an array containing only those property definitions of this * node type (including the property definitions inherited from supertypes * of this node type) where <code>{@link PropertyDefinition#isMandatory()}</code> * returns <code>true</code>. * * @return an array of property definitions. * @see PropertyDefinition#isMandatory */ public PropertyDefinition[] getMandatoryPropertyDefinitions() { QPropertyDefinition[] pda = ent.getMandatoryPropDefs(); PropertyDefinition[] propDefs = new PropertyDefinition[pda.length]; for (int i = 0; i < pda.length; i++) { propDefs[i] = ntMgr.getPropertyDefinition(pda[i]); } return propDefs; }
for (QPropertyDefinition pd : entPrimaryAndMixins.getMandatoryPropDefs()) { if (!nodeState.hasPropertyName(pd.getName())) { String msg = safeGetJCRPath(nodeState.getNodeId())
for (QPropertyDefinition pd : entPrimaryAndMixins.getMandatoryPropDefs()) { if (!nodeState.hasPropertyName(pd.getName())) { String msg = safeGetJCRPath(nodeState.getNodeId())
for (QPropertyDefinition pd : ent.getMandatoryPropDefs()) { if (pd.getDeclaringNodeType().equals(NameConstants.MIX_VERSIONABLE) || pd.getDeclaringNodeType().equals(NameConstants.MIX_SIMPLE_VERSIONABLE)) {
for (QPropertyDefinition pd : ent.getMandatoryPropDefs()) { if (pd.getDeclaringNodeType().equals(NameConstants.MIX_VERSIONABLE) || pd.getDeclaringNodeType().equals(NameConstants.MIX_SIMPLE_VERSIONABLE)) {