Name
DatatypeFactory
Synopsis
This
class defines factory methods for creating
Duration
and
XMLGregorianCalendar
objects.
public abstract class DatatypeFactory { // Protected Constructors protected DatatypeFactory( ); // Public Constants public static final String DATATYPEFACTORY_IMPLEMENTATION_CLASS; ="com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl" public static final String DATATYPEFACTORY_PROPERTY; ="javax.xml.datatype.DatatypeFactory" // Public Class Methods public static DatatypeFactory newInstance( ) throws DatatypeConfigurationException; // Public Instance Methods public abstract Duration newDuration(String lexicalRepresentation); public abstract Duration newDuration(long durationInMilliSeconds); public Duration newDuration(boolean isPositive, int years, int months, int days, int hours, int minutes, int seconds); public abstract Duration newDuration(boolean isPositive, java.math.BigInteger years, java.math.BigInteger months, java.math.BigInteger days, java.math.BigInteger hours, java.math.BigInteger minutes, java.math.BigDecimal seconds); public Duration newDurationDayTime(long durationInMilliseconds); public Duration newDurationDayTime(String lexicalRepresentation); public Duration newDurationDayTime(boolean isPositive, int day, int hour, int minute, int second); public Duration newDurationDayTime(boolean isPositive, java.math.BigInteger day, java.math.BigInteger hour, java.math.BigInteger minute, java.math.BigInteger second); public Duration newDurationYearMonth ...
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.