/** * Determines whether this effective node type representation includes * (either through inheritance or aggregation) all of the given node types. * * @param nodeTypeNames array of node type names * @return {@code true} if all of the given node types are included, * otherwise {@code false} */ @Override public boolean includesNodeTypes(String[] nodeTypeNames) { for (String ntName : nodeTypeNames) { if (!includesNodeType(ntName)) { return false; } } return true; }
/** * Determines whether this effective node type representation includes * (either through inheritance or aggregation) all of the given node types. * * @param nodeTypeNames array of node type names * @return {@code true} if all of the given node types are included, * otherwise {@code false} */ @Override public boolean includesNodeTypes(String[] nodeTypeNames) { for (String ntName : nodeTypeNames) { if (!includesNodeType(ntName)) { return false; } } return true; }
/** * Determines whether this effective node type representation includes * (either through inheritance or aggregation) all of the given node types. * * @param nodeTypeNames array of node type names * @return {@code true} if all of the given node types are included, * otherwise {@code false} */ @Override public boolean includesNodeTypes(String[] nodeTypeNames) { for (String ntName : nodeTypeNames) { if (!includesNodeType(ntName)) { return false; } } return true; }
/** * Determines whether this effective node type supports adding * the specified mixin. * @param mixin name of mixin type * @return {@code true} if the mixin type is supported, otherwise {@code false} */ @Override public boolean supportsMixin(String mixin) { if (includesNodeType(mixin)) { return true; } NodeType mixinType = null; try { mixinType = ntMgr.internalGetNodeType(mixin); if (!mixinType.isMixin() || mixinType.isAbstract()) { return false; } } catch (NoSuchNodeTypeException e) { log.debug("Unknown mixin type " + mixin); } return true; }
/** * Determines whether this effective node type supports adding * the specified mixin. * @param mixin name of mixin type * @return {@code true} if the mixin type is supported, otherwise {@code false} */ @Override public boolean supportsMixin(String mixin) { if (includesNodeType(mixin)) { return true; } NodeType mixinType = null; try { mixinType = ntMgr.internalGetNodeType(mixin); if (!mixinType.isMixin() || mixinType.isAbstract()) { return false; } } catch (NoSuchNodeTypeException e) { log.debug("Unknown mixin type " + mixin); } return true; }
/** * Determines whether this effective node type supports adding * the specified mixin. * @param mixin name of mixin type * @return {@code true} if the mixin type is supported, otherwise {@code false} */ @Override public boolean supportsMixin(String mixin) { if (includesNodeType(mixin)) { return true; } NodeType mixinType = null; try { mixinType = ntMgr.internalGetNodeType(mixin); if (!mixinType.isMixin() || mixinType.isAbstract()) { return false; } } catch (NoSuchNodeTypeException e) { log.debug("Unknown mixin type " + mixin); } return true; }