Class ClassificationHelper


  • public class ClassificationHelper
    extends java.lang.Object
    Provides some static helper for classification import.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getLayer​(java.lang.String classificationNumber)
      Return the number of an eclass layer for the given classification number.
      static java.lang.String getSuperCategoryCode​(java.lang.String classificationNumber, int layer)
      Return the code of the super category for the given eclass- or unspsc classification Number and the layer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassificationHelper

        public ClassificationHelper()
    • Method Detail

      • getLayer

        public static int getLayer​(java.lang.String classificationNumber)
        Return the number of an eclass layer for the given classification number.
        Parameters:
        classificationNumber - the classification number
        Returns:
        the number of the eclass layer
      • getSuperCategoryCode

        public static java.lang.String getSuperCategoryCode​(java.lang.String classificationNumber,
                                                            int layer)
        Return the code of the super category for the given eclass- or unspsc classification Number and the layer.
        Parameters:
        classificationNumber - the classification number
        layer - the layer
        Returns:
        code of the super category