com.infoengine.administration.packaging
Class PropertyLoader

java.lang.Object
  extended bycom.infoengine.administration.packaging.PropertyLoader

public class PropertyLoader
extends Object


Field Summary
private static String BROWSE
           
(package private)  JButton browseB
           
private static String CANCEL
           
(package private)  String dcaRoot
           
(package private)  DelegateDirectory directory
           
private static String LNSNAME
           
private static String LPROPFILE
           
private static String LREPOSITORY
           
private static String LVMNAME
           
(package private)  String nsName
           
(package private)  JTextField nsNameTF
           
private static String OK
           
(package private)  JTextField pFileTF
           
private static String PROPERTIES
           
(package private)  String propFile
           
(package private)  String propUri
           
(package private)  Repository repository
           
(package private)  JTextField repoTF
           
(package private)  String searchBase
           
(package private)  String taskRoot
           
(package private)  String vmName
           
(package private)  JTextField vmNameTF
           
 
Constructor Summary
PropertyLoader()
           
PropertyLoader(boolean prompt)
           
 
Method Summary
private  void browse()
          browse button clicked let the user select a file
 String getDcaRoot()
           
 DelegateDirectory getDirectory()
           
 String getNsName()
           
protected static String getProperty(Properties props, String propName)
           
 String getPropertyFile()
           
 Repository getRepository()
           
 String getTaskRoot()
           
 String getVmName()
           
private  void guessRepository()
           
private  void processDirectoryProps(String url)
           
private  void processProperties(String propFile)
           
private  boolean prompt()
          ask the user for input, exit on Cancel verify input on OK
private  boolean verify()
          verify the user input to the local swing components
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

private static String OK

CANCEL

private static String CANCEL

BROWSE

private static String BROWSE

PROPERTIES

private static String PROPERTIES

LPROPFILE

private static String LPROPFILE

LNSNAME

private static String LNSNAME

LVMNAME

private static String LVMNAME

LREPOSITORY

private static String LREPOSITORY

pFileTF

JTextField pFileTF

nsNameTF

JTextField nsNameTF

vmNameTF

JTextField vmNameTF

repoTF

JTextField repoTF

browseB

JButton browseB

propUri

String propUri

searchBase

String searchBase

directory

DelegateDirectory directory

repository

Repository repository

propFile

String propFile

vmName

String vmName

nsName

String nsName

taskRoot

String taskRoot

dcaRoot

String dcaRoot
Constructor Detail

PropertyLoader

public PropertyLoader()

PropertyLoader

public PropertyLoader(boolean prompt)
Method Detail

prompt

private boolean prompt()
ask the user for input, exit on Cancel verify input on OK

Returns:
true if input is verified as OK

verify

private boolean verify()
verify the user input to the local swing components


browse

private void browse()
browse button clicked let the user select a file


processProperties

private void processProperties(String propFile)

processDirectoryProps

private void processDirectoryProps(String url)

guessRepository

private void guessRepository()

getProperty

protected static String getProperty(Properties props,
                                    String propName)

getDirectory

public DelegateDirectory getDirectory()

getRepository

public Repository getRepository()

getNsName

public String getNsName()

getVmName

public String getVmName()

getPropertyFile

public String getPropertyFile()

getTaskRoot

public String getTaskRoot()

getDcaRoot

public String getDcaRoot()