API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.datatype. DatatypeFactory View Source
Author(s)
Joseph Fialli
Jeff Suttor
Neeraj Bajaj
Since
1.5
Version
$Revision: 1.10 $, $Date: 2006/05/19 01:08:42 $
Serial
Hierarchy
 Object
      DatatypeFactory
Implements
Subclasses
Description
publicabstract abstract class DatatypeFactory
  Factory that creates new javax.xml.datatype Objects that map XML to/from Java Objects.
See also:   
Constructors
protected DatatypeFactory ()
  Protected constructor to prevent instaniation outside of package.
Methods
Hide/Show inherited methods
publicabstract Duration newDuration (boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds)
  Obtain a new instance of a Duration specifying the Duration as isPositive, years, months, days, hours, minutes, seconds.
public Duration newDuration (boolean isPositive, int years, int months, int days, int hours, int minutes, int seconds)
  Obtain a new instance of a Duration specifying the Duration as isPositive, years, months, days, hours, minutes, seconds.
publicabstract Duration newDuration (long durationInMilliSeconds)
  Obtain a new instance of a Duration specifying the Duration as milliseconds.
publicabstract Duration newDuration (String lexicalRepresentation)
  Obtain a new instance of a Duration specifying the Duration as its string representation, "PnYnMnDTnHnMnS", as defined in XML Schema 1.0 section 3.2.6.1.
public Duration newDurationDayTime (boolean isPositive, BigInteger day, BigInteger hour, BigInteger minute, BigInteger second)
  Create a Duration of type xdt:dayTimeDuration using the specified day, hour, minute and second as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.
public Duration newDurationDayTime (boolean isPositive, int day, int hour, int minute, int second)
  Create a Duration of type xdt:dayTimeDuration using the specified day, hour, minute and second as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.
public Duration newDurationDayTime (long durationInMilliseconds)
  Create a Duration of type xdt:dayTimeDuration using the specified milliseconds as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.
public Duration newDurationDayTime (String lexicalRepresentation)
  Create a Duration of type xdt:dayTimeDuration by parsing its String representation, "PnDTnHnMnS", XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.
public Duration newDurationYearMonth (boolean isPositive, BigInteger year, BigInteger month)
  Create a Duration of type xdt:yearMonthDuration using the specified year and month as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.
public Duration newDurationYearMonth (boolean isPositive, int year, int month)
  Create a Duration of type xdt:yearMonthDuration using the specified year and month as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.
public Duration newDurationYearMonth (long durationInMilliseconds)
  Create a Duration of type xdt:yearMonthDuration using the specified milliseconds as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.
public Duration newDurationYearMonth (String lexicalRepresentation)
  Create a Duration of type xdt:yearMonthDuration by parsing its String representation, "PnYnM", XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.
publicstatic DatatypeFactory newInstance () throws DatatypeConfigurationException
  Obtain a new instance of a DatatypeFactory.
publicstatic DatatypeFactory newInstance (String factoryClassName, ClassLoader classLoader) throws DatatypeConfigurationException
  Obtain a new instance of a DatatypeFactory from class name.
publicabstract XMLGregorianCalendar newXMLGregorianCalendar ()
  Create a new instance of an XMLGregorianCalendar.
publicabstract XMLGregorianCalendar newXMLGregorianCalendar (BigInteger year, int month, int day, int hour, int minute, int second, BigDecimal fractionalSecond, int timezone)
  Constructor allowing for complete value spaces allowed by W3C XML Schema 1.0 recommendation for xsd:dateTime and related builtin datatypes.
publicabstract XMLGregorianCalendar newXMLGregorianCalendar (GregorianCalendar cal)
  Create an XMLGregorianCalendar from a GregorianCalendar.
public XMLGregorianCalendar newXMLGregorianCalendar (int year, int month, int day, int hour, int minute, int second, int millisecond, int timezone)
  Constructor of value spaces that a java.util.GregorianCalendar instance would need to convert to an XMLGregorianCalendar instance.
publicabstract XMLGregorianCalendar newXMLGregorianCalendar (String lexicalRepresentation)
  Create a new XMLGregorianCalendar by parsing the String as a lexical representation.
public XMLGregorianCalendar newXMLGregorianCalendarDate (int year, int month, int day, int timezone)
  Create a Java representation of XML Schema builtin datatype date or g*.
public XMLGregorianCalendar newXMLGregorianCalendarTime (int hours, int minutes, int seconds, BigDecimal fractionalSecond, int timezone)
  Create a Java instance of XML Schema builtin datatype time.
public XMLGregorianCalendar newXMLGregorianCalendarTime (int hours, int minutes, int seconds, int timezone)
  Create a Java instance of XML Schema builtin datatype time.
public XMLGregorianCalendar newXMLGregorianCalendarTime (int hours, int minutes, int seconds, int milliseconds, int timezone)
  Create a Java instance of XML Schema builtin datatype time.
Fields
Hide/Show inherited fields
publicfinalstatic String DATATYPEFACTORY_IMPLEMENTATION_CLASS
  Default implementation class name as defined in JSR 206: Java(TM) API for XML Processing (JAXP) 1.3.
publicfinalstatic String DATATYPEFACTORY_PROPERTY = "javax.xml.datatype.DatatypeFactory"
  Default property name as defined in JSR 206: Java(TM) API for XML Processing (JAXP) 1.3.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar