org.w3.x1999.xlink.impl.LocatorDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: locator
* Namespace: http://www.w3.org/1999/xlink
* Java type: org.w3.x1999.xlink.LocatorDocument
*
* Automatically generated - do not modify.
*/
package org.w3.x1999.xlink.impl;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
import org.apache.xmlbeans.XmlObject;
/**
* A document containing one locator(@http://www.w3.org/1999/xlink) element.
*
* This is a complex type.
*/
public class LocatorDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.w3.x1999.xlink.LocatorDocument {
private static final long serialVersionUID = 1L;
public LocatorDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.w3.org/1999/xlink", "locator"),
};
/**
* Gets the "locator" element
*/
@Override
public org.w3.x1999.xlink.LocatorType getLocator() {
synchronized (monitor()) {
check_orphaned();
org.w3.x1999.xlink.LocatorType target = null;
target = (org.w3.x1999.xlink.LocatorType)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? null : target;
}
}
/**
* Sets the "locator" element
*/
@Override
public void setLocator(org.w3.x1999.xlink.LocatorType locator) {
generatedSetterHelperImpl(locator, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "locator" element
*/
@Override
public org.w3.x1999.xlink.LocatorType addNewLocator() {
synchronized (monitor()) {
check_orphaned();
org.w3.x1999.xlink.LocatorType target = null;
target = (org.w3.x1999.xlink.LocatorType)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
}