Samples JDK
MessageDocument.java
1 /*
2  * An XML document type.
3  * Localname: message
4  * Namespace: http://www.freemindcafe.com/purchase2
5  * Java type: com.freemindcafe.purchase2.MessageDocument
6  *
7  * Automatically generated - do not modify.
8  */
9 package com.freemindcafe.purchase2;
10 
11 
12 /**
13  * A document containing one message(@http://www.freemindcafe.com/purchase2) element.
14  *
15  * This is a complex type.
16  */
17 public interface MessageDocument extends org.apache.xmlbeans.XmlObject
18 {
19  public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
20  org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(MessageDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s22597AB43033773C8A51EC3F4C4F4C8C").resolveHandle("message02e7doctype");
21 
22  /**
23  * Gets the "message" element
24  */
26 
27  /**
28  * Sets the "message" element
29  */
31 
32  /**
33  * Appends and returns a new empty "message" element
34  */
36 
37  /**
38  * A factory class with static methods for creating instances
39  * of this type.
40  */
41 
42  public static final class Factory
43  {
44  public static com.freemindcafe.purchase2.MessageDocument newInstance() {
45  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
46 
47  public static com.freemindcafe.purchase2.MessageDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
48  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
49 
50  /** @param xmlAsString the string value to parse */
51  public static com.freemindcafe.purchase2.MessageDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
52  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
53 
54  public static com.freemindcafe.purchase2.MessageDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
55  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
56 
57  /** @param file the file from which to load an xml document */
58  public static com.freemindcafe.purchase2.MessageDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
59  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
60 
61  public static com.freemindcafe.purchase2.MessageDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
62  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
63 
64  public static com.freemindcafe.purchase2.MessageDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
65  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
66 
67  public static com.freemindcafe.purchase2.MessageDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
68  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
69 
70  public static com.freemindcafe.purchase2.MessageDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
71  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
72 
73  public static com.freemindcafe.purchase2.MessageDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
74  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
75 
76  public static com.freemindcafe.purchase2.MessageDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
77  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
78 
79  public static com.freemindcafe.purchase2.MessageDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
80  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
81 
82  public static com.freemindcafe.purchase2.MessageDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
83  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
84 
85  public static com.freemindcafe.purchase2.MessageDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
86  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
87 
88  public static com.freemindcafe.purchase2.MessageDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
89  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
90 
91  public static com.freemindcafe.purchase2.MessageDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
92  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
93 
94  /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
95  @Deprecated
96  public static com.freemindcafe.purchase2.MessageDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
97  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
98 
99  /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
100  @Deprecated
101  public static com.freemindcafe.purchase2.MessageDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
102  return (com.freemindcafe.purchase2.MessageDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
103 
104  /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
105  @Deprecated
106  public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
107  return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
108 
109  /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
110  @Deprecated
111  public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
112  return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
113 
114  private Factory() { } // No instance of this class allowed
115  }
116 }
void setMessage(com.freemindcafe.purchase2.MessageType message)
com.freemindcafe.purchase2.MessageType getMessage()
com.freemindcafe.purchase2.MessageType addNewMessage()