@Test public void showVisible() { root.getChild("child1").setVisibility(false); root.getChild("child2").setVisibility(new Visibility(Status.SYSTEM)); root.getChild("child3").setVisibility(PublicationDate.endingOn(new Date(System.currentTimeMillis() - 1000))); filtered = root.filter().showVisible(); assertIterator(filtered.iterator(), "child0", "child4"); }
@Override public FilteredNode showVisible() { return show(new VisibleFilter()); }
ApiFilteredNode extends ApiNode implements FilteredNode { @Override public FilteredNode showVisible() { return show(new VisibleFilter()); } }
ApiFilteredNode extends ApiNode implements FilteredNode { @Override public FilteredNode showVisible() { return show(new VisibleFilter()); } @SuppressWarnings("unchecked")  ApiFilteredNode(NavigationImpl navigation, NodeContext<ApiNode> context); private  ApiFilteredNode(NavigationImpl navigation, NodeContext<ApiNode> context, FilteredNodeMap map); }
ApiFilteredNode extends ApiNode implements FilteredNode { @Override public FilteredNode showVisible() { return show(new VisibleFilter()); } @SuppressWarnings("unchecked")  ApiFilteredNode(NavigationImpl navigation, NodeContext<ApiNode> context); private  ApiFilteredNode(NavigationImpl navigation, NodeContext<ApiNode> context, FilteredNodeMap map); @Override Node addChild(int index, String childName); @Override Node addChild(String childName); @Override Node getChild(int index); @Override Node getChild(String childName); @Override int getChildCount(); @Override Node getNode(NodePath nodePath); @Override Node getParent(); @Override boolean hasChild(String childName); @Override int indexOf(String childName); @Override Iterator<Node> iterator(); @Override void moveTo(int index); @Override void moveTo(int index, Node parent); @Override @SuppressWarnings("unchecked") FilteredNode showAll(); @Override FilteredNode showDefault(); @Override FilteredNode showHasAccess(User user); FilteredNode showHasEdit(User user); @Override FilteredNode showVisible(); @Override FilteredNode show(Filter<Node> filter); }
ApiFilteredNode extends ApiNode implements FilteredNode { @Override public FilteredNode showVisible() { return show(new VisibleFilter()); } @SuppressWarnings("unchecked")  ApiFilteredNode(NavigationImpl navigation, NodeContext<ApiNode> context); private  ApiFilteredNode(NavigationImpl navigation, NodeContext<ApiNode> context, FilteredNodeMap map); @Override Node addChild(int index, String childName); @Override Node addChild(String childName); @Override Node getChild(int index); @Override Node getChild(String childName); @Override int getChildCount(); @Override Node getNode(NodePath nodePath); @Override Node getParent(); @Override boolean hasChild(String childName); @Override int indexOf(String childName); @Override Iterator<Node> iterator(); @Override void moveTo(int index); @Override void moveTo(int index, Node parent); @Override @SuppressWarnings("unchecked") FilteredNode showAll(); @Override FilteredNode showDefault(); @Override FilteredNode showHasAccess(User user); FilteredNode showHasEdit(User user); @Override FilteredNode showVisible(); @Override FilteredNode show(Filter<Node> filter);  }