/* * An XML attribute type. * Localname: embed * Namespace: http://schemas.openxmlformats.org/officeDocument/2006/relationships * Java type: org.openxmlformats.schemas.officeDocument.x2006.relationships.EmbedAttribute * * Automatically generated - do not modify. */ package org.openxmlformats.schemas.officeDocument.x2006.relationships.impl; /** * A document containing one embed(@http://schemas.openxmlformats.org/officeDocument/2006/relationships) attribute. * * This is a complex type. */ public class EmbedAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.officeDocument.x2006.relationships.EmbedAttribute { public EmbedAttributeImpl(org.apache.xmlbeans.SchemaType sType) { super(sType); } private static final javax.xml.namespace.QName EMBED$0 = new javax.xml.namespace.QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "embed"); /** * Gets the "embed" attribute */ public java.lang.String getEmbed() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EMBED$0); if (target == null) { return null; } return target.getStringValue(); } } /** * Gets (as xml) the "embed" attribute */ public org.openxmlformats.schemas.officeDocument.x2006.relationships.STRelationshipId xgetEmbed() { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.officeDocument.x2006.relationships.STRelationshipId target = null; target = (org.openxmlformats.schemas.officeDocument.x2006.relationships.STRelationshipId)get_store().find_attribute_user(EMBED$0); return target; } } /** * True if has "embed" attribute */ public boolean isSetEmbed() { synchronized (monitor()) { check_orphaned(); return get_store().find_attribute_user(EMBED$0) != null; } } /** * Sets the "embed" attribute */ public void setEmbed(java.lang.String embed) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EMBED$0); if (target == null) { target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EMBED$0); } target.setStringValue(embed); } } /** * Sets (as xml) the "embed" attribute */ public void xsetEmbed(org.openxmlformats.schemas.officeDocument.x2006.relationships.STRelationshipId embed) { synchronized (monitor()) { check_orphaned(); org.openxmlformats.schemas.officeDocument.x2006.relationships.STRelationshipId target = null; target = (org.openxmlformats.schemas.officeDocument.x2006.relationships.STRelationshipId)get_store().find_attribute_user(EMBED$0); if (target == null) { target = (org.openxmlformats.schemas.officeDocument.x2006.relationships.STRelationshipId)get_store().add_attribute_user(EMBED$0); } target.set(embed); } } /** * Unsets the "embed" attribute */ public void unsetEmbed() { synchronized (monitor()) { check_orphaned(); get_store().remove_attribute(EMBED$0); } } }