pops.ale.codec
Class EncScheme

java.lang.Object
  extended by pops.ale.codec.EncScheme

public final class EncScheme
extends java.lang.Object


Field Summary
protected  int numFields
           
static EncScheme SGLN
           
static EncScheme SGLN_96
           
static EncScheme SGTIN
           
static EncScheme SGTIN_96
           
 
Constructor Summary
protected EncScheme(java.lang.String scheme, int numFields)
          Constructor
 
Method Summary
 boolean equals(EncScheme aPatternEncScheme, boolean isPattern)
          equals implementation.
 boolean equals(java.lang.Object anObject)
          equals implementation.
 int getNumFields()
           
static EncScheme getScheme(java.lang.String scheme)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SGTIN

public static final EncScheme SGTIN

SGLN

public static final EncScheme SGLN

SGTIN_96

public static final EncScheme SGTIN_96

SGLN_96

public static final EncScheme SGLN_96

numFields

protected int numFields
Constructor Detail

EncScheme

protected EncScheme(java.lang.String scheme,
                    int numFields)
Constructor

Parameters:
scheme - representation
numFields - number of uri fields
Method Detail

getScheme

public static EncScheme getScheme(java.lang.String scheme)
Parameters:
scheme - a string representation for the encoding scheme : ex. "sgtin-96"
Returns:
the Encoding scheme object

toString

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

getNumFields

public int getNumFields()

equals

public boolean equals(java.lang.Object anObject)
equals implementation. For testing equality against a string containing the scheme (ex. sgtin-96).

Overrides:
equals in class java.lang.Object

equals

public boolean equals(EncScheme aPatternEncScheme,
                      boolean isPattern)
equals implementation. For testing equality against a string containing the scheme (ex. sgtin-96).