@NotNull @Override public Iterable<? extends PropertyState> getProperties() { return state.getProperties(); }
@Nonnull @Override public Iterable<? extends PropertyState> getProperties() { return state.getProperties(); }
@NotNull @Override public Iterable<? extends PropertyState> getProperties() { return modified.getProperties(); }
@NotNull @Override public Iterable<? extends PropertyState> getProperties() { return modified.getProperties(); }
@NotNull @Override public Iterable<? extends PropertyState> getProperties() { return Iterables.filter(delegate.getProperties(), NOT_META_PROPS); }
@NotNull @Override public Iterable<? extends PropertyState> getProperties() { return Iterables.filter(delegate.getProperties(), NOT_META_PROPS); }
@Override @NotNull public Iterable<? extends PropertyState> getProperties() { if (treePermission.canReadProperties()) { return state.getProperties(); } else { return filter( state.getProperties(), new ReadablePropertyPredicate()); } }
@Override @NotNull public Iterable<? extends PropertyState> getProperties() { if (treePermission.canReadProperties()) { return state.getProperties(); } else { return filter( state.getProperties(), new ReadablePropertyPredicate()); } }
@Override @Nonnull public Iterable<? extends PropertyState> getProperties() { if (treePermission.canReadProperties()) { return state.getProperties(); } else { return filter( state.getProperties(), new ReadablePropertyPredicate()); } }
private static void copyProps(NodeState state, Tree tree) { for (PropertyState ps : state.getProperties()){ if (!ps.getName().equals(OAK_CHILD_ORDER)){ tree.setProperty(ps); } } }
@NotNull @Override public Iterable<? extends PropertyState> getProperties() { return head().getCurrentNodeState().getProperties(); }
@Nonnull @Override public Iterable<? extends PropertyState> getProperties() { return head().getCurrentNodeState().getProperties(); }
private void addMembers(NodeState node) { for (PropertyState prop: node.getProperties()) { if (prop.getType() == Type.WEAKREFERENCE) { members.add(prop.getValue(Type.WEAKREFERENCE)); } } } }
private void addMembers(NodeState node) { for (PropertyState prop: node.getProperties()) { if (prop.getType() == Type.WEAKREFERENCE) { members.add(prop.getValue(Type.WEAKREFERENCE)); } } } }
@Override public Iterable<String> getAsyncLanes(NodeState root) { NodeState async = getAsyncState(root); Set<String> names = new HashSet<>(); for (PropertyState ps : async.getProperties()) { String name = ps.getName(); if (AsyncIndexUpdate.isAsyncLaneName(name)) { names.add(name); } } return names; }
@Override public Iterable<String> getAsyncLanes(NodeState root) { NodeState async = getAsyncState(root); Set<String> names = new HashSet<>(); for (PropertyState ps : async.getProperties()) { String name = ps.getName(); if (AsyncIndexUpdate.isAsyncLaneName(name)) { names.add(name); } } return names; }
@Override public Iterable<String> getAsyncLanes(NodeState root) { NodeState async = getAsyncState(root); Set<String> names = new HashSet<>(); for (PropertyState ps : async.getProperties()) { String name = ps.getName(); if (AsyncIndexUpdate.isAsyncLaneName(name)) { names.add(name); } } return names; }
protected final PropertyState chooseRandomProperty(NodeState node) { int count = (int) node.getPropertyCount(); if (count > 0) { return get(node.getProperties(), rnd.nextInt(count)); } else { return null; } } }
private static void removeDeletedChildProperties(NodeState state, BundlingContext childContext) { childContext.removeProperty(DocumentBundlor.META_PROP_BUNDLING_PATH); for (PropertyState ps : state.getProperties()){ String propName = ps.getName(); //In deletion never touch child status related meta props //as they are not to be changed once set if (!propName.startsWith(DocumentBundlor.HAS_CHILD_PROP_PREFIX)) { childContext.removeProperty(ps.getName()); } } }
private static void removeDeletedChildProperties(NodeState state, BundlingContext childContext) { childContext.removeProperty(DocumentBundlor.META_PROP_BUNDLING_PATH); for (PropertyState ps : state.getProperties()){ String propName = ps.getName(); //In deletion never touch child status related meta props //as they are not to be changed once set if (!propName.startsWith(DocumentBundlor.HAS_CHILD_PROP_PREFIX)) { childContext.removeProperty(ps.getName()); } } }