net.proxy.sunproxy
Class ConfigProperties.JREInformation

java.lang.Object
  extended by net.proxy.sunproxy.ConfigProperties.JREInformation
Enclosing class:
ConfigProperties

public static class ConfigProperties.JREInformation
extends java.lang.Object

Helper class to store version information about a JRE


Field Summary
static int SRC_INSTALL
           
static int SRC_USER
           
 
Constructor Summary
ConfigProperties.JREInformation(java.lang.String platformVersionId, java.lang.String productVersionId, java.net.URL productLocation, java.lang.String installedPath, int whereSpecified, boolean isEnabled, int index)
           
 
Method Summary
 ConfigProperties.JREInformation copy()
           
 boolean equals(java.lang.Object o)
           
static ConfigProperties.JREInformation fromProperty(java.util.Properties props, int n, int src)
           
 int getIndex()
           
 java.lang.String getInstalledPath()
           
 java.lang.String getPlatformVersionId()
           
 java.net.URL getProductLocation()
           
 java.lang.String getProductVersionId()
           
 int getWhereSpecified()
           
 int hashCode()
           
 boolean isCurrentRunningJRE()
           
 boolean isEnabled()
           
 void setEnabled(boolean isEnabled)
           
 void setEnabledProperty(java.util.Properties props)
           
 void setVersions(java.lang.String platformId, java.lang.String productId)
           
 void toProperty(java.util.Properties props)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SRC_USER

public static final int SRC_USER
See Also:
Constant Field Values

SRC_INSTALL

public static final int SRC_INSTALL
See Also:
Constant Field Values
Constructor Detail

ConfigProperties.JREInformation

public ConfigProperties.JREInformation(java.lang.String platformVersionId,
                                       java.lang.String productVersionId,
                                       java.net.URL productLocation,
                                       java.lang.String installedPath,
                                       int whereSpecified,
                                       boolean isEnabled,
                                       int index)
Method Detail

getIndex

public int getIndex()

getWhereSpecified

public int getWhereSpecified()

getPlatformVersionId

public java.lang.String getPlatformVersionId()

getProductVersionId

public java.lang.String getProductVersionId()

getProductLocation

public java.net.URL getProductLocation()

getInstalledPath

public java.lang.String getInstalledPath()

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean isEnabled)

setVersions

public void setVersions(java.lang.String platformId,
                        java.lang.String productId)

fromProperty

public static ConfigProperties.JREInformation fromProperty(java.util.Properties props,
                                                           int n,
                                                           int src)

copy

public ConfigProperties.JREInformation copy()

setEnabledProperty

public void setEnabledProperty(java.util.Properties props)

toProperty

public void toProperty(java.util.Properties props)

isCurrentRunningJRE

public boolean isCurrentRunningJRE()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object