/** * Returns an array containing only those child node definitions of this * node type (including the child node definitions inherited from supertypes * of this node type) where <code>{@link NodeDefinition#isMandatory()}</code> * returns <code>true</code>. * * @return an array of child node definitions. * @see NodeDefinition#isMandatory */ public NodeDefinition[] getMandatoryNodeDefinitions() { QNodeDefinition[] cnda = ent.getMandatoryNodeDefs(); NodeDefinition[] nodeDefs = new NodeDefinition[cnda.length]; for (int i = 0; i < cnda.length; i++) { nodeDefs[i] = ntMgr.getNodeDefinition(cnda[i]); } return nodeDefs; }
/** * Returns an array containing only those child node definitions of this * node type (including the child node definitions inherited from supertypes * of this node type) where <code>{@link NodeDefinition#isMandatory()}</code> * returns <code>true</code>. * * @return an array of child node definitions. * @see NodeDefinition#isMandatory */ public NodeDefinition[] getMandatoryNodeDefinitions() { QNodeDefinition[] cnda = ent.getMandatoryNodeDefs(); NodeDefinition[] nodeDefs = new NodeDefinition[cnda.length]; for (int i = 0; i < cnda.length; i++) { nodeDefs[i] = ntMgr.getNodeDefinition(cnda[i]); } return nodeDefs; }
for (QItemDefinition cnd : entPrimaryAndMixins.getMandatoryNodeDefs()) { if (!nodeState.hasChildNodeEntry(cnd.getName())) { String msg = safeGetJCRPath(nodeState.getNodeId())
for (QItemDefinition cnd : entPrimaryAndMixins.getMandatoryNodeDefs()) { if (!nodeState.hasChildNodeEntry(cnd.getName())) { String msg = safeGetJCRPath(nodeState.getNodeId())
for (QItemDefinition cnd : ent.getMandatoryNodeDefs()) { String msg = itemMgr.safeGetJCRPath(id) + ": mandatory child node " + cnd.getName()
for (QItemDefinition cnd : ent.getMandatoryNodeDefs()) { String msg = itemMgr.safeGetJCRPath(id) + ": mandatory child node " + cnd.getName()