Epc |
public abstract class EpcClass
The EpcClass type exposes the following members.
Name | Description | |
---|---|---|
![]() | Components |
Returns the components that comprise this EpcClass.
Each component is one of the dot-delimited strings following
the prefix of the URI, with any %xx
escape sequences replaced by the corresponding character.
If c is an EpcClass instance, then Epc.fromComponents(c.getEpcScheme(), c.getComponents()) returns an EpcClass instance that is equal to c. Example: the getComponents method for EPC URI urn:epc:idpat:sgtin:0614141.112345.* returns an array containing the strings "0614141" and "112345". |
![]() | EpcClassScheme | Returns the EPC Class scheme of this EPC. |
![]() | EpcClassUri | Returns the EPC Class URI corresponding to this EPC Class. |
Name | Description | |
---|---|---|
![]() | Equals |
Returns true if the specified object is an Epc instance that denotes
the same EPC (i.e., has the identical EPC URI).
(Overrides ObjectEquals(Object)) |
![]() ![]() | FromComponents |
Creates an EpcClass instance from the specified EPC Class scheme and components.
Depending on the scheme, the resulting EpcClass instance will have
an EPC Class URI that consists of one of the following:
Example: fromComponents(EpcClassScheme.SGTIN, "0614141", "112345") returns an EpcClass instance whose EPC Class URI is urn:epc:idpat:sgtin:0614141.112345.*. Example: fromComponents(EpcClassScheme.LGTIN, "0614141", "112345", "a/b") returns an EpcClass instance whose EPC Class URI is urn:epc:class:lgtin:0614141.112345.a%2Fb. |
![]() ![]() | FromEpcClassUri | Creates an EpcClass instance by parsing the specified string as a pure identity EPC pattern URI or an EPC Class URI. |
![]() | GetHashCode |
Returns the hash code of the current object
(Overrides ObjectGetHashCode) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | ToEpc | Creates an Epc instance based on this EPC Class by adding a serial number. |
![]() | ToGs1ElementString | Creates a new Gs1ElementString instance based on this EPC Class. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |