Package org.dlese.dpc.xml.schema
Class DateValidator
java.lang.Object
org.dlese.dpc.xml.schema.DateValidator
Functions for validating date-related schema data types.
- Author:
- ostwald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckValidBCType(String value, XSDatatypeManager xsdManager) First make sure value is valid as a "xsd:gYear" and then make sure the max inclusive value is "-0001"static booleancheckValidUnionDate(String value) We are given a date String.static booleancheckValidXsdDate(String value) Description of the Methodstatic voidThe main program for the DateValidator class
-
Constructor Details
-
DateValidator
public DateValidator()
-
-
Method Details
-
checkValidXsdDate
Description of the Method- Parameters:
value- Description of the Parameter- Returns:
- Description of the Return Value
- Throws:
Exception- Description of the Exception
-
checkValidBCType
First make sure value is valid as a "xsd:gYear" and then make sure the max inclusive value is "-0001"- Throws:
Exception
-
checkValidUnionDate
We are given a date String. First check to make sure it is formatted correctly. Then check to see that the values of each field are leagal. This is done by checking the fields of the parsed Date against the original date String.- Parameters:
value- Description of the Parameter- Returns:
- Description of the Return Value
- Throws:
Exception- Description of the Exception
-
main
The main program for the DateValidator class- Parameters:
args- The command line arguments- Throws:
Exception- Description of the Exception
-