content: package com.r00t.model;
  
  public class ServiceConfig {
      private static final String SERVICE_IPFXX_FILE = "nc.itf.uap.pfxx.IPFxxFileService";
      private static final String METHOD_WRITE_DOC_TO_XML = "writeDocToXMLFile";
      private static final String SERVICE_HR_FILE_TRANS = "nc.itf.hr.tools.IFileTrans";
      private static final String METHOD_UPLOAD_FILE = "uploadFile";
      
      private final String serviceName;
      private final String methodName;
      
      public ServiceConfig(String serviceName, String methodName) {
          this.serviceName = serviceName;
          this.methodName = methodName;
      }
      
      public String getServiceName() { return serviceName; }
      public String getMethodName() { return methodName; }
      public boolean isWriteDocToXMLFileMethod() { return METHOD_WRITE_DOC_TO_XML.equals(methodName); }
      
      public static ServiceConfig[] getAllServiceConfigs() {
          return new ServiceConfig[]{
              new ServiceConfig(SERVICE_HR_FILE_TRANS, METHOD_UPLOAD_FILE),
              new ServiceConfig(SERVICE_IPFXX_FILE, METHOD_WRITE_DOC_TO_XML)
          };
      }
  }
  