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 WmlTableCellBorders extends XMLTag 009{ 010 //--------------------------------------------------------------------------- 011 public WmlTableCellBorders() 012 { 013 super(WmlXML.TABLE_CELL_BORDERS); 014 } 015 016 //--------------------------------------------------------------------------- 017 public WmlTableCellBorders addBorder(WmlTableCellBorder inBorder) 018 { 019 List<XMLTag> newTags = inBorder.toXMLTags(); 020 for (XMLTag newTag : newTags) 021 { 022 removeSubtagsByName(newTag.getTagName()); 023 addSubtag(newTag); 024 } 025 026 return this; 027 } 028 029}