Lines Matching refs:lexicalRepresentation

202          * @param lexicalRepresentation <code>String</code> representation of a <code>Duration</code>.
204 * @return New <code>Duration</code> created from parsing the <code>lexicalRepresentation</code>.
206 * @throws IllegalArgumentException If <code>lexicalRepresentation</code> is not a valid representation of a <code>Duration</code>.
208 * @throws NullPointerException if <code>lexicalRepresentation</code> is <code>null</code>.
210 public abstract Duration newDuration(final String lexicalRepresentation);
368 * @param lexicalRepresentation Lexical representation of a duration.
370 * @return New <code>Duration</code> created using the specified <code>lexicalRepresentation</code>.
372 * @throws IllegalArgumentException If <code>lexicalRepresentation</code> is not a valid representation of a <code>Duration</code> expressed only in terms of days and time.
374 * @throws NullPointerException If <code>lexicalRepresentation</code> is <code>null</code>.
376 public Duration newDurationDayTime(final String lexicalRepresentation) {
377 // lexicalRepresentation must be non-null
378 if (lexicalRepresentation == null) {
384 // test lexicalRepresentation against spec regex
385 Matcher matcher = XDTSCHEMA_DTD.matcher(lexicalRepresentation);
389 + " lexical representation of \"" + lexicalRepresentation
393 return newDuration(lexicalRepresentation);
545 * @param lexicalRepresentation Lexical representation of a duration.
547 * @return New <code>Duration</code> created using the specified <code>lexicalRepresentation</code>.
549 * @throws IllegalArgumentException If <code>lexicalRepresentation</code> is not a valid representation of a <code>Duration</code> expressed only in terms of years and months.
551 * @throws NullPointerException If <code>lexicalRepresentation</code> is <code>null</code>.
554 final String lexicalRepresentation) {
556 // lexicalRepresentation must be non-null
557 if (lexicalRepresentation == null) {
563 // test lexicalRepresentation against spec regex
564 Matcher matcher = XDTSCHEMA_YMD.matcher(lexicalRepresentation);
568 + " lexical representation of \"" + lexicalRepresentation
572 return newDuration(lexicalRepresentation);
725 * @param lexicalRepresentation Lexical representation of one the eight XML Schema date/time datatypes.
727 * @return <code>XMLGregorianCalendar</code> created from the <code>lexicalRepresentation</code>.
729 * @throws IllegalArgumentException If the <code>lexicalRepresentation</code> is not a valid <code>XMLGregorianCalendar</code>.
730 * @throws NullPointerException If <code>lexicalRepresentation</code> is <code>null</code>.
732 public abstract XMLGregorianCalendar newXMLGregorianCalendar(final String lexicalRepresentation);