A class with methods for creating instances of XmlDateTime.
| 74 | * of {@link XmlDateTime}. |
| 75 | */ |
| 76 | final class Factory { |
| 77 | /** |
| 78 | * Creates an empty instance of {@link XmlDateTime} |
| 79 | */ |
| 80 | public static XmlDateTime newInstance() { |
| 81 | return (XmlDateTime) XmlBeans.getContextTypeLoader().newInstance(type, null); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Creates an empty instance of {@link XmlDateTime} |
| 86 | */ |
| 87 | public static XmlDateTime newInstance(org.apache.xmlbeans.XmlOptions options) { |
| 88 | return (XmlDateTime) XmlBeans.getContextTypeLoader().newInstance(type, options); |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Creates an immutable {@link XmlDateTime} value |
| 93 | */ |
| 94 | public static XmlDateTime newValue(Object obj) { |
| 95 | return (XmlDateTime) type.newValue(obj); |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Parses a {@link XmlDateTime} fragment from a String. For example: "<code><xml-fragment>2003-06-14T12:00:00</xml-fragment></code>". |
| 100 | */ |
| 101 | public static XmlDateTime parse(java.lang.String s) throws org.apache.xmlbeans.XmlException { |
| 102 | return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(s, type, null); |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Parses a {@link XmlDateTime} fragment from a String. For example: "<code><xml-fragment>2003-06-14T12:00:00</xml-fragment></code>". |
| 107 | */ |
| 108 | public static XmlDateTime parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { |
| 109 | return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(s, type, options); |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * Parses a {@link XmlDateTime} fragment from a File. |
| 114 | */ |
| 115 | public static XmlDateTime parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException { |
| 116 | return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(f, type, null); |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Parses a {@link XmlDateTime} fragment from a File. |
| 121 | */ |
| 122 | public static XmlDateTime parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { |
| 123 | return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(f, type, options); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Parses a {@link XmlDateTime} fragment from a URL. |
| 128 | */ |
| 129 | public static XmlDateTime parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { |
| 130 | return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(u, type, null); |
| 131 | } |
| 132 | |
| 133 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…