@Override public String[] getRequiredPrimaryTypeNames() { String[] names = getNames(JcrConstants.JCR_REQUIREDPRIMARYTYPES); if (names == null) { names = new String[] { JcrConstants.NT_BASE }; } for (int i = 0; i < names.length; i++) { names[i] = mapper.getJcrName(names[i]); } return names; }
@Override public String[] getRequiredPrimaryTypeNames() { String[] names = getNames(JcrConstants.JCR_REQUIREDPRIMARYTYPES); if (names == null) { names = new String[] { JcrConstants.NT_BASE }; } for (int i = 0; i < names.length; i++) { names[i] = mapper.getJcrName(names[i]); } return names; }
@Override public String[] getRequiredPrimaryTypeNames() { String[] names = getNames(JcrConstants.JCR_REQUIREDPRIMARYTYPES); if (names == null) { names = new String[] { JcrConstants.NT_BASE }; } for (int i = 0; i < names.length; i++) { names[i] = mapper.getJcrName(names[i]); } return names; }
@Override public NodeType[] getRequiredPrimaryTypes() { String[] oakNames = getNames(JcrConstants.JCR_REQUIREDPRIMARYTYPES); if (oakNames == null) { oakNames = new String[] { JcrConstants.NT_BASE }; } NodeType[] types = new NodeType[oakNames.length]; Tree root = definition.getParent(); while (!JCR_NODE_TYPES.equals(root.getName())) { root = root.getParent(); } for (int i = 0; i < oakNames.length; i++) { Tree type = root.getChild(oakNames[i]); checkState(type.exists()); types[i] = new NodeTypeImpl(type, mapper); } return types; }
@Override public NodeType[] getRequiredPrimaryTypes() { String[] oakNames = getNames(JcrConstants.JCR_REQUIREDPRIMARYTYPES); if (oakNames == null) { oakNames = new String[] { JcrConstants.NT_BASE }; } NodeType[] types = new NodeType[oakNames.length]; Tree root = definition.getParent(); while (!JCR_NODE_TYPES.equals(root.getName())) { root = root.getParent(); } for (int i = 0; i < oakNames.length; i++) { Tree type = root.getChild(oakNames[i]); checkState(type.exists()); types[i] = new NodeTypeImpl(type, mapper); } return types; }
@Override public NodeType[] getRequiredPrimaryTypes() { String[] oakNames = getNames(JcrConstants.JCR_REQUIREDPRIMARYTYPES); if (oakNames == null) { oakNames = new String[] { JcrConstants.NT_BASE }; } NodeType[] types = new NodeType[oakNames.length]; Tree root = definition.getParent(); while (!JCR_NODE_TYPES.equals(root.getName())) { root = root.getParent(); } for (int i = 0; i < oakNames.length; i++) { Tree type = root.getChild(oakNames[i]); checkState(type.exists()); types[i] = new NodeTypeImpl(type, mapper); } return types; }