no.ntnu.ime.xmlconverter.server.parser.identifiers
Class PersonNodeIdentifiers

java.lang.Object
  extended by no.ntnu.ime.xmlconverter.server.parser.identifiers.PersonNodeIdentifiers

public class PersonNodeIdentifiers
extends java.lang.Object


Field Summary
private static int[] CHECKSUM_WEIGTHS_ROUND_FIRST_DIGIT
           
private static int[] CHECKSUM_WEIGTHS_ROUND_SECOND_DIGIT
           
 
Constructor Summary
private PersonNodeIdentifiers()
           
 
Method Summary
private static boolean hasValidChecksumForWeigths(java.lang.String identString, int[] weigths)
          Calculates the checksum-digit for the give weigths and checks if it matches the one given in identString.
static boolean isPersonId(java.lang.String identString)
          Returns true if the given string is a valid Norwegian SSN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHECKSUM_WEIGTHS_ROUND_FIRST_DIGIT

private static final int[] CHECKSUM_WEIGTHS_ROUND_FIRST_DIGIT

CHECKSUM_WEIGTHS_ROUND_SECOND_DIGIT

private static final int[] CHECKSUM_WEIGTHS_ROUND_SECOND_DIGIT
Constructor Detail

PersonNodeIdentifiers

private PersonNodeIdentifiers()
Method Detail

isPersonId

public static boolean isPersonId(java.lang.String identString)
Returns true if the given string is a valid Norwegian SSN.

Parameters:
identString -
Returns:

hasValidChecksumForWeigths

private static boolean hasValidChecksumForWeigths(java.lang.String identString,
                                                  int[] weigths)
Calculates the checksum-digit for the give weigths and checks if it matches the one given in identString.

Parameters:
identString -
weigths -
Returns:
booolean