コード例 #1
0
ファイル: AliasedResource.java プロジェクト: jiajp/opennms
  /** {@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);
  }
コード例 #2
0
 /**
  * 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);
 }