Example #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);
   }
 }
 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"));
 }