|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bea.rfid.workflow.print.PrintTag
public class PrintTag
Java class for programing tags for specified EPC class or with the specified EPC. This manages the creation and definition of PCSpec, as needed. When it receives a request to print a tag for a type for which there is no PCSpec defined, it will send out a request for PCSpec to the registered observer. When it receives a PCSpec back, it defines the PCSpec in the ALEPC engine and does a poll to program the tag.
| Constructor Summary | |
|---|---|
PrintTag(com.connecterra.alepc.api.ALEPC alepc,
com.connecterra.alepc.api.ALEPCFactory alepcFactory,
Timer timer)
Constructor. |
|
| Method Summary | |
|---|---|
void |
print(String inStr)
Prints an EPC based on the input string. |
void |
printSetup(String inStr)
This method should be used to set up PCSpec for the input EPC class. |
void |
receivePCSpec(com.connecterra.alepc.api.PCSpec pcspec)
Used to send a PCSpec back to this for a PCSpec request. |
void |
setPCSpecNamePrefix(String pcspecNamePrefix)
The prefix that will be used on the automatically generated PCSpec name. |
void |
setPCSpecNameSuffix(String pcspecNameSuffix)
The suffix that will be used on the automatically generated PCSpec name. |
void |
setPrinterName(String printerName)
Specifies the printer name that will be used to program tags, if none is specified in the PCSpec that this receives. |
void |
setPrintObserver(PrintObserver printObserver)
Registers an observer with this. |
void |
setPrintParameters(Map parameters)
Stores the print parameters that will be used by the next print operation. |
void |
setTimeoutDuration(long duration)
Specifies the timeout to wait for receiving PCSpecs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintTag(com.connecterra.alepc.api.ALEPC alepc,
com.connecterra.alepc.api.ALEPCFactory alepcFactory,
Timer timer)
alepc - the instance of ALEPC to use for programming tagsalepcFactory - ALEPC factory for creating ALEPC objectstimer - java.util.Timer instance to use for setting up timeouts
(for example, timeout to receive PCSpec)| Method Detail |
|---|
public void print(String inStr)
throws com.connecterra.ale.api.ALEException,
RemoteException,
InterruptedException,
URISyntaxException,
com.connecterra.ale.epc.EPCException
inStr - input string value, for which tag should be programmed
com.connecterra.ale.epc.EPCException - if the input string is not a valid EPC or EPC pattern
URISyntaxException - if the input string is not a valid URI
RemoteException - if a remote exception occurs trying to define PCSpec or
programming the tag
com.connecterra.ale.api.ALEException - if ALE exception occurs trying to define PCSpec or
programming the tag
InterruptedException - if interrupted exception occurs trying to program the tagpublic void setPrintParameters(Map parameters)
parameters - Map of string to string with the parameters to use in the
next print operation. See ALEPC.poll(pcspecName, Map) for
exact syntax of these parameters.
public void printSetup(String inStr)
throws com.connecterra.ale.api.ALEException,
URISyntaxException,
com.connecterra.ale.epc.EPCException
inStr - string with the EPC class for which PCSpec is to be set up. This must
be an EPC pattern URI. The EPC class part will be extracted out of the input.
com.connecterra.ale.epc.EPCException - if the input is not a valid EPC or EPC pattern
URISyntaxException - if the input is not a valid URI
com.connecterra.ale.api.ALEException
public void receivePCSpec(com.connecterra.alepc.api.PCSpec pcspec)
throws com.connecterra.ale.api.ALEException,
com.connecterra.alepc.api.PCSpecValidationException,
com.connecterra.alepc.api.NoSuchCacheException,
RemoteException,
InterruptedException
pcspec - PCSpec for a pcspec request
RemoteException - if remote exception occurs trying to define or use the
input PCSpec
com.connecterra.alepc.api.NoSuchCacheException - if the cache specified in the input PCSpec does not
exist with the ALEPC instance
com.connecterra.alepc.api.PCSpecValidationException - if the PCSpec received in invalid
com.connecterra.ale.api.ALEException - if an ALE exception occurs trying to define or use the PCSpec
InterruptedException - if an interrupted exception occurs trying to program
tag using the PCSpecpublic void setPrintObserver(PrintObserver printObserver)
printObserver - the observer that is to be registered with this PrintTagpublic void setPCSpecNamePrefix(String pcspecNamePrefix)
pcspecNamePrefix - string with the prefix for the PCSpec namepublic void setPCSpecNameSuffix(String pcspecNameSuffix)
pcspecNameSuffix - string with the suffix for the PCSpec namepublic void setPrinterName(String printerName)
printerName - logical reader name, defined with ALEPC, of the printer that is
to be used to program tagspublic void setTimeoutDuration(long duration)
duration - the timeout duration. 0 or negative values are treated as infinite.
|
Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||