bt747.sys.interfaces
Class BT747Path

java.lang.Object
  extended by bt747.sys.interfaces.BT747Path
Direct Known Subclasses:
WabaPath

public class BT747Path
extends java.lang.Object

"Abstract" class so that a file path can be encapsulated to math different platforms. For instance, SuperWaba requires a 'card' integer index, while a regular java platform only uses a String.

Author:
Mario De Weerd

Constructor Summary
BT747Path(BT747Path path)
          Constructor with just a path parameter.
BT747Path(java.lang.String path)
          Constructor with just a path parameter.
 
Method Summary
 java.lang.String getPath()
          Returns the path.
 BT747Path proto(java.lang.String path)
          Create new path using this instance as a prototype.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BT747Path

public BT747Path(java.lang.String path)
Constructor with just a path parameter.

Parameters:
path -

BT747Path

public BT747Path(BT747Path path)
Constructor with just a path parameter.

Parameters:
path -
Method Detail

proto

public BT747Path proto(java.lang.String path)
Create new path using this instance as a prototype. Must be overriden in derived classes. This helps to keep settings like the card number that is a separate value on SuperWaba systems.

Parameters:
path -
Returns:
Instance which is a copy of the current one, except for the path.

getPath

public final java.lang.String getPath()
Returns the path. No setter because everything has to be set on construction.


toString

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