public SubgraphNode getNode( Location location ) { if (!location.hasPath()) return null; Location actualLocation = request.getLocationFor(location.getPath()); if (actualLocation == null) return null; return new SubgraphNodeImpl(actualLocation, request); }
public SubgraphNode getNode( Path path ) { path = getAbsolutePath(path); if (!includes(path)) return null; Location location = request.getLocationFor(path); if (location == null) return null; return new SubgraphNodeImpl(location, request); }
public SubgraphNode getNode( String childName ) { Path path = getContext().getValueFactories().getPathFactory().create(location.getPath(), childName); Location location = request.getLocationFor(path); if (location == null) return null; return new SubgraphNodeImpl(location, request); }
public SubgraphNode getNode( Name childName ) { Path path = getContext().getValueFactories().getPathFactory().create(location.getPath(), childName); Location location = request.getLocationFor(path); if (location == null) return null; return new SubgraphNodeImpl(location, request); }
public SubgraphNode getNode( Segment childSegment ) { Path path = getContext().getValueFactories().getPathFactory().create(location.getPath(), childSegment); path = path.getNormalizedPath(); Location location = request.getLocationFor(path); if (location == null) return null; return new SubgraphNodeImpl(location, request); }
public SubgraphNode getNode( Path relativePath ) { Path path = getContext().getValueFactories().getPathFactory().create(location.getPath(), relativePath); path = path.getNormalizedPath(); Location location = request.getLocationFor(path); if (location == null) return null; return new SubgraphNodeImpl(location, request); }
Path path = location.getPath(); Path parentPath = path.getParent(); Location parent = readSubgraph.getLocationFor(parentPath); if (parent == null) { parent = locationsByPath.get(parentPath);