|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.DefaultBarcodeClassResolver
public class DefaultBarcodeClassResolver
This is a simple implementation of a BarcodeClassResolver.
Constructor Summary | |
---|---|
DefaultBarcodeClassResolver()
Main constructor. |
Method Summary | |
---|---|
java.util.Collection |
getBarcodeNames()
Return the names of all registered barcode types. |
void |
registerBarcodeClass(java.lang.String id,
java.lang.String classname)
Registers a barcode implementation. |
void |
registerBarcodeClass(java.lang.String id,
java.lang.String classname,
boolean mainID)
Registers a barcode implementation. |
java.lang.Class |
resolve(java.lang.String name)
Returns the Class object of a Barcode implementation. |
java.lang.Class |
resolveBean(java.lang.String name)
Returns the Class object of a Barcode bean implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultBarcodeClassResolver()
Method Detail |
---|
public void registerBarcodeClass(java.lang.String id, java.lang.String classname)
id
- short name to use as a keyclassname
- fully qualified classnamepublic void registerBarcodeClass(java.lang.String id, java.lang.String classname, boolean mainID)
id
- short name to use as a keyclassname
- fully qualified classnamemainID
- indicates whether the name is the main name for the barcodepublic java.lang.Class resolve(java.lang.String name) throws java.lang.ClassNotFoundException
BarcodeClassResolver
resolve
in interface BarcodeClassResolver
name
- Name or Classname of a Barcode implementation class
java.lang.ClassNotFoundException
- If the class could not be resolvedBarcodeClassResolver.resolve(String)
public java.lang.Class resolveBean(java.lang.String name) throws java.lang.ClassNotFoundException
BarcodeClassResolver
resolveBean
in interface BarcodeClassResolver
name
- Name or Classname of a Barcode bean implementation class
java.lang.ClassNotFoundException
- If the class could not be resolvedBarcodeClassResolver.resolveBean(String)
public java.util.Collection getBarcodeNames()
BarcodeClassResolver
getBarcodeNames
in interface BarcodeClassResolver
BarcodeClassResolver.getBarcodeNames()
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |