public NodeType getDeclaringNodeType()

in src/main/java/org/apache/sling/testing/mock/jcr/MockItemDefinition.java [43:53]


    public NodeType getDeclaringNodeType() {
        NodeType nt = null;
        if (ntMgr != null && this.declaringNodeTypeName != null) {
            try {
                nt = ntMgr.getNodeType(this.declaringNodeTypeName);
            } catch (RepositoryException e) {
                throw new RuntimeException("Getting declared node type failed.", e);
            }
        }
        return nt;
    }