com.thaiopensource.relaxng.output.xsd.basic.AttributeGroupRef 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
Jing/Trang - tools for validating and translating RelaxNG
The newest version!
package com.thaiopensource.relaxng.output.xsd.basic;
import com.thaiopensource.relaxng.edit.SourceLocation;
public class AttributeGroupRef extends AttributeUse {
private final String name;
public AttributeGroupRef(SourceLocation location, Annotation annotation, String name) {
super(location, annotation);
this.name = name;
}
public String getName() {
return name;
}
public T accept(AttributeUseVisitor visitor) {
return visitor.visitAttributeGroupRef(this);
}
public boolean equals(Object obj) {
return super.equals(obj) && ((AttributeGroupRef)obj).name.equals(name);
}
public int hashCode() {
return super.hashCode() ^ name.hashCode();
}
}