com.thaiopensource.relaxng.output.xsd.basic.AttributeGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trang Show documentation
Show all versions of trang Show documentation
Trang, a multi-format schema converter based on RELAX NG.
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);
}
}