cwms.environment
Class CwmsEnvironmentImpl

java.lang.Object
  extended bycwms.environment.CwmsEnvironmentImpl
All Implemented Interfaces:
Environment, StdPathnameConstants, StdPathnames
Direct Known Subclasses:
RmiCwmsEnvironmentImpl

public class CwmsEnvironmentImpl
extends java.lang.Object
implements Environment

CWMS-oriented implementation of the Environment interface.

See Also:
Environment

Field Summary
 
Fields inherited from interface hec.environment.StdPathnameConstants
COMMON_APPDATA, COMMON_DOCS, PROGRAM_INSTALL, USER_APPDATA, USER_DOCS, USER_HOME
 
Constructor Summary
CwmsEnvironmentImpl()
          Default constructor
 
Method Summary
 java.lang.String getCommonAppData()
          Get the CWMS-specific shared application data pathname.
 java.lang.String getCommonDocs()
          Get the CWMS-specific shared docuements pathname.
 java.lang.String getProgramInstall()
          Get the CWMS-specific program installation pathname.
 java.lang.String getStdPathname(int pathname_id)
          Get the CWMS-specific pathname represented by the pathname_id.
 java.lang.String getUserAppData()
          Get the CWMS-specific user application data pathname.
 java.lang.String getUserDocs()
          Get the CWMS-specific user docuements pathname.
 java.lang.String getUserHome()
          Get the CWMS-specific user home pathname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CwmsEnvironmentImpl

public CwmsEnvironmentImpl()
Default constructor

Method Detail

getStdPathname

public java.lang.String getStdPathname(int pathname_id)
                                throws java.lang.Exception
Get the CWMS-specific pathname represented by the pathname_id.

Specified by:
getStdPathname in interface StdPathnames
Parameters:
pathname_id - The constant representing the desired pathname.
Returns:
The desired pathname.
Throws:
java.lang.Exception

getUserHome

public java.lang.String getUserHome()
                             throws java.lang.Exception
Get the CWMS-specific user home pathname.

Specified by:
getUserHome in interface StdPathnames
Returns:
The user home pathname.
Throws:
java.lang.Exception

getUserAppData

public java.lang.String getUserAppData()
                                throws java.lang.Exception
Get the CWMS-specific user application data pathname.

Specified by:
getUserAppData in interface StdPathnames
Returns:
The user application data pathname.
Throws:
java.lang.Exception

getUserDocs

public java.lang.String getUserDocs()
                             throws java.lang.Exception
Get the CWMS-specific user docuements pathname.

Specified by:
getUserDocs in interface StdPathnames
Returns:
The user documents pathname.
Throws:
java.lang.Exception

getCommonAppData

public java.lang.String getCommonAppData()
                                  throws java.lang.Exception
Get the CWMS-specific shared application data pathname.

Specified by:
getCommonAppData in interface StdPathnames
Returns:
The shared application data pathname.
Throws:
java.lang.Exception

getCommonDocs

public java.lang.String getCommonDocs()
                               throws java.lang.Exception
Get the CWMS-specific shared docuements pathname.

Specified by:
getCommonDocs in interface StdPathnames
Returns:
The shared documents pathname.
Throws:
java.lang.Exception

getProgramInstall

public java.lang.String getProgramInstall()
                                   throws java.lang.Exception
Get the CWMS-specific program installation pathname.

Specified by:
getProgramInstall in interface StdPathnames
Returns:
The program installation pathname.
Throws:
java.lang.Exception