public String toString() { StringBuilder builder = new StringBuilder(); builder.append("XmlFile"); if (getInputVariablesName() != null) { builder.append(".inputVariable(" + getInputVariablesName() + ")"); } if (xpathString != null) { builder.append(".matches(" + xpathString + ")"); } if (fileNamePattern != null) { builder.append(".inFile(" + fileNamePattern.toString() + ")"); } if (publicId != null) { builder.append(".withDTDPublicId(" + publicId + ")"); } builder.append(".as(" + getInputVariablesName() + ")"); return builder.toString(); }
private Iterable<? extends WindupVertexFrame> getStartingVertices(GraphRewrite event,GraphContext graphContext) { GraphService<XmlFileModel> xmlResourceService = new GraphService<>(graphContext, XmlFileModel.class); Iterable<? extends WindupVertexFrame> allXmls; if (getInputVariablesName() == null || getInputVariablesName().isEmpty()) { allXmls = xmlResourceService.findAll(); } else { allXmls = Variables.instance(event).findVariable(getInputVariablesName()); } return allXmls; }
public String toString() { StringBuilder builder = new StringBuilder(); builder.append("XmlFile"); if (getInputVariablesName() != null) { builder.append(".inputVariable(" + getInputVariablesName() + ")"); } if (xpathValidator.getXpathString() != null) { builder.append(".matches(" + xpathValidator.getXpathString() + ")"); } if (fileNameValidator.getFileNamePattern() != null) { builder.append(".inFile(" + fileNameValidator.getFileNamePattern().toString() + ")"); } if (dtdValidator.getPublicId() != null) { builder.append(".withDTDPublicId(" + dtdValidator.getPublicId() + ")"); } builder.append(".as(" + getOutputVariablesName() + ")"); return builder.toString(); }
XmlFileModel.class); Iterable<? extends WindupVertexFrame> allXmls; if (getInputVariablesName() == null || getInputVariablesName().equals("")) allXmls = Variables.instance(event).findVariable(getInputVariablesName());