Package org.apache.poi.xwpf.usermodel
Class XWPFStyle
- java.lang.Object
-
- org.apache.poi.xwpf.usermodel.XWPFStyle
-
public class XWPFStyle extends Object
-
-
Constructor Summary
Constructors Constructor Description XWPFStyle(CTStyle style)constructorXWPFStyle(CTStyle style, XWPFStyles styles)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBasisStyleID()CTStylegetCTStyle()get ctStyleStringgetLinkStyleID()get StyleID of the linked StyleStringgetName()StringgetNextStyleID()get StyleID of the next styleStringgetStyleId()get StyleID of the styleXWPFStylesgetStyles()get stylesSTStyleType.EnumgetType()get Type of the StylebooleanhasSameName(XWPFStyle compStyle)compares the names of the StylesvoidsetStyle(CTStyle style)set stylevoidsetStyleId(String styleId)set styleIDvoidsetType(STStyleType.Enum type)set styleType
-
-
-
Constructor Detail
-
XWPFStyle
public XWPFStyle(CTStyle style)
constructor- Parameters:
style-
-
XWPFStyle
public XWPFStyle(CTStyle style, XWPFStyles styles)
constructor- Parameters:
style-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- Parameters:
styleId-
-
getType
public STStyleType.Enum getType()
get Type of the Style- Returns:
- ctType
-
setType
public void setType(STStyleType.Enum type)
set styleType- Parameters:
type-
-
setStyle
public void setStyle(CTStyle style)
set style- Parameters:
style-
-
getCTStyle
public 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- Parameters:
compStyle-
-
-