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

org.kohsuke.rngom.nc.NameClassWalker 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;

/**
 * @author Kohsuke Kawaguchi
 */
public class NameClassWalker implements NameClassVisitor {

    public Void visitChoice(NameClass nc1, NameClass nc2) {
        nc1.accept(this);
        return nc2.accept(this);
    }

    public Void visitNsName(String ns) {
        return null;
    }

    public Void visitNsNameExcept(String ns, NameClass nc) {
        return nc.accept(this);
    }

    public Void visitAnyName() {
        return null;
    }

    public Void visitAnyNameExcept(NameClass nc) {
        return nc.accept(this);
    }

    public Void visitName(QName name) {
        return null;
    }

    public Void visitNull() {
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy