org.w3.x1999.xlink.impl.ResourceDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: resource
* Namespace: http://www.w3.org/1999/xlink
* Java type: org.w3.x1999.xlink.ResourceDocument
*
* 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 resource(@http://www.w3.org/1999/xlink) element.
*
* This is a complex type.
*/
public class ResourceDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.w3.x1999.xlink.ResourceDocument {
private static final long serialVersionUID = 1L;
public ResourceDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.w3.org/1999/xlink", "resource"),
};
/**
* Gets the "resource" element
*/
@Override
public org.w3.x1999.xlink.ResourceType getResource() {
synchronized (monitor()) {
check_orphaned();
org.w3.x1999.xlink.ResourceType target = null;
target = (org.w3.x1999.xlink.ResourceType)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? null : target;
}
}
/**
* Sets the "resource" element
*/
@Override
public void setResource(org.w3.x1999.xlink.ResourceType resource) {
generatedSetterHelperImpl(resource, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "resource" element
*/
@Override
public org.w3.x1999.xlink.ResourceType addNewResource() {
synchronized (monitor()) {
check_orphaned();
org.w3.x1999.xlink.ResourceType target = null;
target = (org.w3.x1999.xlink.ResourceType)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
}