![JAR search and dependency download from the Maven repository](/logo.png)
com.thaiopensource.relaxng.impl.ApplyAfterFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jing Show documentation
Show all versions of jing Show documentation
A branch of Jing used by the Nu Html Checker. (Jing is a tool for validating documents against RelaxNG schemas.)
The newest version!
package com.thaiopensource.relaxng.impl;
abstract class ApplyAfterFunction extends AbstractPatternFunction {
private final ValidatorPatternBuilder builder;
ApplyAfterFunction(ValidatorPatternBuilder builder) {
this.builder = builder;
}
public Object caseAfter(AfterPattern p) {
return builder.makeAfter(p.getOperand1(), apply(p.getOperand2()));
}
public Object caseChoice(ChoicePattern p) {
return builder.makeChoice(p.getOperand1().applyForPattern(this),
p.getOperand2().applyForPattern(this));
}
public Object caseNotAllowed(NotAllowedPattern p) {
return p;
}
public Object caseOther(Pattern p) {
throw new RuntimeException("apply after botch");
}
abstract Pattern apply(Pattern p);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy