pops.ale.codec
Class EncScheme
java.lang.Object
pops.ale.codec.EncScheme
public final class EncScheme
- extends java.lang.Object
Constructor Summary |
protected |
EncScheme(java.lang.String scheme,
int numFields)
Constructor |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
EncScheme
protected EncScheme(java.lang.String scheme,
int numFields)
- Constructor
- Parameters:
scheme
- representationnumFields
- number of uri fields
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).