public boolean isA(String docTypeName) {
        if (getName().equalsIgnoreCase(docTypeName)) {
            return true;
        }
        for (DocumentType parent : inherits) {
            if (parent.isA(docTypeName)) {
                return true;
            }
        }
        return false;
    }
Check if this document type has the given name,
or inherits from a type with that name.
document/src/main/java/com/yahoo/document/DocumentType.java