org.openxmlformats.schemas.xpackage.x2006.relationships.impl.CTRelationshipImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.poi
Show all versions of org.apache.servicemix.bundles.poi
This OSGi bundle wraps poi, poi-contrib, poi-ooxml, poi-ooxml-schemas and poi-scratchpad ${pkgVersion} jar files.
/*
* XML Type: CT_Relationship
* Namespace: http://schemas.openxmlformats.org/package/2006/relationships
* Java type: org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.xpackage.x2006.relationships.impl;
/**
* An XML CT_Relationship(@http://schemas.openxmlformats.org/package/2006/relationships).
*
* This is an atomic type that is a restriction of org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship.
*/
public class CTRelationshipImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements org.openxmlformats.schemas.xpackage.x2006.relationships.CTRelationship
{
public CTRelationshipImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType, true);
}
protected CTRelationshipImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
{
super(sType, b);
}
private static final javax.xml.namespace.QName TARGETMODE$0 =
new javax.xml.namespace.QName("", "TargetMode");
private static final javax.xml.namespace.QName TARGET$2 =
new javax.xml.namespace.QName("", "Target");
private static final javax.xml.namespace.QName TYPE$4 =
new javax.xml.namespace.QName("", "Type");
private static final javax.xml.namespace.QName ID$6 =
new javax.xml.namespace.QName("", "Id");
/**
* Gets the "TargetMode" attribute
*/
public org.openxmlformats.schemas.xpackage.x2006.relationships.STTargetMode.Enum getTargetMode()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TARGETMODE$0);
if (target == null)
{
return null;
}
return (org.openxmlformats.schemas.xpackage.x2006.relationships.STTargetMode.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "TargetMode" attribute
*/
public org.openxmlformats.schemas.xpackage.x2006.relationships.STTargetMode xgetTargetMode()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.xpackage.x2006.relationships.STTargetMode target = null;
target = (org.openxmlformats.schemas.xpackage.x2006.relationships.STTargetMode)get_store().find_attribute_user(TARGETMODE$0);
return target;
}
}
/**
* True if has "TargetMode" attribute
*/
public boolean isSetTargetMode()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(TARGETMODE$0) != null;
}
}
/**
* Sets the "TargetMode" attribute
*/
public void setTargetMode(org.openxmlformats.schemas.xpackage.x2006.relationships.STTargetMode.Enum targetMode)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TARGETMODE$0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TARGETMODE$0);
}
target.setEnumValue(targetMode);
}
}
/**
* Sets (as xml) the "TargetMode" attribute
*/
public void xsetTargetMode(org.openxmlformats.schemas.xpackage.x2006.relationships.STTargetMode targetMode)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.xpackage.x2006.relationships.STTargetMode target = null;
target = (org.openxmlformats.schemas.xpackage.x2006.relationships.STTargetMode)get_store().find_attribute_user(TARGETMODE$0);
if (target == null)
{
target = (org.openxmlformats.schemas.xpackage.x2006.relationships.STTargetMode)get_store().add_attribute_user(TARGETMODE$0);
}
target.set(targetMode);
}
}
/**
* Unsets the "TargetMode" attribute
*/
public void unsetTargetMode()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(TARGETMODE$0);
}
}
/**
* Gets the "Target" attribute
*/
public java.lang.String getTarget()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TARGET$2);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "Target" attribute
*/
public org.apache.xmlbeans.XmlAnyURI xgetTarget()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(TARGET$2);
return target;
}
}
/**
* Sets the "Target" attribute
*/
public void setTarget(java.lang.String targetValue)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TARGET$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TARGET$2);
}
target.setStringValue(targetValue);
}
}
/**
* Sets (as xml) the "Target" attribute
*/
public void xsetTarget(org.apache.xmlbeans.XmlAnyURI targetValue)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(TARGET$2);
if (target == null)
{
target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(TARGET$2);
}
target.set(targetValue);
}
}
/**
* Gets the "Type" attribute
*/
public java.lang.String getType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$4);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "Type" attribute
*/
public org.apache.xmlbeans.XmlAnyURI xgetType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(TYPE$4);
return target;
}
}
/**
* Sets the "Type" attribute
*/
public void setType(java.lang.String type)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$4);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$4);
}
target.setStringValue(type);
}
}
/**
* Sets (as xml) the "Type" attribute
*/
public void xsetType(org.apache.xmlbeans.XmlAnyURI type)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(TYPE$4);
if (target == null)
{
target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(TYPE$4);
}
target.set(type);
}
}
/**
* Gets the "Id" attribute
*/
public java.lang.String getId()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$6);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "Id" attribute
*/
public org.apache.xmlbeans.XmlID xgetId()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlID target = null;
target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$6);
return target;
}
}
/**
* Sets the "Id" attribute
*/
public void setId(java.lang.String id)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$6);
}
target.setStringValue(id);
}
}
/**
* Sets (as xml) the "Id" attribute
*/
public void xsetId(org.apache.xmlbeans.XmlID id)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlID target = null;
target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlID)get_store().add_attribute_user(ID$6);
}
target.set(id);
}
}
}