org.kohsuke.rngom.nc.AnyNameExceptNameClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxb-xjc Show documentation
Show all versions of jaxb-xjc Show documentation
Old JAXB Binding Compiler. Contains source code needed for binding customization files into java sources.
In other words: the *tool* to generate java classes for the given xml representation.
package org.kohsuke.rngom.nc;
import javax.xml.namespace.QName;
public class AnyNameExceptNameClass extends NameClass {
private final NameClass nameClass;
public AnyNameExceptNameClass(NameClass nameClass) {
this.nameClass = nameClass;
}
public boolean contains(QName name) {
return !nameClass.contains(name);
}
public int containsSpecificity(QName name) {
return contains(name) ? SPECIFICITY_ANY_NAME : SPECIFICITY_NONE;
}
public boolean equals(Object obj) {
if (obj == null || !(obj instanceof AnyNameExceptNameClass))
return false;
return nameClass.equals(((AnyNameExceptNameClass) obj).nameClass);
}
public int hashCode() {
return ~nameClass.hashCode();
}
public V accept(NameClassVisitor visitor) {
return visitor.visitAnyNameExcept(nameClass);
}
public boolean isOpen() {
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy