private void addNodeType(NodeState types, String name) { NodeState type = types.getChildNode(name); for (String primary : type.getNames(REP_PRIMARY_SUBTYPES)) { primaryTypes = add(primaryTypes, primary); } if (type.getBoolean(JCR_ISMIXIN)) { mixinTypes = add(mixinTypes, name); // Only mixin types can have mixin descendants, so we // only fill the mixinTypes set in this branch of code. for (String mixin : type.getNames(REP_MIXIN_SUBTYPES)) { mixinTypes = add(mixinTypes, mixin); } } else { // No need to check whether the type actually exists, as if // it doesn't there should in any case be no matching content. primaryTypes = add(primaryTypes, name); } }
private void addNodeType(NodeState types, String name) { NodeState type = types.getChildNode(name); for (String primary : type.getNames(REP_PRIMARY_SUBTYPES)) { primaryTypes = add(primaryTypes, primary); } if (type.getBoolean(JCR_ISMIXIN)) { mixinTypes = add(mixinTypes, name); // Only mixin types can have mixin descendants, so we // only fill the mixinTypes set in this branch of code. for (String mixin : type.getNames(REP_MIXIN_SUBTYPES)) { mixinTypes = add(mixinTypes, mixin); } } else { // No need to check whether the type actually exists, as if // it doesn't there should in any case be no matching content. primaryTypes = add(primaryTypes, name); } }
private void addNodeType(NodeState types, String name) { NodeState type = types.getChildNode(name); for (String primary : type.getNames(REP_PRIMARY_SUBTYPES)) { primaryTypes = add(primaryTypes, primary); } if (type.getBoolean(JCR_ISMIXIN)) { mixinTypes = add(mixinTypes, name); // Only mixin types can have mixin descendants, so we // only fill the mixinTypes set in this branch of code. for (String mixin : type.getNames(REP_MIXIN_SUBTYPES)) { mixinTypes = add(mixinTypes, mixin); } } else { // No need to check whether the type actually exists, as if // it doesn't there should in any case be no matching content. primaryTypes = add(primaryTypes, name); } }