public SelectorImpl(NodeTypeInfo nodeTypeInfo, String selectorName) { this.nodeTypeInfo = checkNotNull(nodeTypeInfo); this.selectorName = checkNotNull(selectorName); this.nodeTypeName = nodeTypeInfo.getNodeTypeName(); this.matchesAllTypes = NT_BASE.equals(nodeTypeName); if (!this.matchesAllTypes) { this.supertypes = nodeTypeInfo.getSuperTypes(); supertypes.add(nodeTypeName); this.primaryTypes = nodeTypeInfo.getPrimarySubTypes(); this.mixinTypes = nodeTypeInfo.getMixinSubTypes(); if (nodeTypeInfo.isMixin()) { mixinTypes.add(nodeTypeName); } else { primaryTypes.add(nodeTypeName); } } else { this.supertypes = ImmutableSet.of(); this.primaryTypes = ImmutableSet.of(); this.mixinTypes = ImmutableSet.of(); } }
public Iterable<String> getWildcardColumns() { return nodeTypeInfo.getNamesSingleValuesProperties(); }
private SelectorImpl parseSelector() throws ParseException { String nodeTypeName = readName(); if (namePathMapper != null) { try { nodeTypeName = namePathMapper.getOakName(nodeTypeName); } catch (RepositoryException e) { ParseException e2 = getSyntaxError("could not convert node type name " + nodeTypeName); e2.initCause(e); throw e2; } } NodeTypeInfo nodeTypeInfo = nodeTypes.getNodeTypeInfo(nodeTypeName); if (!nodeTypeInfo.exists()) { throw getSyntaxError("unknown node type"); } String selectorName = nodeTypeName; if (readIf("AS")) { selectorName = readName(); } return factory.selector(nodeTypeInfo, selectorName); }
private SelectorImpl parseSelector() throws ParseException { String nodeTypeName = readName(); if (namePathMapper != null) { try { nodeTypeName = namePathMapper.getOakName(nodeTypeName); } catch (RepositoryException e) { ParseException e2 = getSyntaxError("could not convert node type name " + nodeTypeName); e2.initCause(e); throw e2; } } NodeTypeInfo nodeTypeInfo = nodeTypes.getNodeTypeInfo(nodeTypeName); if (!nodeTypeInfo.exists()) { throw getSyntaxError("unknown node type"); } String selectorName = nodeTypeName; if (readIf("AS")) { selectorName = readName(); } return factory.selector(nodeTypeInfo, selectorName); }
public SelectorImpl(NodeTypeInfo nodeTypeInfo, String selectorName) { this.nodeTypeInfo = checkNotNull(nodeTypeInfo); this.selectorName = checkNotNull(selectorName); this.nodeTypeName = nodeTypeInfo.getNodeTypeName(); this.matchesAllTypes = NT_BASE.equals(nodeTypeName); if (!this.matchesAllTypes) { this.supertypes = nodeTypeInfo.getSuperTypes(); supertypes.add(nodeTypeName); this.primaryTypes = nodeTypeInfo.getPrimarySubTypes(); this.mixinTypes = nodeTypeInfo.getMixinSubTypes(); if (nodeTypeInfo.isMixin()) { mixinTypes.add(nodeTypeName); } else { primaryTypes.add(nodeTypeName); } } else { this.supertypes = ImmutableSet.of(); this.primaryTypes = ImmutableSet.of(); this.mixinTypes = ImmutableSet.of(); } }
public Iterable<String> getWildcardColumns() { return nodeTypeInfo.getNamesSingleValuesProperties(); }
private SelectorImpl parseSelector() throws ParseException { String nodeTypeName = readName(); if (namePathMapper != null) { try { nodeTypeName = namePathMapper.getOakName(nodeTypeName); } catch (RepositoryException e) { ParseException e2 = getSyntaxError("could not convert node type name " + nodeTypeName); e2.initCause(e); throw e2; } } NodeTypeInfo nodeTypeInfo = nodeTypes.getNodeTypeInfo(nodeTypeName); if (!nodeTypeInfo.exists()) { throw getSyntaxError("unknown node type"); } String selectorName = nodeTypeName; if (readIf("AS")) { selectorName = readName(); } return factory.selector(nodeTypeInfo, selectorName); }
public SelectorImpl(NodeTypeInfo nodeTypeInfo, String selectorName) { this.nodeTypeInfo = checkNotNull(nodeTypeInfo); this.selectorName = checkNotNull(selectorName); this.nodeTypeName = nodeTypeInfo.getNodeTypeName(); this.matchesAllTypes = NT_BASE.equals(nodeTypeName); if (!this.matchesAllTypes) { this.supertypes = nodeTypeInfo.getSuperTypes(); supertypes.add(nodeTypeName); this.primaryTypes = nodeTypeInfo.getPrimarySubTypes(); this.mixinTypes = nodeTypeInfo.getMixinSubTypes(); if (nodeTypeInfo.isMixin()) { mixinTypes.add(nodeTypeName); } else { primaryTypes.add(nodeTypeName); } } else { this.supertypes = ImmutableSet.of(); this.primaryTypes = ImmutableSet.of(); this.mixinTypes = ImmutableSet.of(); } }
public Iterable<String> getWildcardColumns() { return nodeTypeInfo.getNamesSingleValuesProperties(); }