📄 addresstypeimpl.java
字号:
/*
* XML Type: addressType
* Namespace: http://xmlbeans.apache.org/samples/xquery/employees
* Java type: org.apache.xmlbeans.samples.xquery.employees.AddressType
*
* Automatically generated - do not modify.
*/
package org.apache.xmlbeans.samples.xquery.employees.impl;
/**
* An XML addressType(@http://xmlbeans.apache.org/samples/xquery/employees).
*
* This is a complex type.
*/
public class AddressTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.xmlbeans.samples.xquery.employees.AddressType
{
public AddressTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName STREET$0 =
new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/xquery/employees", "street");
private static final javax.xml.namespace.QName CITY$2 =
new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/xquery/employees", "city");
private static final javax.xml.namespace.QName STATE$4 =
new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/xquery/employees", "state");
private static final javax.xml.namespace.QName ZIP$6 =
new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/xquery/employees", "zip");
private static final javax.xml.namespace.QName LOCATION$8 =
new javax.xml.namespace.QName("", "location");
/**
* Gets the "street" element
*/
public java.lang.String getStreet()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STREET$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "street" element
*/
public org.apache.xmlbeans.XmlString xgetStreet()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STREET$0, 0);
return target;
}
}
/**
* Sets the "street" element
*/
public void setStreet(java.lang.String street)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STREET$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STREET$0);
}
target.setStringValue(street);
}
}
/**
* Sets (as xml) the "street" element
*/
public void xsetStreet(org.apache.xmlbeans.XmlString street)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STREET$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(STREET$0);
}
target.set(street);
}
}
/**
* Gets the "city" element
*/
public java.lang.String getCity()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CITY$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "city" element
*/
public org.apache.xmlbeans.XmlNCName xgetCity()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(CITY$2, 0);
return target;
}
}
/**
* Sets the "city" element
*/
public void setCity(java.lang.String city)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CITY$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CITY$2);
}
target.setStringValue(city);
}
}
/**
* Sets (as xml) the "city" element
*/
public void xsetCity(org.apache.xmlbeans.XmlNCName city)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(CITY$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(CITY$2);
}
target.set(city);
}
}
/**
* Gets the "state" element
*/
public java.lang.String getState()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATE$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "state" element
*/
public org.apache.xmlbeans.XmlNCName xgetState()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(STATE$4, 0);
return target;
}
}
/**
* Sets the "state" element
*/
public void setState(java.lang.String state)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATE$4);
}
target.setStringValue(state);
}
}
/**
* Sets (as xml) the "state" element
*/
public void xsetState(org.apache.xmlbeans.XmlNCName state)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(STATE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(STATE$4);
}
target.set(state);
}
}
/**
* Gets the "zip" element
*/
public java.math.BigInteger getZip()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ZIP$6, 0);
if (target == null)
{
return null;
}
return target.getBigIntegerValue();
}
}
/**
* Gets (as xml) the "zip" element
*/
public org.apache.xmlbeans.XmlInteger xgetZip()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(ZIP$6, 0);
return target;
}
}
/**
* Sets the "zip" element
*/
public void setZip(java.math.BigInteger zip)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ZIP$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ZIP$6);
}
target.setBigIntegerValue(zip);
}
}
/**
* Sets (as xml) the "zip" element
*/
public void xsetZip(org.apache.xmlbeans.XmlInteger zip)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(ZIP$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(ZIP$6);
}
target.set(zip);
}
}
/**
* Gets the "location" attribute
*/
public java.lang.String getLocation()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCATION$8);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "location" attribute
*/
public org.apache.xmlbeans.XmlNCName xgetLocation()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(LOCATION$8);
return target;
}
}
/**
* Sets the "location" attribute
*/
public void setLocation(java.lang.String location)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCATION$8);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LOCATION$8);
}
target.setStringValue(location);
}
}
/**
* Sets (as xml) the "location" attribute
*/
public void xsetLocation(org.apache.xmlbeans.XmlNCName location)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlNCName target = null;
target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(LOCATION$8);
if (target == null)
{
target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(LOCATION$8);
}
target.set(location);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -