org.fosstrak.ale.server
Enum PatternType

java.lang.Object
  extended by java.lang.Enum<PatternType>
      extended by org.fosstrak.ale.server.PatternType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PatternType>

public enum PatternType
extends java.lang.Enum<PatternType>

This enumeration defines the possible pattern types.

Author:
regli

Enum Constant Summary
GID_96
           
SGTIN_64
           
SSCC_64
           
 
Method Summary
 int getNumberOfDatafields()
          This method returns the number of data fields the pattern type has.
static PatternType getType(java.lang.String type)
          This method returns the pattern type of a types string represenation.
 java.lang.String toSring()
          This method returns a string representation of the pattern type.
static PatternType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PatternType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GID_96

public static final PatternType GID_96

SGTIN_64

public static final PatternType SGTIN_64

SSCC_64

public static final PatternType SSCC_64
Method Detail

values

public static PatternType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PatternType c : PatternType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PatternType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getType

public static PatternType getType(java.lang.String type)
                           throws org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
This method returns the pattern type of a types string represenation.

Parameters:
type - string representation of the type
Returns:
pattern type
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationException - if the string representation is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse

getNumberOfDatafields

public int getNumberOfDatafields()
This method returns the number of data fields the pattern type has.

Returns:
number of data fields

toSring

public java.lang.String toSring()
This method returns a string representation of the pattern type.

Returns:
string representation of the pattern type


Copyright © 2009. All Rights Reserved.