/** * This method converts the service function info to a DataObject * * @return FunctionDescription object converted to a <FUNCTION> DataObject */ public DataObject toDataObject() { DataObjects v = new DataObjects(); v.addElement(new DataObject(FUNCTION_NAME, name)); v.addElement(new DataObject(FUNCTION_DESCRIPTION, description)); if (attributes != null) { v.addElement(attributes.toDataObject()); } v.addElement(new DataObject(FUNCTION_SYNCHRONICITY, synchronicity)); return new DataObject(FUNCTION, v); }
/** * This method converts the Callback object to a DataObject * * @return Callback object converted to a <CALLBACK> DataObject */ public DataObject toDataObject() { DataObjects v = new DataObjects(); v.addElement(new DataObject(CALLBACK_NAME, name)); v.addElement(attributes.toDataObject()); return new DataObject(CALLBACK, v); }