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

org.kohsuke.rngom.nc.AnyNameClass Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.5
Show newest version
package org.kohsuke.rngom.nc;

import javax.xml.namespace.QName;

final class AnyNameClass extends NameClass {
    
    protected AnyNameClass() {} // no instanciation
    
    public boolean contains(QName name) {
        return true;
    }

    public int containsSpecificity(QName name) {
        return SPECIFICITY_ANY_NAME;
    }

    public boolean equals(Object obj) {
        return obj==this;
    }

    public int hashCode() {
        return AnyNameClass.class.hashCode();
    }

    public  V accept(NameClassVisitor visitor) {
        return visitor.visitAnyName();
    }

    public boolean isOpen() {
        return true;
    }
    
    private static Object readReplace() {
        return NameClass.ANY;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy