All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thaiopensource.relaxng.output.xsd.basic.AttributeGroup Maven / Gradle / Ivy

There is a newer version: 20220510
Show newest version
package com.thaiopensource.relaxng.output.xsd.basic;

import com.thaiopensource.relaxng.edit.SourceLocation;

import java.util.List;
import java.util.Collections;

public class AttributeGroup extends AttributeUse {
  private final List children;
  private static final List EMPTY_LIST = Collections.emptyList();

  public static final AttributeGroup EMPTY = new AttributeGroup(null, null, EMPTY_LIST);

  public AttributeGroup(SourceLocation location, Annotation annotation, List children) {
    super(location, annotation);
    this.children = Collections.unmodifiableList(children);
  }

  public List getChildren() {
    return children;
  }

  public boolean equals(Object obj) {
    return super.equals(obj) && ((AttributeGroup)obj).children.equals(children);
  }

  public int hashCode() {
    return super.hashCode() ^ children.hashCode();
  }

  public  T accept(AttributeUseVisitor visitor) {
    return visitor.visitAttributeGroup(this);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy