com.alachisoft.ncache.licensing.config.ProductInfo Maven / Gradle / Ivy
// Licensed under the Apache License, Version 2.0 (the "License");
package com.alachisoft.ncache.licensing.config;
import com.alachisoft.ncache.ncactivate.utils.RegKeys;
public class ProductInfo {
private String privateDotNetInstallMode,
privateHttpPort,
privateInstallCode,
privateInstallDir,
privateLastReportTime,
privatePlatform,
privateSPVersion,
privateTcpPort,
privateJavaHome,
privateDotNetCoreHome;
public final String getDotNetInstallMode() {
return privateDotNetInstallMode;
}
public final void setDotNetInstallMode(String value) {
privateDotNetInstallMode = value;
}
public final String getHttpPort() {
return privateHttpPort;
}
public final void setHttpPort(String value) {
privateHttpPort = value;
}
public final String getInstallCode() {
return privateInstallCode;
}
public final void setInstallCode(String value) {
privateInstallCode = value;
}
public final String getInstallDir() {
return privateInstallDir;
}
public final void setInstallDir(String value) {
privateInstallDir = value;
}
public final String getLastReportTime() {
return privateLastReportTime;
}
public final void setLastReportTime(String value) {
privateLastReportTime = value;
}
public final String getPlatform() {
return privatePlatform;
}
public final void setPlatform(String value) {
privatePlatform = value;
}
public final String getSPVersion() {
return privateSPVersion;
}
public final void setSPVersion(String value) {
privateSPVersion = value;
}
public final String getTcpPort() {
return privateTcpPort;
}
public final void setTcpPort(String value) {
privateTcpPort = value;
}
public final String getJavaHome() {
return privateJavaHome;
}
public final void setJavaHome(String value) {
privateJavaHome = value;
}
public final String getDotNetCoreHome() {
return privateDotNetCoreHome;
}
public final void setDotNetCoreHome(String value) {
privateDotNetCoreHome = value;
}
public final String ToXml() {
String xml = "";
xml += "";
xml += getInstallCode();
xml += " ";
xml += "";
xml += getInstallDir();
xml += " ";
xml += "";
xml += getJavaHome();
xml += " ";
xml += "";
xml += getDotNetCoreHome();
xml += " ";
xml += "";
xml += getLastReportTime();
xml += " ";
xml += "";
xml += getPlatform();
xml += " ";
xml += "";
xml += getSPVersion();
xml += " ";
xml += "";
xml += getTcpPort();
xml += " ";
xml += " ";
return xml;
}
public String getValue(RegKeys RegKey) {
switch (RegKey) {
case InstallMode:
return getDotNetInstallMode();
case HttpPort:
return getHttpPort();
case InstallCode:
return getInstallCode();
case InstallDir:
return getInstallCode();
case LastReportTiem:
return getLastReportTime();
case PlatForm:
return getPlatform();
case SpVersion:
return getSPVersion();
case TcpPort:
return getTcpPort();
case JavaHome:
return getJavaHome();
case DotNetCoreHome:
return getDotNetCoreHome();
default:
return "";
}
}
public void setValue(RegKeys regKey, String value) {
switch (regKey) {
case InstallMode:
setDotNetInstallMode(value);
case HttpPort:
setHttpPort(value);
case InstallCode:
setInstallCode(value);
case InstallDir:
setInstallCode(value);
case LastReportTiem:
setLastReportTime(value);
case PlatForm:
setPlatform(value);
case SpVersion:
setSPVersion(value);
case TcpPort:
setTcpPort(value);
case JavaHome:
setJavaHome(value);
case DotNetCoreHome:
setDotNetCoreHome(value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy