Package org.apache.poi.xwpf.usermodel
Class XWPFStyle
- java.lang.Object
-
- org.apache.poi.xwpf.usermodel.XWPFStyle
-
public class XWPFStyle extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected XWPFStylesstyles
-
Constructor Summary
Constructors Constructor Description XWPFStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style)XWPFStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style, XWPFStyles styles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBasisStyleID()org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStylegetCTStyle()get ctStyleStringgetLinkStyleID()get StyleID of the linked StyleStringgetName()StringgetNextStyleID()get StyleID of the next styleStringgetStyleId()get StyleID of the styleXWPFStylesgetStyles()get stylesorg.openxmlformats.schemas.wordprocessingml.x2006.main.STStyleType.EnumgetType()get Type of the StylebooleanhasSameName(XWPFStyle compStyle)compares the names of the StylesvoidsetStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style)set stylevoidsetStyleId(String styleId)set styleIDvoidsetType(org.openxmlformats.schemas.wordprocessingml.x2006.main.STStyleType.Enum type)set styleType
-
-
-
Field Detail
-
styles
protected XWPFStyles styles
-
-
Constructor Detail
-
XWPFStyle
public XWPFStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style)
-
XWPFStyle
public XWPFStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style, XWPFStyles styles)
-
-
Method Detail
-
getStyleId
public String getStyleId()
get StyleID of the style- Returns:
- styleID StyleID of the style
-
setStyleId
public void setStyleId(String styleId)
set styleID
-
getType
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STStyleType.Enum getType()
get Type of the Style- Returns:
- ctType
-
setType
public void setType(org.openxmlformats.schemas.wordprocessingml.x2006.main.STStyleType.Enum type)
set styleType
-
setStyle
public void setStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style)
set style
-
getCTStyle
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle getCTStyle()
get ctStyle- Returns:
- ctStyle
-
getStyles
public XWPFStyles getStyles()
get styles- Returns:
- styles the styles to which this style belongs
-
getBasisStyleID
public String getBasisStyleID()
-
getLinkStyleID
public String getLinkStyleID()
get StyleID of the linked Style
-
getNextStyleID
public String getNextStyleID()
get StyleID of the next style
-
getName
public String getName()
-
hasSameName
public boolean hasSameName(XWPFStyle compStyle)
compares the names of the Styles
-
-