/** * Create a new {@link XmlFile} that matches on the provided DTD id regular expression. */ public static XmlFileDTD withDTDPublicId(String publicIdRegex) { XmlFile xmlFile = new XmlFile(); xmlFile.publicId = publicIdRegex; return xmlFile; }
@Override protected String getVarname() { return getOutputVariablesName(); }
XmlFileFrom(String variable) { this.xmlFile = new XmlFile(); xmlFile.setInputVariablesName(variable); }
/** * Create a new {@link XmlFile} that matches on the provided DTD namespace. */ public static XmlFileDTD withDTDSystemId(String dtdNamespace) { XmlFile xmlFile = new XmlFile(); xmlFile.dtdValidator.setSystemId(dtdNamespace); return xmlFile; }
/** * Set the xpath of this {@link XmlFile}. */ public XmlFileXpath matchesXpath(String xpath) { this.xmlFile.setXpath(xpath); return this.xmlFile; }
/** * Specify the name of the variables to base this query on. * * @param fromVariable * @return */ public static XmlFileFrom from(String fromVariable) { return new XmlFileFrom(fromVariable); }
public XmlFile resultMatches(String regex) { this.xmlFile.setXpathResultMatch(regex); return this.xmlFile; } }
@Override public void modelSubmitted(WindupVertexFrame model) { Maps.addListValue(this.variables, getVarname(), model); }
/** * Output the results using the provided variable name. */ public ConditionBuilder as(String variable) { Assert.notNull(variable, "Variable name must not be null."); this.setOutputVariablesName(variable); return this; }
public XmlFileDTD withDTDPublicId(String regex) { this.xmlFile.setPublicId(regex); return this.xmlFile; }
public XmlFileDTD withDTDPublicId(String regex) { this.xmlFile.andDTDPublicId(regex); return this.xmlFile; }
XmlFileFrom(String variable) { this.xmlFile = new XmlFile(); xmlFile.setInputVariablesName(variable); }
private XmlFile(String xpath) { this(); setXpath(xpath); }
/** * Create a new {@link XmlFile} {@link Condition}. */ public static XmlFileXpath matchesXpath(String xpath) { return new XmlFile(xpath); }
@Override protected String getVarname() { return getOutputVariablesName(); }
/** * Specify the name of the variables to base this query on. * * @param fromVariable * @return */ public static XmlFileFrom from(String fromVariable) { return new XmlFileFrom(fromVariable); }
public XmlFile resultMatches(String regex) { this.xmlFile.setXpathResultMatch(regex); return this.xmlFile; } }
/** * Set the xpath of this {@link XmlFile}. */ public XmlFileXpath matchesXpath(String xpath) { this.xmlFile.setXpath(xpath); return this.xmlFile; }
/** * Create a new {@link XmlFile} {@link Condition}. */ public static XmlFileXpath matchesXpath(String xpath) { return new XmlFile(xpath); }
private XmlFile(String xpath) { setXpath(xpath); }