pops.ale.epc.spec.grouping
Class UriRepresentation

java.lang.Object
  extended by pops.ale.epc.spec.grouping.UriRepresentation

public class UriRepresentation
extends java.lang.Object


Field Summary
static UriRepresentation EPC_PAT_PURE
           
static UriRepresentation EPC_PAT_TAG
           
static UriRepresentation EPC_PURE
           
static UriRepresentation EPC_RAW
           
static UriRepresentation EPC_TAG
           
 
Constructor Summary
protected UriRepresentation(java.lang.String header)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object anObject)
          equals implementation.
static UriRepresentation getUriRepresentation(java.lang.String header, boolean isPattern)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EPC_PURE

public static final UriRepresentation EPC_PURE

EPC_TAG

public static final UriRepresentation EPC_TAG

EPC_RAW

public static final UriRepresentation EPC_RAW

EPC_PAT_PURE

public static final UriRepresentation EPC_PAT_PURE

EPC_PAT_TAG

public static final UriRepresentation EPC_PAT_TAG
Constructor Detail

UriRepresentation

protected UriRepresentation(java.lang.String header)
Constructor

Parameters:
id - unique id of object
scheme - representation
Method Detail

getUriRepresentation

public static UriRepresentation getUriRepresentation(java.lang.String header,
                                                     boolean isPattern)
Parameters:
header - a string representation for the uri header: ex. "urn:epc:pat"
isPattern - boolean indicating if the header is of pattern or not
Returns:
the Encoding scheme object

toString

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

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