XsdGMonth extends Datatype<GregorianCalendar> { public GregorianCalendar getValue(){ return _cal; } XsdGMonth(String s); GregorianCalendar getValue(); String getCanonicalRepresentation(); static final Resource DT; }
@Test public void test() throws DatatypeParseException { GregorianCalendar gc = new GregorianCalendar( TimeZone.getTimeZone("Etc/UTC")); gc.clear(); gc.set(Calendar.MONTH, 4); assertEquals(gc, new XsdGMonth("--05--").getValue()); }