/** {@inheritDoc} */ @Override public void visit(CollectionSetVisitor visitor) { visitor.visitResource(this); for (Iterator<AttributeGroup> it = getGroups().iterator(); it.hasNext(); ) { AttributeGroup aliased = new AliasedGroup(this, it.next()); aliased.visit(visitor); } visitor.completeResource(this); }
/** * Since a {@link CollectionAttribute} is a terminal value, we just visit and complete it since it * doesn't have any "children". */ @Override public final void visit(CollectionSetVisitor visitor) { LOG.debug("Visiting attribute {}", this); visitor.visitAttribute(this); visitor.completeAttribute(this); }