public NodeType getNodeType()

in src/main/java/org/apache/sling/testing/mock/jcr/MockNodeTypeManager.java [73:88]


    public NodeType getNodeType(String nodeTypeName) throws RepositoryException {
        NodeType nt = null;
        if (ResolveMode.MOCK_ALL.equals(this.mode)) {
            // accept all node types and return a mock
            nt = new MockNodeType(nodeTypeName, this);
        } else {
            if (registeredNTs.containsKey(nodeTypeName)) {
                nt = registeredNTs.get(nodeTypeName);
            }
        }

        if (nt == null) {
            throw new NoSuchNodeTypeException(String.format(NODETYPE_DOES_NOT_EXISTS, nodeTypeName));
        }
        return nt;
    }