OPENDJ-1308 Migrate schema support
Added many tests for TimeBasedMatchingRuleFactory in view of porting this class to the SDK.
Started to adapt its API to the SDK APIs.
NotImplementedAssertion.java: ADDED
Added to stop adding the same code for the not implemented Assertion.createIndexQuery().
To be removed once we switch the schema to the SDK.
AbstractMatchingRule.java
Used NotImplementedAssertion.
AbstractOrderingMatchingRule.java:
Implemented getAssertion().
CollationMatchingRuleFactory.java:
Extracted method copyNames().
TimeBasedMatchingRuleFactory.java:
Extracted multiplyByTenThenAddUnits().
Implemented {RelativeTimeGTOrderingMatchingRule|RelativeTimeLTOrderingMatchingRule}.getAssertion() + moved createIndexQuery() to this inner class.
In normalizeAssertionValue(), made code more readable.
Extracted method toCalendarMonth(), isDateInvalid(), isLeapYear(), logAndThrow(), createExactMatchQuery().
Fixed javadocs.
TimeBasedMatchingRuleFactoryTest.java: ADDED
TimeBasedMatchingRuleTest.java:
Code cleanup.