public class XWPFStyle extends Object
Modifier and Type | Field and Description |
---|---|
protected XWPFStyles |
styles |
Constructor and Description |
---|
XWPFStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style)
constructor
|
XWPFStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style,
XWPFStyles styles)
constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getBasisStyleID() |
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle |
getCTStyle()
get ctStyle
|
String |
getLinkStyleID()
get StyleID of the linked Style
|
String |
getName() |
String |
getNextStyleID()
get StyleID of the next style
|
String |
getStyleId()
get StyleID of the style
|
XWPFStyles |
getStyles()
get styles
|
org.openxmlformats.schemas.wordprocessingml.x2006.main.STStyleType.Enum |
getType()
get Type of the Style
|
boolean |
hasSameName(XWPFStyle compStyle)
compares the names of the Styles
|
void |
setStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style)
set style
|
void |
setStyleId(String styleId)
set styleID
|
void |
setType(org.openxmlformats.schemas.wordprocessingml.x2006.main.STStyleType.Enum type)
set styleType
|
protected XWPFStyles styles
public XWPFStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style)
style
- public XWPFStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style, XWPFStyles styles)
style
- styles
- public String getStyleId()
public org.openxmlformats.schemas.wordprocessingml.x2006.main.STStyleType.Enum getType()
public void setStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style)
style
- public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle getCTStyle()
public void setStyleId(String styleId)
styleId
- public void setType(org.openxmlformats.schemas.wordprocessingml.x2006.main.STStyleType.Enum type)
type
- public XWPFStyles getStyles()
public String getBasisStyleID()
public String getLinkStyleID()
public String getNextStyleID()
public String getName()
public boolean hasSameName(XWPFStyle compStyle)
compStyle
- Copyright © 2020. All rights reserved.