/** * By providing an empty relative path, one can retrieve the attachment of the root entity. * @param path the path to the entity in the inventory structure * @return the object attached to the entity by the inventory structure builder or null if the path is not known */ default FullNode getNode(RelativePath path) { Entity.Blueprint bl = get(path); return bl == null ? null : new FullNode(bl, null); }
Blueprint newState = newStructure.get(newTree.getPath()); Entity.Update entityUpdate = updateFromBlueprint(newState);
/** * By providing an empty relative path, one can retrieve the attachment of the root entity. * @param path the path to the entity in the inventory structure * @return the object attached to the entity by the inventory structure builder or null if the path is not known */ default FullNode getNode(RelativePath path) { Entity.Blueprint bl = get(path); return bl == null ? null : new FullNode(bl, null); }
private DataEntity.Blueprint<?> getData(RelativePath.Extender parentPath, DataRole dataRole) { Blueprint b = structure.get(parentPath.extend(SegmentType.d, dataRole.name()).get()); return b == null ? dummyDataBlueprint(dataRole) : (DataEntity.Blueprint<?>) b; }
ResolvableToSingle<?, ?> parentAccess = inv.inspect(childCp.up(), ResolvableToSingle.class); Blueprint blueprint = newStructure.get(tree.getPath());