com.hfg.xml.msofficexml.docx.drawingml.DmlNonVisualDrawingProperties 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.drawingml;
import com.hfg.xml.XMLTag;
public class DmlNonVisualDrawingProperties extends XMLTag
{
private static int sIdSrc = 0;
//---------------------------------------------------------------------------
public DmlNonVisualDrawingProperties()
{
super(DmlXML.NON_VISUAL_DRAWING_PROPS);
init();
}
//---------------------------------------------------------------------------
private void init()
{
setId(assignId() + "");
}
//---------------------------------------------------------------------------
private static synchronized int assignId()
{
return sIdSrc++;
}
//---------------------------------------------------------------------------
public DmlNonVisualDrawingProperties setName(String inValue)
{
setAttribute("name", inValue);
return this;
}
//---------------------------------------------------------------------------
public DmlNonVisualDrawingProperties setDescription(String inValue)
{
setAttribute("descr", inValue);
return this;
}
//---------------------------------------------------------------------------
public DmlNonVisualDrawingProperties setTitle(String inValue)
{
setAttribute("title", inValue);
return this;
}
//---------------------------------------------------------------------------
public DmlNonVisualDrawingProperties setId(String inValue)
{
setAttribute("id", inValue);
return this;
}
//---------------------------------------------------------------------------
public Integer getId()
{
return Integer.parseInt(getAttributeValue("id"));
}
//---------------------------------------------------------------------------
public DmlNonVisualDrawingProperties setHidden(boolean inValue)
{
setAttribute("hidden", inValue);
return this;
}
}