org.w3.x1999.xlink.impl.ToAttributeImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML attribute type.
* Localname: to
* Namespace: http://www.w3.org/1999/xlink
* Java type: org.w3.x1999.xlink.ToAttribute
*
* 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 to(@http://www.w3.org/1999/xlink) attribute.
*
* This is a complex type.
*/
public class ToAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.w3.x1999.xlink.ToAttribute {
private static final long serialVersionUID = 1L;
public ToAttributeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.w3.org/1999/xlink", "to"),
};
/**
* Gets the "to" attribute
*/
@Override
public java.lang.String getTo() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return (target == null) ? null : target.getStringValue();
}
}
/**
* Gets (as xml) the "to" attribute
*/
@Override
public org.w3.x1999.xlink.ToType xgetTo() {
synchronized (monitor()) {
check_orphaned();
org.w3.x1999.xlink.ToType target = null;
target = (org.w3.x1999.xlink.ToType)get_store().find_attribute_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* True if has "to" attribute
*/
@Override
public boolean isSetTo() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
}
}
/**
* Sets the "to" attribute
*/
@Override
public void setTo(java.lang.String to) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.setStringValue(to);
}
}
/**
* Sets (as xml) the "to" attribute
*/
@Override
public void xsetTo(org.w3.x1999.xlink.ToType to) {
synchronized (monitor()) {
check_orphaned();
org.w3.x1999.xlink.ToType target = null;
target = (org.w3.x1999.xlink.ToType)get_store().find_attribute_user(PROPERTY_QNAME[0]);
if (target == null) {
target = (org.w3.x1999.xlink.ToType)get_store().add_attribute_user(PROPERTY_QNAME[0]);
}
target.set(to);
}
}
/**
* Unsets the "to" attribute
*/
@Override
public void unsetTo() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[0]);
}
}
}