com.sun.ebxml.registry.util
Class UNSPSCImporter

java.lang.Object
  extended bycom.sun.ebxml.registry.util.UNSPSCImporter

public class UNSPSCImporter
extends java.lang.Object

It is the importer for UNSPSC. It will automatically skip the first line in the input file.


Constructor Summary
UNSPSCImporter(java.lang.String fileName, UUIDFactory uUIDFactory)
          Constructor.
 
Method Summary
 org.oasis.ebxml.registry.bindings.rim.ClassificationScheme getClassificationScheme()
          Get the ClassificationScheme for NAICS taxonomy
 void setFile(java.lang.String fileName)
          Set the file path of the UNSPSC taxonomy file.
 void setMaxNumOfEntries(int maxNum)
          Set the maximum number of entries should be handled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UNSPSCImporter

public UNSPSCImporter(java.lang.String fileName,
                      UUIDFactory uUIDFactory)
               throws java.io.IOException
Constructor.

Parameters:
fileName - The file path and name of the UNSPSC taxonomy file.
uUIDFactory - The UUIDFactory
Method Detail

setFile

public void setFile(java.lang.String fileName)
             throws java.io.IOException
Set the file path of the UNSPSC taxonomy file.

Parameters:
fileName - The file path of the UNSPSC taxonomy file
Throws:
java.io.IOException

setMaxNumOfEntries

public void setMaxNumOfEntries(int maxNum)
Set the maximum number of entries should be handled. Setting it to 0 means that the importer will handle unlimited number of entries.

Parameters:
maxNum - The maximum number of entries the importer will handle

getClassificationScheme

public org.oasis.ebxml.registry.bindings.rim.ClassificationScheme getClassificationScheme()
                                                                                   throws java.io.IOException
Get the ClassificationScheme for NAICS taxonomy

Returns:
the ClassificationScheme
Throws:
java.io.IOException