001package com.hfg.xml.msofficexml.docx.wordprocessingml.style;
002
003import com.hfg.xml.XMLTag;
004import com.hfg.xml.msofficexml.docx.wordprocessingml.WmlXML;
005
006import java.util.List;
007
008public class WmlTableBorders extends XMLTag
009{
010   //---------------------------------------------------------------------------
011   public WmlTableBorders()
012   {
013      super(WmlXML.TABLE_BORDERS);
014   }
015
016   //---------------------------------------------------------------------------
017   public WmlTableBorders addBorder(WmlTableBorder inBorder)
018   {
019      List<XMLTag> newTags = inBorder.toXMLTags();
020      for (XMLTag newTag : newTags)
021      {
022         removeSubtagsByName(newTag.getTagName());
023//         newTag.setContent("");
024         addSubtag(newTag);
025      }
026
027      return this;
028   }
029}