com.hfg.xml.msofficexml.docx.wordprocessingml.WmlDrawing Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com_hfg Show documentation
Show all versions of com_hfg Show documentation
com.hfg xml, html, svg, and bioinformatics utility library
package com.hfg.xml.msofficexml.docx.wordprocessingml;
import com.hfg.xml.msofficexml.docx.Docx;
public class WmlDrawing extends WmlXMLTag
{
private WmlInline mInlineTag;
//---------------------------------------------------------------------------
public WmlDrawing(Docx inDocx)
{
super(WmlXML.DRAWING, inDocx);
}
//---------------------------------------------------------------------------
/**
* Returns the inline tag if one exists or else instantiates a new one.
* @return the inline tag for this drawing
*/
public WmlInline getInline()
{
if (null == mInlineTag)
{
// Check if it has been added via addSubtag()...
mInlineTag = getOptionalSubtagByName(WmlXML.INLINE);
if (null == mInlineTag)
{
mInlineTag = new WmlInline(getParentDoc());
addSubtag(mInlineTag);
}
}
return mInlineTag;
}
}