com.sun.ebxml.registry.util
Class ISO3166Importer

java.lang.Object
  |
  +--com.sun.ebxml.registry.util.ISO3166Importer

public class ISO3166Importer
extends java.lang.Object

It is the importer for ISO3166 taxonomy. The MiddleEast node/tree will be a sub-node/tree of Asia node. The Australia node will be moved from Other node to Australia node next to New Zealand. The remaining nodes remain the same relationship as the original input ISO3166 taxonomy.

Author:
Adrian Chong

Constructor Summary
ISO3166Importer(java.lang.String fileName, UUIDFactory uUIDFactory)
          Constructor.
 
Method Summary
 org.oasis.ebxml.registry.bindings.rim.ClassificationScheme getClassificationScheme()
          Get the ClassificationScheme for ISO3166 taxonomy
static void main(java.lang.String[] args)
           
 void setFile(java.lang.String fileName)
          Set the file path of the ISO3166 taxonomy file.
 void setMaxNumOfCountries(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

ISO3166Importer

public ISO3166Importer(java.lang.String fileName,
                       UUIDFactory uUIDFactory)
                throws java.io.FileNotFoundException
Constructor.

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

setFile

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

Parameters:
fileName - The file path of the ISO3166 taxonomy file
java.io.FileNotFoundException

setMaxNumOfCountries

public void setMaxNumOfCountries(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 ISO3166 taxonomy

Returns:
the ClassificationScheme
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception


Copyright © 2001-2003 OASIS. All Rights Reserved.