Package org.apache.poi.xwpf.usermodel
Class XWPFStyle
java.lang.Object
org.apache.poi.xwpf.usermodel.XWPFStyle
- Author:
- Philipp Epp
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXWPFStyle
(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style) constructorXWPFStyle
(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style, XWPFStyles styles) constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle
get ctStyleget StyleID of the linked StylegetName()
get StyleID of the next styleget StyleID of the styleget stylesorg.openxmlformats.schemas.wordprocessingml.x2006.main.STStyleType.Enum
getType()
get Type of the Styleboolean
hasSameName
(XWPFStyle compStyle) compares the names of the Stylesvoid
setStyle
(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style) set stylevoid
setStyleId
(String styleId) set styleIDvoid
setType
(org.openxmlformats.schemas.wordprocessingml.x2006.main.STStyleType.Enum type) set styleType
-
Field Details
-
styles
-
-
Constructor Details
-
XWPFStyle
public XWPFStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style) constructor- Parameters:
style
-
-
XWPFStyle
public XWPFStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style, XWPFStyles styles) constructor- Parameters:
style
-styles
-
-
-
Method Details
-
getStyleId
get StyleID of the style- Returns:
- styleID StyleID of the style
-
setStyleId
set styleID- Parameters:
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- Parameters:
type
-
-
setStyle
public void setStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style) set style- Parameters:
style
-
-
getCTStyle
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle getCTStyle()get ctStyle- Returns:
- ctStyle
-
getStyles
get styles- Returns:
- styles the styles to which this style belongs
-
getBasisStyleID
-
getLinkStyleID
get StyleID of the linked Style -
getNextStyleID
get StyleID of the next style -
getName
-
hasSameName
compares the names of the Styles- Parameters:
compStyle
-
-