Class DisCountryCodesValidator

java.lang.Object
org.opengis.cite.cdb10.util.reference.Validator
org.opengis.cite.cdb10.util.reference.DisCountryCodesValidator

public class DisCountryCodesValidator extends Validator

DisCountryCodesValidator class.

  • Constructor Details

    • DisCountryCodesValidator

      public DisCountryCodesValidator(Document doc)
      Initialize this validator with the contents of an XML Document.
      Parameters:
      doc - XML Document from DIS_Country_codes.xml
  • Method Details

    • isValidCountryCode

      public boolean isValidCountryCode(Integer code)

      isValidCountryCode.

      Parameters:
      code - a Integer object
      Returns:
      a boolean
    • isValidCountryName

      public boolean isValidCountryName(String name)

      isValidCountryName.

      Parameters:
      name - a String object
      Returns:
      a boolean
    • countryNameForCode

      public String countryNameForCode(Integer code)

      countryNameForCode.

      Parameters:
      code - a Integer object
      Returns:
      a String object