41 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}.
42 * </li>
43 * <li>
44 * If the file ${JAVA_HOME}/lib/jaxp.properties exists, it is loaded in a {@link java.util.Properties} <code>Object</code>.
45 * The <code>Properties</code> <code>Object </code> is then queried for the property as documented in the prior step
46 * and processed as documented in the prior step.
47 * </li>
48 * <li>
49 * The services resolution mechanism is used, e.g. <code>META-INF/services/java.xml.datatype.DatatypeFactory</code>.
50 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}.
51 * </li>
52 * <li>
53 * The final mechanism is to attempt to instantiate the <code>Class</code> specified by
54 * {@link #DATATYPEFACTORY_IMPLEMENTATION_CLASS}, "<code>javax.xml.datatype.DatatypeFactoryImpl</code>".
55 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}.
56 * </li>
57 * </ol>
58 *
59 * @author <a href="mailto:Joseph.Fialli@Sun.COM">Joseph Fialli</a>
60 * @author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a>
61 * @version $Id: DatatypeFactoryImpl.java,v 1.6 2010/05/19 05:02:55 joehw Exp $
62 */
63 public class DatatypeFactoryImpl
64 extends DatatypeFactory {
65
66 /**
67 * <p>Public constructor is empty..</p>
68 *
69 * <p>Use {@link DatatypeFactory#newInstance()} to create a <code>DatatypeFactory</code>.</p>
70 */
71 public DatatypeFactoryImpl() {
72 }
73
74 /**
75 * <p>Obtain a new instance of a <code>Duration</code>
76 * specifying the <code>Duration</code> as its string representation, "PnYnMnDTnHnMnS",
77 * as defined in XML Schema 1.0 section 3.2.6.1.</p>
78 *
79 * <p>XML Schema Part 2: Datatypes, 3.2.6 duration, defines <code>duration</code> as:</p>
80 * <blockquote>
81 * duration represents a duration of time.
|
41 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}.
42 * </li>
43 * <li>
44 * If the file ${JAVA_HOME}/lib/jaxp.properties exists, it is loaded in a {@link java.util.Properties} <code>Object</code>.
45 * The <code>Properties</code> <code>Object </code> is then queried for the property as documented in the prior step
46 * and processed as documented in the prior step.
47 * </li>
48 * <li>
49 * The services resolution mechanism is used, e.g. <code>META-INF/services/java.xml.datatype.DatatypeFactory</code>.
50 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}.
51 * </li>
52 * <li>
53 * The final mechanism is to attempt to instantiate the <code>Class</code> specified by
54 * {@link #DATATYPEFACTORY_IMPLEMENTATION_CLASS}, "<code>javax.xml.datatype.DatatypeFactoryImpl</code>".
55 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}.
56 * </li>
57 * </ol>
58 *
59 * @author <a href="mailto:Joseph.Fialli@Sun.COM">Joseph Fialli</a>
60 * @author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a>
61 */
62 public class DatatypeFactoryImpl
63 extends DatatypeFactory {
64
65 /**
66 * <p>Public constructor is empty..</p>
67 *
68 * <p>Use {@link DatatypeFactory#newInstance()} to create a <code>DatatypeFactory</code>.</p>
69 */
70 public DatatypeFactoryImpl() {
71 }
72
73 /**
74 * <p>Obtain a new instance of a <code>Duration</code>
75 * specifying the <code>Duration</code> as its string representation, "PnYnMnDTnHnMnS",
76 * as defined in XML Schema 1.0 section 3.2.6.1.</p>
77 *
78 * <p>XML Schema Part 2: Datatypes, 3.2.6 duration, defines <code>duration</code> as:</p>
79 * <blockquote>
80 * duration represents a duration of time.
|