Class ClassCode


  • public class ClassCode
    extends java.lang.Object
    A schemed classification for products. The scheme can be anything defined in UNTDID 7143.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassCode()
      bean constructor
      ClassCode​(java.lang.String listID, java.lang.String code)
      A UNTDID 7143 schemed classification code
      ClassCode​(java.lang.String listID, java.lang.String code, java.lang.String listVersionID)
      A UNTDID 7143 schemed classification code
    • Constructor Detail

      • ClassCode

        public ClassCode​(java.lang.String listID,
                         java.lang.String code,
                         java.lang.String listVersionID)
        A UNTDID 7143 schemed classification code
        Parameters:
        listID - the scheme from UNTDID 7143
        code - the classification code
        listVersionID - an (optional) version of the scheme
      • ClassCode

        public ClassCode​(java.lang.String listID,
                         java.lang.String code)
        A UNTDID 7143 schemed classification code
        Parameters:
        listID - the scheme from UNTDID 7143
        code - the classification code
      • ClassCode

        public ClassCode()
        bean constructor
    • Method Detail

      • setListVersionID

        public void setListVersionID​(java.lang.String listVersionID)
        Set the version for the scheme returned by getListID()
        Parameters:
        listVersionID - the scheme version
      • getListID

        public java.lang.String getListID()
        Get the scheme (according to UNTDID 7143) that describes the value returned by getCode(), potentially versioned by getListVersionID()
        Returns:
        the scheme
      • getCode

        public java.lang.String getCode()
        Get the code that (following the scheme returned by getListID()) describes the product
        Returns:
        the classification code itself
      • getListVersionID

        public java.lang.String getListVersionID()
        Get the (optional) version for the scheme returned by getListID()
        Returns:
        the version or null if not set
      • fromNode

        public static ClassCode fromNode​(org.w3c.dom.Node node)