@Test public void testGetOptions() { Configuration config = new BaseConfiguration(); String creator = "KNAV"; config.addProperty(NdkExportOptions.PROP_NDK_AGENT_CREATOR, creator); String archivist = "ProArc"; config.addProperty(NdkExportOptions.PROP_NDK_AGENT_ARCHIVIST, archivist); NdkExportOptions result = NdkExportOptions.getOptions(config); assertEquals("creator", creator, result.getCreator()); assertEquals("archivist", archivist, result.getArchivist()); }
public static NdkExportOptions getOptions(Configuration config) { NdkExportOptions options = new NdkExportOptions(); String creator = config.getString(PROP_NDK_AGENT_CREATOR); if (creator != null && !creator.isEmpty()) { options.setCreator(creator); } String archivist = config.getString(PROP_NDK_AGENT_ARCHIVIST); if (archivist != null && !archivist.isEmpty()) { options.setArchivist(archivist); } String version = config.getString(PROP_PROARC_VERSION); if (version != null && !version.isEmpty()) { options.setVersion(version); } return options; }
NdkExportOptions { public static NdkExportOptions getOptions(Configuration config) { NdkExportOptions options = new NdkExportOptions(); String creator = config.getString(PROP_NDK_AGENT_CREATOR); if (creator != null && !creator.isEmpty()) { options.setCreator(creator); } String archivist = config.getString(PROP_NDK_AGENT_ARCHIVIST); if (archivist != null && !archivist.isEmpty()) { options.setArchivist(archivist); } String version = config.getString(PROP_PROARC_VERSION); if (version != null && !version.isEmpty()) { options.setVersion(version); } return options; } }
NdkExportOptions { public static NdkExportOptions getOptions(Configuration config) { NdkExportOptions options = new NdkExportOptions(); String creator = config.getString(PROP_NDK_AGENT_CREATOR); if (creator != null && !creator.isEmpty()) { options.setCreator(creator); } String archivist = config.getString(PROP_NDK_AGENT_ARCHIVIST); if (archivist != null && !archivist.isEmpty()) { options.setArchivist(archivist); } String version = config.getString(PROP_PROARC_VERSION); if (version != null && !version.isEmpty()) { options.setVersion(version); } return options; }  }
NdkExportOptions { public static NdkExportOptions getOptions(Configuration config) { NdkExportOptions options = new NdkExportOptions(); String creator = config.getString(PROP_NDK_AGENT_CREATOR); if (creator != null && !creator.isEmpty()) { options.setCreator(creator); } String archivist = config.getString(PROP_NDK_AGENT_ARCHIVIST); if (archivist != null && !archivist.isEmpty()) { options.setArchivist(archivist); } String version = config.getString(PROP_PROARC_VERSION); if (version != null && !version.isEmpty()) { options.setVersion(version); } return options; }  static NdkExportOptions getOptions(Configuration config); String getCreator(); void setCreator(String creator); String getArchivist(); void setArchivist(String archivist); String getVersion(); void setVersion(String version); }
NdkExportOptions { public static NdkExportOptions getOptions(Configuration config) { NdkExportOptions options = new NdkExportOptions(); String creator = config.getString(PROP_NDK_AGENT_CREATOR); if (creator != null && !creator.isEmpty()) { options.setCreator(creator); } String archivist = config.getString(PROP_NDK_AGENT_ARCHIVIST); if (archivist != null && !archivist.isEmpty()) { options.setArchivist(archivist); } String version = config.getString(PROP_PROARC_VERSION); if (version != null && !version.isEmpty()) { options.setVersion(version); } return options; }  static NdkExportOptions getOptions(Configuration config); String getCreator(); void setCreator(String creator); String getArchivist(); void setArchivist(String archivist); String getVersion(); void setVersion(String version);  }