return qName;
}
private boolean canAddMixin(Name mixinName) throws NoSuchNodeTypeException,
ConstraintViolationException {
NodeTypeManagerImpl ntMgr = session.getNodeTypeManager();
// first check characteristics of each mixin
NodeType mixin = ntMgr.getNodeType(mixinName);
if (!mixin.isMixin()) {
log.error(mixin.getName() + ": not a mixin node type");
return false;
}
NodeTypeImpl primaryType = ntMgr.getNodeType(primaryTypeName);
if (primaryType.isNodeType(mixinName)) {
log.debug(mixin.getName() + ": already contained in primary node type");
return false;
}