org.kohsuke.rngom.digested.DChoicePattern 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.digested;
/**
* <choice> pattern.
*
* @author Kohsuke Kawaguchi ([email protected])
*/
public class DChoicePattern extends DContainerPattern {
public boolean isNullable() {
for( DPattern p=firstChild(); p!=null; p=p.next )
if(p.isNullable())
return true;
return false;
}
public V accept( DPatternVisitor visitor ) {
return visitor.onChoice(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy