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