public boolean isType()

in core/src/main/java/org/apache/sling/cms/core/internal/models/ComponentImpl.java [194:205]


    public boolean isType(String type) {
        boolean isType = false;
        if (this.getComponentType() != null && ArrayUtils.contains(this.getComponentType(), type)) {
            isType = true;
            for (String t : getComponentType()) {
                if (StringUtils.isNotBlank(t) && !type.equals(t)) {
                    isType = false;
                }
            }
        }
        return isType;
    }