orca.boot
Class TicketFactory

java.lang.Object
  extended by orca.boot.TicketFactory

public class TicketFactory
extends java.lang.Object

This is a factory for creating java physical ticket objects from strings.

Author:
aydan XXX: this class is not functional and must be moved outside of boot

Field Summary
static int NONE
          Integer value for no physical tickets
static java.lang.String NONE_STRING
          When used in site.properties specifies that no physical tickets should be issued
static int SHARP
          Integer value for SHARP physical tickets
static java.lang.String SHARP_START
          Identifying prefix for a SHARP ticket
static java.lang.String SHARP_STRING
          When used in site.properties specifies that SHARPphysical tickets should be issued
 
Constructor Summary
TicketFactory()
           
 
Method Summary
static ITicket getTicket(java.lang.String ticketString)
          Parses the string representation of a physical ticket and produces a java ticket object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE_STRING

public static final java.lang.String NONE_STRING
When used in site.properties specifies that no physical tickets should be issued

See Also:
Constant Field Values

SHARP_STRING

public static final java.lang.String SHARP_STRING
When used in site.properties specifies that SHARPphysical tickets should be issued

See Also:
Constant Field Values

NONE

public static final int NONE
Integer value for no physical tickets

See Also:
Constant Field Values

SHARP

public static final int SHARP
Integer value for SHARP physical tickets

See Also:
Constant Field Values

SHARP_START

public static final java.lang.String SHARP_START
Identifying prefix for a SHARP ticket

Constructor Detail

TicketFactory

public TicketFactory()
Method Detail

getTicket

public static ITicket getTicket(java.lang.String ticketString)
                         throws java.lang.Exception
Parses the string representation of a physical ticket and produces a java ticket object. The code applies heuristics to determine the type of the ticket.

Parameters:
ticketString -
Returns:
Throws:
java.lang.Exception


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.