public String toString() { return toString(""); }
/** * Get a named DefineFunction. Returns a deep copy of the function. * * @param functionName the name of the function to get * @return the named function or null if it cannot be found * @throws Exception if there is a problem deep copying the function */ protected DefineFunction getFunction(String functionName) throws Exception { DefineFunction copy = null; DefineFunction match = null; for (DefineFunction f : m_defineFunctions) { if (f.getName().equals(functionName)) { match = f; // System.err.println("Found a match!!!"); break; } } if (match != null) { SerializedObject so = new SerializedObject(match, false); copy = (DefineFunction) so.getObject(); // System.err.println(copy); } return copy; }
DefineFunction defF = new DefineFunction((Element) child, null); m_defineFunctions.add(defF);
m_defineFunctions.get(i).pushParameterDefs();
/** * Get a named DefineFunction. Returns a deep copy of the function. * * @param functionName the name of the function to get * @return the named function or null if it cannot be found * @throws Exception if there is a problem deep copying the function */ protected DefineFunction getFunction(String functionName) throws Exception { DefineFunction copy = null; DefineFunction match = null; for (DefineFunction f : m_defineFunctions) { if (f.getName().equals(functionName)) { match = f; // System.err.println("Found a match!!!"); break; } } if (match != null) { SerializedObject so = new SerializedObject(match, false); copy = (DefineFunction) so.getObject(); // System.err.println(copy); } return copy; }
DefineFunction defF = new DefineFunction((Element) child, null); m_defineFunctions.add(defF);
m_defineFunctions.get(i).pushParameterDefs();
public String toString() { return toString(""); }
@Override public String toString() { StringBuffer buff = new StringBuffer(); buff.append("Transformation dictionary:\n"); if (m_derivedFields.size() > 0) { buff.append("derived fields:\n"); for (DerivedFieldMetaInfo d : m_derivedFields) { buff.append("" + d.getFieldAsAttribute() + "\n"); } } if (m_defineFunctions.size() > 0) { buff.append("\nfunctions:\n"); for (DefineFunction f : m_defineFunctions) { buff.append(f.toString(" ") + "\n"); } } buff.append("\n"); return buff.toString(); } }
@Override public String toString() { StringBuffer buff = new StringBuffer(); buff.append("Transformation dictionary:\n"); if (m_derivedFields.size() > 0) { buff.append("derived fields:\n"); for (DerivedFieldMetaInfo d : m_derivedFields) { buff.append("" + d.getFieldAsAttribute() + "\n"); } } if (m_defineFunctions.size() > 0) { buff.append("\nfunctions:\n"); for (DefineFunction f : m_defineFunctions) { buff.append(f.toString(" ") + "\n"); } } buff.append("\n"); return buff.toString(); } }