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

com.hfg.xml.msofficexml.docx.drawingml.DmlNonVisualPictureProperties 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 DmlNonVisualPictureProperties extends XMLTag
{
   DmlNonVisualDrawingProperties mNonVisualDrawingProperties;
   DmlNonVisualPictureDrawingProperties mNonVisualPictureDrawingProperties;

   //---------------------------------------------------------------------------
   public DmlNonVisualPictureProperties()
   {
      super(DmlXML.NON_VISUAL_PIC_PROPS);
   }

   //---------------------------------------------------------------------------
   /**
    * Returns the non-visual drawing properties tag if one exists or else instantiates a new one.
    * @return the non-visual drawing properties
    */
   public DmlNonVisualDrawingProperties getNonVisualDrawingProperties()
   {
      if (null == mNonVisualDrawingProperties)
      {
         // Check if it has been added via addSubtag()...
         mNonVisualDrawingProperties = (DmlNonVisualDrawingProperties) getOptionalSubtagByName(DmlXML.NON_VISUAL_DRAWING_PROPS);
         if (null == mNonVisualDrawingProperties)
         {
            mNonVisualDrawingProperties = new DmlNonVisualDrawingProperties();
            addSubtag(mNonVisualDrawingProperties);
         }
      }

      return mNonVisualDrawingProperties;
   }

   //---------------------------------------------------------------------------
   /**
    * Returns the non-visual drawing properties tag if one exists or else instantiates a new one.
    * @return the non-visual drawing properties
    */
   public DmlNonVisualPictureDrawingProperties getNonVisualPictureDrawingProperties()
   {
      if (null == mNonVisualPictureDrawingProperties)
      {
         // Check if it has been added via addSubtag()...
         mNonVisualPictureDrawingProperties = (DmlNonVisualPictureDrawingProperties) getOptionalSubtagByName(DmlXML.NON_VISUAL_PIC_DRAWING_PROPS);
         if (null == mNonVisualPictureDrawingProperties)
         {
            mNonVisualPictureDrawingProperties = new DmlNonVisualPictureDrawingProperties();
            addSubtag(mNonVisualPictureDrawingProperties);
         }
      }

      return mNonVisualPictureDrawingProperties;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy