jpos.profile.JposDevCats Maven / Gradle / Ivy
package jpos.profile;
///////////////////////////////////////////////////////////////////////////////
//
// This software is provided "AS IS". The JavaPOS working group (including
// each of the Corporate members, contributors and individuals) MAKES NO
// REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE,
// EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NON-INFRINGEMENT. The JavaPOS working group shall not be liable for
// any damages suffered as a result of using, modifying or distributing this
// software or its derivatives. Permission to use, copy, modify, and distribute
// the software and its documentation for any purpose is hereby granted.
//
// The JavaPOS Config/Loader (aka JCL) is now under the CPL license, which
// is an OSS Apache-like license. The complete license is located at:
// http://www.ibm.com/developerworks/library/os-cpl.html
//
///////////////////////////////////////////////////////////////////////////////
import java.util.*;
/**
* Defines an interface for JavaPOS device categories
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public class JposDevCats extends Object
{
//-------------------------------------------------------------------------
// Private class constants
//
private static final Hashtable DEVCAT_TABLE = new Hashtable();
//-------------------------------------------------------------------------
// Class constants
//
public static final DevCat UNKNOWN_DEVCAT =
JposDevCats.Unknown.getInstance();
public static final DevCat BUMPBAR_DEVCAT =
JposDevCats.BumpBar.getInstance();
public static final DevCat BELT_DEVCAT =
JposDevCats.Belt.getInstance();
public static final DevCat BILLACCEPTOR_DEVCAT =
JposDevCats.BillAcceptor.getInstance();
public static final DevCat BILLDISPENSER_DEVCAT =
JposDevCats.BillDispenser.getInstance();
public static final DevCat BIOMETRICS_DEVCAT =
JposDevCats.Biometrics.getInstance();
public static final DevCat CASHCHANGER_DEVCAT =
JposDevCats.CashChanger.getInstance();
public static final DevCat CASHDRAWER_DEVCAT =
JposDevCats.CashDrawer.getInstance();
public static final DevCat CHECKSCANNER_DEVCAT =
JposDevCats.CheckScanner.getInstance();
public static final DevCat CAT_DEVCAT =
JposDevCats.CAT.getInstance();
public static final DevCat COINACCEPTOR_DEVCAT =
JposDevCats.CoinAcceptor.getInstance();
public static final DevCat COINDISPENSER_DEVCAT =
JposDevCats.CoinDispenser.getInstance();
public static final DevCat ELECTRONICJOURNAL_DEVCAT =
JposDevCats.ElectronicJournal.getInstance();
public static final DevCat ELECTRONICVALUERW_DEVCAT =
JposDevCats.ElectronicValueRW.getInstance();
public static final DevCat FISCALPRINTER_DEVCAT =
JposDevCats.FiscalPrinter.getInstance();
public static final DevCat GATE_DEVCAT =
JposDevCats.Gate.getInstance();
public static final DevCat HARDTOTALS_DEVCAT =
JposDevCats.HardTotals.getInstance();
public static final DevCat IMAGESCANNER_DEVCAT =
JposDevCats.ImageScanner.getInstance();
public static final DevCat ITEMDISPENSER_DEVCAT =
JposDevCats.ItemDispenser.getInstance();
public static final DevCat KEYLOCK_DEVCAT =
JposDevCats.Keylock.getInstance();
public static final DevCat LINEDISPLAY_DEVCAT =
JposDevCats.LineDisplay.getInstance();
public static final DevCat LIGHTS_DEVCAT =
JposDevCats.Lights.getInstance();
public static final DevCat MICR_DEVCAT =
JposDevCats.MICR.getInstance();
public static final DevCat MOTIONSENSOR_DEVCAT =
JposDevCats.MotionSensor.getInstance();
public static final DevCat MSR_DEVCAT =
JposDevCats.MSR.getInstance();
public static final DevCat PINPAD_DEVCAT =
JposDevCats.Pinpad.getInstance();
public static final DevCat POINTCARDRW_DEVCAT =
JposDevCats.PointCardRW.getInstance();
public static final DevCat POSKEYBOARD_DEVCAT =
JposDevCats.POSKeyboard.getInstance();
public static final DevCat POSPOWER_DEVCAT =
JposDevCats.POSPower.getInstance();
public static final DevCat POSPRINTER_DEVCAT =
JposDevCats.POSPrinter.getInstance();
public static final DevCat REMOTEORDERDISPLAY_DEVCAT =
JposDevCats.RemoteOrderDisplay.getInstance();
public static final DevCat RFIDSCANNER_DEVCAT =
JposDevCats.RFIDScanner.getInstance();
public static final DevCat SCANNER_DEVCAT =
JposDevCats.Scanner.getInstance();
public static final DevCat SCALE_DEVCAT =
JposDevCats.Scale.getInstance();
public static final DevCat SIGNATURECAPTURE_DEVCAT =
JposDevCats.SignatureCapture.getInstance();
public static final DevCat SMARTCARDRW_DEVCAT =
JposDevCats.SmartCardRW.getInstance();
public static final DevCat TONEINDICATOR_DEVCAT =
JposDevCats.ToneIndicator.getInstance();
//-------------------------------------------------------------------------
// Class constants
//
/** An array of all of the JavaPOS DevCat */
public static final DevCat[] DEVCAT_ARRAY =
{ BELT_DEVCAT, BUMPBAR_DEVCAT, BILLACCEPTOR_DEVCAT,
BILLDISPENSER_DEVCAT, BIOMETRICS_DEVCAT, CASHCHANGER_DEVCAT,
CASHDRAWER_DEVCAT, CHECKSCANNER_DEVCAT,
CAT_DEVCAT, COINACCEPTOR_DEVCAT, COINDISPENSER_DEVCAT,
ELECTRONICJOURNAL_DEVCAT, ELECTRONICVALUERW_DEVCAT, FISCALPRINTER_DEVCAT, GATE_DEVCAT,
HARDTOTALS_DEVCAT, IMAGESCANNER_DEVCAT, ITEMDISPENSER_DEVCAT,
KEYLOCK_DEVCAT, LIGHTS_DEVCAT, LINEDISPLAY_DEVCAT,
MICR_DEVCAT, MOTIONSENSOR_DEVCAT,
MSR_DEVCAT, PINPAD_DEVCAT,
POSKEYBOARD_DEVCAT, POSPOWER_DEVCAT,
POSPRINTER_DEVCAT,
RFIDSCANNER_DEVCAT, REMOTEORDERDISPLAY_DEVCAT, SCANNER_DEVCAT,
SCALE_DEVCAT, SIGNATURECAPTURE_DEVCAT, SMARTCARDRW_DEVCAT,
TONEINDICATOR_DEVCAT,
POINTCARDRW_DEVCAT };
//-------------------------------------------------------------------------
// Static initializer
//
static
{
DEVCAT_TABLE.put( BELT_DEVCAT.toString(), BELT_DEVCAT);
DEVCAT_TABLE.put( BILLACCEPTOR_DEVCAT.toString(), BILLACCEPTOR_DEVCAT);
DEVCAT_TABLE.put( BILLDISPENSER_DEVCAT.toString(), BILLDISPENSER_DEVCAT);
DEVCAT_TABLE.put( BIOMETRICS_DEVCAT.toString(), BIOMETRICS_DEVCAT);
DEVCAT_TABLE.put( BUMPBAR_DEVCAT.toString(), BUMPBAR_DEVCAT );
DEVCAT_TABLE.put( CASHCHANGER_DEVCAT.toString(), CASHCHANGER_DEVCAT );
DEVCAT_TABLE.put( CASHDRAWER_DEVCAT.toString(), CASHDRAWER_DEVCAT );
DEVCAT_TABLE.put( CHECKSCANNER_DEVCAT.toString(), CHECKSCANNER_DEVCAT );
DEVCAT_TABLE.put( CAT_DEVCAT.toString(), CAT_DEVCAT );
DEVCAT_TABLE.put( COINACCEPTOR_DEVCAT.toString(), COINACCEPTOR_DEVCAT);
DEVCAT_TABLE.put( COINDISPENSER_DEVCAT.toString(),
COINDISPENSER_DEVCAT );
DEVCAT_TABLE.put( ELECTRONICJOURNAL_DEVCAT.toString(), ELECTRONICJOURNAL_DEVCAT);
DEVCAT_TABLE.put( ELECTRONICVALUERW_DEVCAT.toString(), ELECTRONICVALUERW_DEVCAT);
DEVCAT_TABLE.put( FISCALPRINTER_DEVCAT.toString(),
FISCALPRINTER_DEVCAT );
DEVCAT_TABLE.put( GATE_DEVCAT.toString(), GATE_DEVCAT);
DEVCAT_TABLE.put( HARDTOTALS_DEVCAT.toString(), HARDTOTALS_DEVCAT );
DEVCAT_TABLE.put( ITEMDISPENSER_DEVCAT.toString(), ITEMDISPENSER_DEVCAT);
DEVCAT_TABLE.put( IMAGESCANNER_DEVCAT.toString(), IMAGESCANNER_DEVCAT);
DEVCAT_TABLE.put( KEYLOCK_DEVCAT.toString(), KEYLOCK_DEVCAT );
DEVCAT_TABLE.put( LIGHTS_DEVCAT.toString(), LIGHTS_DEVCAT);
DEVCAT_TABLE.put( LINEDISPLAY_DEVCAT.toString(), LINEDISPLAY_DEVCAT );
DEVCAT_TABLE.put( MICR_DEVCAT.toString(), MICR_DEVCAT );
DEVCAT_TABLE.put( MOTIONSENSOR_DEVCAT.toString(), MOTIONSENSOR_DEVCAT );
DEVCAT_TABLE.put( MSR_DEVCAT.toString(), MSR_DEVCAT );
DEVCAT_TABLE.put( PINPAD_DEVCAT.toString(), PINPAD_DEVCAT );
DEVCAT_TABLE.put( POINTCARDRW_DEVCAT.toString(),
POINTCARDRW_DEVCAT );
DEVCAT_TABLE.put( POSKEYBOARD_DEVCAT.toString(), POSKEYBOARD_DEVCAT );
DEVCAT_TABLE.put( POSPOWER_DEVCAT.toString(), POSPOWER_DEVCAT );
DEVCAT_TABLE.put( POSPRINTER_DEVCAT.toString(), POSPRINTER_DEVCAT );
DEVCAT_TABLE.put( REMOTEORDERDISPLAY_DEVCAT.toString(),
REMOTEORDERDISPLAY_DEVCAT );
DEVCAT_TABLE.put( RFIDSCANNER_DEVCAT.toString(), RFIDSCANNER_DEVCAT);
DEVCAT_TABLE.put( SCANNER_DEVCAT.toString(), SCANNER_DEVCAT );
DEVCAT_TABLE.put( SCALE_DEVCAT.toString(), SCALE_DEVCAT );
DEVCAT_TABLE.put( SIGNATURECAPTURE_DEVCAT.toString(),
SIGNATURECAPTURE_DEVCAT );
DEVCAT_TABLE.put( SMARTCARDRW_DEVCAT.toString(), SMARTCARDRW_DEVCAT);
DEVCAT_TABLE.put( TONEINDICATOR_DEVCAT.toString(),
TONEINDICATOR_DEVCAT );
}
//-------------------------------------------------------------------------
// Class methods
//
/**
* @return the DevCat for the String name passed
* @param devCatName the String name for this DevCat
*/
public static DevCat getDevCatForName( String devCatName )
{
if( DEVCAT_TABLE.containsKey( devCatName ) )
return (DevCat)DEVCAT_TABLE.get( devCatName );
return UNKNOWN_DEVCAT;
}
//-------------------------------------------------------------------------
// Inner classes
//
/**
* Defines the super class for all DevCat
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static abstract class AbstractDevCat extends Object
implements DevCat
{
//---------------------------------------------------------------------
// Public overriden methods
//
/** @return the String representation of this DevCat */
public abstract String toString();
/**
* @return true if these two DevCat are the same JavaPOS device
* category
* @param obj the other object to compare to
*/
public boolean equals( Object obj )
{
if( obj == null ) return false;
if( !( obj instanceof DevCat ) ) return false;
return toString().equals( obj.toString() );
}
}
/**
* Defines an Unknown DevCat
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class Unknown extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
Unknown() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.Unknown();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "Unknown"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor ) {}
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines an Belt DevCat
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr. ([email protected])
*/
public static class Belt extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
Belt() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.Belt();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "Belt"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitBelt( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines an BillAcceptor DevCat
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr. ([email protected])
*/
public static class BillAcceptor extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
BillAcceptor() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.BillAcceptor();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "BillAcceptor"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitBillAcceptor( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines an BillDispenser DevCat
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr. ([email protected])
*/
public static class BillDispenser extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
BillDispenser() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.BillDispenser();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "BillDispenser"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitBillDispenser( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines an Biometrics DevCat
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr. ([email protected])
*/
public static class Biometrics extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
Biometrics() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.Biometrics();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "Biometrics"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitBiometrics( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for BumpBar
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien
*/
public static class BumpBar extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
BumpBar() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.BumpBar();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "BumpBar"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitBumpBar( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for CashChanger
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class CashChanger extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
CashChanger() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.CashChanger();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "CashChanger"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitCashChanger( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for CashDrawer
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class CashDrawer extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
CashDrawer() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.CashDrawer();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "CashDrawer"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitCashDrawer( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for CheckScanner
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class CheckScanner extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
CheckScanner() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.CheckScanner();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "CheckScanner"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitCheckScanner( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for CAT
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class CAT extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
CAT() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.CAT();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "CAT"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitCAT( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for CoinDispenser
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class CoinDispenser extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
CoinDispenser() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.CoinDispenser();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "CoinDispenser"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitCoinDispenser( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for CoinAcceptor
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr ([email protected])
*/
public static class CoinAcceptor extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
CoinAcceptor() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.CoinAcceptor();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "CoinAcceptor"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitCoinAcceptor( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for ElectronicJournal
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr ([email protected])
*/
public static class ElectronicJournal extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
ElectronicJournal() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.ElectronicJournal();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "ElectronicJournal"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitElectronicJournal( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for ElectronicValueRW
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr ([email protected])
*/
public static class ElectronicValueRW extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
ElectronicValueRW() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.ElectronicValueRW();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "ElectronicValueRW"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitElectronicValueRW( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for FiscalPrinter
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class FiscalPrinter extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
FiscalPrinter() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.FiscalPrinter();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "FiscalPrinter"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitFiscalPrinter( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for Gate
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr ([email protected])
*/
public static class Gate extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
Gate() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.Gate();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "Gate"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitGate( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for HardTotals
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class HardTotals extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
HardTotals() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.HardTotals();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "HardTotals"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitHardTotals( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for ItemDispenser
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr ([email protected])
*/
public static class ItemDispenser extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
ItemDispenser() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.ItemDispenser();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "ItemDispenser"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitItemDispenser( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for ImageScanner
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr ([email protected])
*/
public static class ImageScanner extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
ImageScanner() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.ImageScanner();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "ImageScanner"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitImageScanner( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for Keylock
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class Keylock extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
Keylock() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.Keylock();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "Keylock"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitKeylock( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for Lights
* @since 1.12 (SF 2K meeting)
* @author E. William White, Jr ([email protected])
*/
public static class Lights extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
Lights() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.Lights();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "Lights"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitLights( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for LineDisplay
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class LineDisplay extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
LineDisplay() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.LineDisplay();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "LineDisplay"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitLineDisplay( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for MICR
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class MICR extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
MICR() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.MICR();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "MICR"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitMICR( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for MotionSensor
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class MotionSensor extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
MotionSensor() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.MotionSensor();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "MotionSensor"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitMotionSensor( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for MSR
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class MSR extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
MSR() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.MSR();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "MSR"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitMSR( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for Pinpad
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class Pinpad extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
Pinpad() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.Pinpad();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "Pinpad"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitPinpad( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for POSKeyboard
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class POSKeyboard extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
POSKeyboard() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.POSKeyboard();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "POSKeyboard"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitPOSKeyboard( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for POSPower
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class POSPower extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
POSPower() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.POSPower();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "POSPower"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitPOSPower( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for POSPrinter
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class POSPrinter extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
POSPrinter() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.POSPrinter();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "POSPrinter"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitPOSPrinter( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for RemoteOrderDisplay
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class RemoteOrderDisplay extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
RemoteOrderDisplay() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.RemoteOrderDisplay();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "RemoteOrderDisplay"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitRemoteOrderDisplay( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for RFIDScanner
* @since 1.12
* @author William White, Jr. ([email protected])
*/
public static class RFIDScanner extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
RFIDScanner() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.RFIDScanner();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "RFIDScanner"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitRFIDScanner( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for Scanner
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class Scanner extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
Scanner() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.Scanner();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "Scanner"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitScanner( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for SignatureCapture
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class SignatureCapture extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
SignatureCapture() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.SignatureCapture();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "SignatureCapture"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitSignatureCapture( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for Scale
* @since 2.1
* @author E. Michael Maximilien ([email protected])
*/
public static class Scale extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
Scale() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.Scale();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "Scale"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitScale( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for SmartCardRW
* @since 1.12
* @author William White, Jr. ([email protected])
*/
public static class SmartCardRW extends AbstractDevCat implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
SmartCardRW() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.SmartCardRW();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "SmartCardRW"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitSmartCardRW( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for ToneIndicator
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class ToneIndicator extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
ToneIndicator() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.ToneIndicator();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "ToneIndicator"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitToneIndicator( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
/**
* Defines the DevCat for PointCardRW
* @since 1.3 (SF 2K meeting)
* @author E. Michael Maximilien ([email protected])
*/
public static class PointCardRW extends AbstractDevCat
implements DevCat
{
//---------------------------------------------------------------------
// Ctor(s)
//
/** Make ctor package to avoid ctor */
PointCardRW() {}
//---------------------------------------------------------------------
// Class methods
//
/** @return the unique instance of this class (create if necessary) */
public static DevCat getInstance()
{
if( instance == null )
instance = new JposDevCats.PointCardRW();
return instance;
}
//---------------------------------------------------------------------
// Public methods
//
/** @return the String representation of this DevCat */
public String toString() { return "PointCardRW"; }
/**
* Accepts a DevCat Visitor object
* @param visitor the DevCat Visitor object
*/
public void accept( DevCatVisitor visitor )
{ visitor.visitPointCardRW( this ); }
//---------------------------------------------------------------------
// Class instance
//
private static DevCat instance = null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy