40 * If the system property specified by {@link #DATATYPEFACTORY_PROPERTY}, "<code>javax.xml.datatype.DatatypeFactory</code>", 41 * exists, a class with the name of the property's value is instantiated. 42 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}. 43 * </li> 44 * <li> 45 * If the file ${JAVA_HOME}/conf/jaxp.properties exists, it is loaded in a {@link java.util.Properties} <code>Object</code>. 46 * The <code>Properties</code> <code>Object </code> is then queried for the property as documented in the prior step 47 * and processed as documented in the prior step. 48 * </li> 49 * <li> 50 * The services resolution mechanism is used, e.g. <code>META-INF/services/java.xml.datatype.DatatypeFactory</code>. 51 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}. 52 * </li> 53 * <li> 54 * The final mechanism is to attempt to instantiate the <code>Class</code> specified by 55 * {@link #DATATYPEFACTORY_IMPLEMENTATION_CLASS}, "<code>javax.xml.datatype.DatatypeFactoryImpl</code>". 56 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}. 57 * </li> 58 * </ol> 59 * 60 * @author <a href="mailto:Joseph.Fialli@Sun.COM">Joseph Fialli</a> 61 * @author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a> 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. | 40 * If the system property specified by {@link #DATATYPEFACTORY_PROPERTY}, "<code>javax.xml.datatype.DatatypeFactory</code>", 41 * exists, a class with the name of the property's value is instantiated. 42 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}. 43 * </li> 44 * <li> 45 * If the file ${JAVA_HOME}/conf/jaxp.properties exists, it is loaded in a {@link java.util.Properties} <code>Object</code>. 46 * The <code>Properties</code> <code>Object </code> is then queried for the property as documented in the prior step 47 * and processed as documented in the prior step. 48 * </li> 49 * <li> 50 * The services resolution mechanism is used, e.g. <code>META-INF/services/java.xml.datatype.DatatypeFactory</code>. 51 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}. 52 * </li> 53 * <li> 54 * The final mechanism is to attempt to instantiate the <code>Class</code> specified by 55 * {@link #DATATYPEFACTORY_IMPLEMENTATION_CLASS}, "<code>javax.xml.datatype.DatatypeFactoryImpl</code>". 56 * Any Exception thrown during the instantiation process is wrapped as a {@link DatatypeConfigurationException}. 57 * </li> 58 * </ol> 59 * 60 * @author Joseph Fialli 61 * @author Jeff Suttor 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. |