no.ntnu.ime.xmlconverter.server.parser.identifiers
Class PersonNodeIdentifiers
java.lang.Object
no.ntnu.ime.xmlconverter.server.parser.identifiers.PersonNodeIdentifiers
public class PersonNodeIdentifiers
- extends java.lang.Object
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 |
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
PersonNodeIdentifiers
private PersonNodeIdentifiers()
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