Package org.apache.poi.xwpf.usermodel
Class XWPFStyle
- java.lang.Object
-
- org.apache.poi.xwpf.usermodel.XWPFStyle
-
public class XWPFStyle extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XWPFStyle(CTStyle style)
XWPFStyle(CTStyle style, XWPFStyles styles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBasisStyleID()
CTStyle
getCTStyle()
get ctStylejava.lang.String
getLinkStyleID()
get StyleID of the linked Stylejava.lang.String
getName()
java.lang.String
getNextStyleID()
get StyleID of the next stylejava.lang.String
getStyleId()
get StyleID of the styleXWPFStyles
getStyles()
get stylesSTStyleType.Enum
getType()
get Type of the Styleboolean
hasSameName(XWPFStyle compStyle)
compares the names of the Stylesvoid
setStyle(CTStyle style)
set stylevoid
setStyleId(java.lang.String styleId)
set styleIDvoid
setType(STStyleType.Enum type)
set styleType
-
-
-
Constructor Detail
-
XWPFStyle
public XWPFStyle(CTStyle style)
-
XWPFStyle
public XWPFStyle(CTStyle style, XWPFStyles styles)
-
-
Method Detail
-
getStyleId
public java.lang.String getStyleId()
get StyleID of the style- Returns:
- styleID StyleID of the style
-
setStyleId
public void setStyleId(java.lang.String styleId)
set styleID
-
getType
public STStyleType.Enum getType()
get Type of the Style- Returns:
- ctType
-
setType
public void setType(STStyleType.Enum type)
set styleType
-
setStyle
public void setStyle(CTStyle style)
set 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 java.lang.String getBasisStyleID()
-
getLinkStyleID
public java.lang.String getLinkStyleID()
get StyleID of the linked Style
-
getNextStyleID
public java.lang.String getNextStyleID()
get StyleID of the next style
-
getName
public java.lang.String getName()
-
hasSameName
public boolean hasSameName(XWPFStyle compStyle)
compares the names of the Styles
-
-