autohit.universe
Class UniverseProperties

java.lang.Object
  extended byautohit.universe.UniverseProperties

public class UniverseProperties
extends java.lang.Object

Universe properties set. There are four types of universes: UNI_LOCAL Local file system UNI_MASTER NOT IMPLIMENTED! UNI_MIRROR NOT IMPLIMENTED! UNI_REMOTE NOT IMPLIMENTED! UNI_EXTENDED NOT IMPLIMENTED! Regardless of what kind of universe, there must be a local property file that describes the universe. The factory will use it to build a server for that universe. PROPERTIES PROCESSED name : string name discriptor type : "local" only now

Version:
1.0 Version History EPG - New - 23Apr03
Author:
Erich P. Gatejen

Field Summary
static int UNI_EXTENDED
           
static int UNI_INVALID
          Types of universe
static int UNI_LOCAL
           
static int UNI_MASTER
           
static int UNI_MIRROR
           
static int UNI_REMOTE
           
 
Constructor Summary
UniverseProperties()
          Constructor.
UniverseProperties(java.io.InputStream props)
          Constructor.
UniverseProperties(java.lang.String propsPath)
          Constructor.
 
Method Summary
 java.lang.String getExtendedClass()
          Get extended class
 java.lang.String getName()
          Get name accessor
 java.lang.String getRoot()
          Get root accessor
 int getType()
          Get type accessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNI_INVALID

public static final int UNI_INVALID
Types of universe

See Also:
Constant Field Values

UNI_LOCAL

public static final int UNI_LOCAL
See Also:
Constant Field Values

UNI_MASTER

public static final int UNI_MASTER
See Also:
Constant Field Values

UNI_MIRROR

public static final int UNI_MIRROR
See Also:
Constant Field Values

UNI_REMOTE

public static final int UNI_REMOTE
See Also:
Constant Field Values

UNI_EXTENDED

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

UniverseProperties

public UniverseProperties()
                   throws java.lang.Exception
Constructor. Do not allow this!


UniverseProperties

public UniverseProperties(java.lang.String propsPath)
                   throws java.lang.Exception
Constructor. Build from a file. We will propagate any exception.

Parameters:
propsPath - path to properties file

UniverseProperties

public UniverseProperties(java.io.InputStream props)
                   throws java.lang.Exception
Constructor. Build from an input stream. We will propagate any exception.

Parameters:
props - input stream to the properties file
Method Detail

getType

public int getType()
Get type accessor

Returns:
type

getName

public java.lang.String getName()
Get name accessor

Returns:
type

getRoot

public java.lang.String getRoot()
Get root accessor

Returns:
type

getExtendedClass

public java.lang.String getExtendedClass()
Get extended class

Returns:
extended class string


Test.