Package org.mustangproject
Class ClassCode
- java.lang.Object
-
- org.mustangproject.ClassCode
-
public class ClassCode extends java.lang.ObjectA schemed classification for products. The scheme can be anything defined in UNTDID 7143.
-
-
Constructor Summary
Constructors Constructor Description ClassCode()bean constructorClassCode(java.lang.String listID, java.lang.String code)A UNTDID 7143 schemed classification codeClassCode(java.lang.String listID, java.lang.String code, java.lang.String listVersionID)A UNTDID 7143 schemed classification code
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClassCodefromNode(org.w3c.dom.Node node)java.lang.StringgetCode()Get the code that (following the scheme returned bygetListID()) describes the productjava.lang.StringgetListID()Get the scheme (according to UNTDID 7143) that describes the value returned bygetCode(), potentially versioned bygetListVersionID()java.lang.StringgetListVersionID()Get the (optional) version for the scheme returned bygetListID()voidsetListVersionID(java.lang.String listVersionID)Set the version for the scheme returned bygetListID()
-
-
-
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 7143code- the classification codelistVersionID- 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 7143code- 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 bygetListID()- Parameters:
listVersionID- the scheme version
-
getListID
public java.lang.String getListID()
Get the scheme (according to UNTDID 7143) that describes the value returned bygetCode(), potentially versioned bygetListVersionID()- Returns:
- the scheme
-
getCode
public java.lang.String getCode()
Get the code that (following the scheme returned bygetListID()) describes the product- Returns:
- the classification code itself
-
getListVersionID
public java.lang.String getListVersionID()
Get the (optional) version for the scheme returned bygetListID()- Returns:
- the version or
nullif not set
-
fromNode
public static ClassCode fromNode(org.w3c.dom.Node node)
-
-