All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hfg.xml.msofficexml.docx.drawingml.DmlNonVisualDrawingProperties Maven / Gradle / Ivy

There is a newer version: 20240423
Show newest version
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;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy