📄 insertadddocumentimpl.java
字号:
/*
* An XML document type.
* Localname: insertAdd
* Namespace: http://xmlbeans.service.address.samples
* Java type: samples.address.service.xmlbeans.InsertAddDocument
*
* Automatically generated - do not modify.
*/
package samples.address.service.xmlbeans.impl;
/**
* A document containing one insertAdd(@http://xmlbeans.service.address.samples) element.
*
* This is a complex type.
*/
public class InsertAddDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl
implements samples.address.service.xmlbeans.InsertAddDocument {
private static final javax.xml.namespace.QName INSERTADD$0 = new javax.xml.namespace.QName("http://xmlbeans.service.address.samples",
"insertAdd");
public InsertAddDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
/**
* Gets the "insertAdd" element
*/
public samples.address.service.xmlbeans.InsertAddDocument.InsertAdd getInsertAdd() {
synchronized (monitor()) {
check_orphaned();
samples.address.service.xmlbeans.InsertAddDocument.InsertAdd target = null;
target = (samples.address.service.xmlbeans.InsertAddDocument.InsertAdd) get_store()
.find_element_user(INSERTADD$0,
0);
if (target == null) {
return null;
}
return target;
}
}
/**
* Sets the "insertAdd" element
*/
public void setInsertAdd(
samples.address.service.xmlbeans.InsertAddDocument.InsertAdd insertAdd) {
synchronized (monitor()) {
check_orphaned();
samples.address.service.xmlbeans.InsertAddDocument.InsertAdd target = null;
target = (samples.address.service.xmlbeans.InsertAddDocument.InsertAdd) get_store()
.find_element_user(INSERTADD$0,
0);
if (target == null) {
target = (samples.address.service.xmlbeans.InsertAddDocument.InsertAdd) get_store()
.add_element_user(INSERTADD$0);
}
target.set(insertAdd);
}
}
/**
* Appends and returns a new empty "insertAdd" element
*/
public samples.address.service.xmlbeans.InsertAddDocument.InsertAdd addNewInsertAdd() {
synchronized (monitor()) {
check_orphaned();
samples.address.service.xmlbeans.InsertAddDocument.InsertAdd target = null;
target = (samples.address.service.xmlbeans.InsertAddDocument.InsertAdd) get_store()
.add_element_user(INSERTADD$0);
return target;
}
}
/**
* An XML insertAdd(@http://xmlbeans.service.address.samples).
*
* This is a complex type.
*/
public static class InsertAddImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl
implements samples.address.service.xmlbeans.InsertAddDocument.InsertAdd {
private static final javax.xml.namespace.QName NAME$0 = new javax.xml.namespace.QName("http://xmlbeans.service.address.samples",
"name");
private static final javax.xml.namespace.QName PHONE$2 = new javax.xml.namespace.QName("http://xmlbeans.service.address.samples",
"phone");
public InsertAddImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
/**
* Gets the "name" element
*/
public java.lang.String getName() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue) get_store()
.find_element_user(NAME$0,
0);
if (target == null) {
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "name" element
*/
public org.apache.xmlbeans.XmlString xgetName() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString) get_store()
.find_element_user(NAME$0,
0);
return target;
}
}
/**
* Tests for nil "name" element
*/
public boolean isNilName() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString) get_store()
.find_element_user(NAME$0,
0);
if (target == null) {
return false;
}
return target.isNil();
}
}
/**
* True if has "name" element
*/
public boolean isSetName() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(NAME$0) != 0;
}
}
/**
* Sets the "name" element
*/
public void setName(java.lang.String name) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue) get_store()
.find_element_user(NAME$0,
0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue) get_store()
.add_element_user(NAME$0);
}
target.setStringValue(name);
}
}
/**
* Sets (as xml) the "name" element
*/
public void xsetName(org.apache.xmlbeans.XmlString name) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString) get_store()
.find_element_user(NAME$0,
0);
if (target == null) {
target = (org.apache.xmlbeans.XmlString) get_store()
.add_element_user(NAME$0);
}
target.set(name);
}
}
/**
* Nils the "name" element
*/
public void setNilName() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString) get_store()
.find_element_user(NAME$0,
0);
if (target == null) {
target = (org.apache.xmlbeans.XmlString) get_store()
.add_element_user(NAME$0);
}
target.setNil();
}
}
/**
* Unsets the "name" element
*/
public void unsetName() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(NAME$0, 0);
}
}
/**
* Gets the "phone" element
*/
public java.lang.String getPhone() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue) get_store()
.find_element_user(PHONE$2,
0);
if (target == null) {
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "phone" element
*/
public org.apache.xmlbeans.XmlString xgetPhone() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString) get_store()
.find_element_user(PHONE$2,
0);
return target;
}
}
/**
* Tests for nil "phone" element
*/
public boolean isNilPhone() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString) get_store()
.find_element_user(PHONE$2,
0);
if (target == null) {
return false;
}
return target.isNil();
}
}
/**
* True if has "phone" element
*/
public boolean isSetPhone() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PHONE$2) != 0;
}
}
/**
* Sets the "phone" element
*/
public void setPhone(java.lang.String phone) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue) get_store()
.find_element_user(PHONE$2,
0);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue) get_store()
.add_element_user(PHONE$2);
}
target.setStringValue(phone);
}
}
/**
* Sets (as xml) the "phone" element
*/
public void xsetPhone(org.apache.xmlbeans.XmlString phone) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString) get_store()
.find_element_user(PHONE$2,
0);
if (target == null) {
target = (org.apache.xmlbeans.XmlString) get_store()
.add_element_user(PHONE$2);
}
target.set(phone);
}
}
/**
* Nils the "phone" element
*/
public void setNilPhone() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString) get_store()
.find_element_user(PHONE$2,
0);
if (target == null) {
target = (org.apache.xmlbeans.XmlString) get_store()
.add_element_user(PHONE$2);
}
target.setNil();
}
}
/**
* Unsets the "phone" element
*/
public void unsetPhone() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PHONE$2, 0);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -