Exemplo n.º 1
0
 public void loadXML(Node entrynode, ArrayList databases) throws KettleXMLException {
   try {
     setName(XMLHandler.getTagValue(entrynode, "name"));
     setDescription(XMLHandler.getTagValue(entrynode, "description"));
     String stype = XMLHandler.getTagValue(entrynode, "type");
     setType(JobEntryCopy.getType(stype));
   } catch (Exception e) {
     throw new KettleXMLException("Unable to load base info for job entry", e);
   }
 }
Exemplo n.º 2
0
  public String getXML() {
    StringBuffer retval = new StringBuffer();
    retval.append("      ").append(XMLHandler.addTagValue("name", getName()));
    retval.append("      ").append(XMLHandler.addTagValue("description", getDescription()));
    if (type != JobEntryInterface.TYPE_JOBENTRY_NONE)
      retval.append("      ").append(XMLHandler.addTagValue("type", getTypeCode()));
    if (pluginID != null) retval.append("      ").append(XMLHandler.addTagValue("type", pluginID));

    return retval.toString();
  }
Exemplo n.º 3
0
  public String getXML() {
    StringBuffer retval = new StringBuffer();

    retval.append(super.getXML());
    retval.append("      ").append(XMLHandler.addTagValue("message", messageabort));

    return retval.toString();
  }
Exemplo n.º 4
0
 public void loadXML(Node entrynode, ArrayList databases, Repository rep)
     throws KettleXMLException {
   try {
     super.loadXML(entrynode, databases);
     messageabort = XMLHandler.getTagValue(entrynode, "message");
   } catch (Exception e) {
     throw new KettleXMLException("Unable to load job entry of type 'Abort' from XML node", e);
   }
 }
 public FormulaMetaFunction(Node calcnode) {
   fieldName = XMLHandler.getTagValue(calcnode, "field_name");
   formula = XMLHandler.getTagValue(calcnode, "formula_string");
   valueType = Value.getType(XMLHandler.getTagValue(calcnode, "value_type"));
   valueLength = Const.toInt(XMLHandler.getTagValue(calcnode, "value_length"), -1);
   valuePrecision = Const.toInt(XMLHandler.getTagValue(calcnode, "value_precision"), -1);
   removedFromResult = "Y".equalsIgnoreCase(XMLHandler.getTagValue(calcnode, "remove"));
 }
  public String getXML() {
    String xml = "";

    xml += "<" + XML_TAG + ">";

    xml += XMLHandler.addTagValue("field_name", fieldName);
    xml += XMLHandler.addTagValue("formula_string", formula);
    xml += XMLHandler.addTagValue("value_type", Value.getTypeDesc(valueType));
    xml += XMLHandler.addTagValue("value_length", valueLength);
    xml += XMLHandler.addTagValue("value_precision", valuePrecision);
    xml += XMLHandler.addTagValue("remove", removedFromResult);

    xml += "</" + XML_TAG + ">";

    return xml;
  }