Samples JDK
MessageTypeImpl.java
1 /*
2  * XML Type: MessageType
3  * Namespace: http://www.freemindcafe.com/purchase3/gift
4  * Java type: com.freemindcafe.purchase3.gift.MessageType
5  *
6  * Automatically generated - do not modify.
7  */
8 package com.freemindcafe.purchase3.gift.impl;
9 /**
10  * An XML MessageType(@http://www.freemindcafe.com/purchase3/gift).
11  *
12  * This is a complex type.
13  */
14 public class MessageTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.freemindcafe.purchase3.gift.MessageType
15 {
16  private static final long serialVersionUID = 1L;
17 
18  public MessageTypeImpl(org.apache.xmlbeans.SchemaType sType)
19  {
20  super(sType);
21  }
22 
23  private static final javax.xml.namespace.QName GIFTWRAP$0 =
24  new javax.xml.namespace.QName("http://www.freemindcafe.com/purchase3/gift", "giftWrap");
25  private static final javax.xml.namespace.QName COMMENT1$2 =
26  new javax.xml.namespace.QName("http://www.freemindcafe.com/purchase3/gift", "comment1");
27 
28 
29  /**
30  * Gets the "giftWrap" element
31  */
32  public boolean getGiftWrap()
33  {
34  synchronized (monitor())
35  {
36  check_orphaned();
37  org.apache.xmlbeans.SimpleValue target = null;
38  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GIFTWRAP$0, 0);
39  if (target == null)
40  {
41  return false;
42  }
43  return target.getBooleanValue();
44  }
45  }
46 
47  /**
48  * Gets (as xml) the "giftWrap" element
49  */
50  public org.apache.xmlbeans.XmlBoolean xgetGiftWrap()
51  {
52  synchronized (monitor())
53  {
54  check_orphaned();
55  org.apache.xmlbeans.XmlBoolean target = null;
56  target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(GIFTWRAP$0, 0);
57  return target;
58  }
59  }
60 
61  /**
62  * Sets the "giftWrap" element
63  */
64  public void setGiftWrap(boolean giftWrap)
65  {
66  synchronized (monitor())
67  {
68  check_orphaned();
69  org.apache.xmlbeans.SimpleValue target = null;
70  target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GIFTWRAP$0, 0);
71  if (target == null)
72  {
73  target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GIFTWRAP$0);
74  }
75  target.setBooleanValue(giftWrap);
76  }
77  }
78 
79  /**
80  * Sets (as xml) the "giftWrap" element
81  */
82  public void xsetGiftWrap(org.apache.xmlbeans.XmlBoolean giftWrap)
83  {
84  synchronized (monitor())
85  {
86  check_orphaned();
87  org.apache.xmlbeans.XmlBoolean target = null;
88  target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(GIFTWRAP$0, 0);
89  if (target == null)
90  {
91  target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(GIFTWRAP$0);
92  }
93  target.set(giftWrap);
94  }
95  }
96 
97  /**
98  * Gets the "comment1" element
99  */
100  public org.apache.xmlbeans.XmlObject getComment1()
101  {
102  synchronized (monitor())
103  {
104  check_orphaned();
105  org.apache.xmlbeans.XmlObject target = null;
106  target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(COMMENT1$2, 0);
107  if (target == null)
108  {
109  return null;
110  }
111  return target;
112  }
113  }
114 
115  /**
116  * True if has "comment1" element
117  */
118  public boolean isSetComment1()
119  {
120  synchronized (monitor())
121  {
122  check_orphaned();
123  return get_store().count_elements(COMMENT1$2) != 0;
124  }
125  }
126 
127  /**
128  * Sets the "comment1" element
129  */
130  public void setComment1(org.apache.xmlbeans.XmlObject comment1)
131  {
132  generatedSetterHelperImpl(comment1, COMMENT1$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
133  }
134 
135  /**
136  * Appends and returns a new empty "comment1" element
137  */
138  public org.apache.xmlbeans.XmlObject addNewComment1()
139  {
140  synchronized (monitor())
141  {
142  check_orphaned();
143  org.apache.xmlbeans.XmlObject target = null;
144  target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(COMMENT1$2);
145  return target;
146  }
147  }
148 
149  /**
150  * Unsets the "comment1" element
151  */
152  public void unsetComment1()
153  {
154  synchronized (monitor())
155  {
156  check_orphaned();
157  get_store().remove_element(COMMENT1$2, 0);
158  }
159  }
160 }
void xsetGiftWrap(org.apache.xmlbeans.XmlBoolean giftWrap)
void setComment1(org.apache.xmlbeans.XmlObject comment1)