public boolean isSubtype()

in src/main/java/org/apache/sling/query/impl/resource/jcr/SessionJcrTypeResolver.java [70:83]


    public boolean isSubtype(String supertype, String subtype) {
        if (nodeTypeManager == null) {
            return false;
        }
        if (!isJcrType(subtype) || !isJcrType(supertype)) {
            return false;
        }
        try {
            return nodeTypeManager.getNodeType(subtype).isNodeType(supertype);
        } catch (RepositoryException e) {
            LOG.error("Can't compare two node types: " + subtype + " and " + supertype, e);
            return false;
        }
    }