Package org.docx4j.wml
Class Style
java.lang.Object
org.docx4j.wml.Style
- All Implemented Interfaces:
Child
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="name" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="aliases" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="basedOn" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="next" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="link" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="autoRedefine" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
<element name="hidden" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
<element name="uiPriority" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="val" use="required">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}integer">
</restriction>
</simpleType>
</attribute>
</restriction>
</complexContent>
</complexType>
</element>
<element name="semiHidden" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
<element name="unhideWhenUsed" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
<element name="qFormat" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
<element name="locked" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
<element name="personal" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
<element name="personalCompose" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
<element name="personalReply" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
<element name="rsid" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_LongHexNumber" minOccurs="0"/>
<element name="pPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_PPr" minOccurs="0"/>
<element name="rPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_RPr" minOccurs="0"/>
<element name="tblPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblPrBase" minOccurs="0"/>
<element name="trPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TrPr" minOccurs="0"/>
<element name="tcPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TcPr" minOccurs="0"/>
<element name="tblStylePr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblStylePr" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="type">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="paragraph"/>
<enumeration value="character"/>
<enumeration value="table"/>
<enumeration value="numbering"/>
</restriction>
</simpleType>
</attribute>
<attribute name="styleId" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
<attribute name="default" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="customStyle" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
</restriction>
</complexContent>
</complexType>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJava class for anonymous complex type.static classJava class for anonymous complex type.static classJava class for anonymous complex type.static classJava class for anonymous complex type.static classJava class for anonymous complex type.static classJava class for anonymous complex type. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Style.Aliasesprotected BooleanDefaultTrueprotected Style.BasedOnprotected Booleanprotected BooleanDefaultTrueprotected Style.Linkprotected BooleanDefaultTrueprotected Style.Nameprotected Style.Nextprotected BooleanDefaultTrueprotected BooleanDefaultTrueprotected BooleanDefaultTrueprotected PPrprotected BooleanDefaultTrueprotected RPrprotected CTLongHexNumberprotected BooleanDefaultTrueprotected Stringprotected CTTblPrBaseprotected List<CTTblStylePr>protected TcPrprotected TrPrprotected Stringprotected Style.UiPriorityprotected BooleanDefaultTrue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent) This method is invoked by the JAXB implementation on each instance when unmarshalling completes.Gets the value of the aliases property.Gets the value of the autoRedefine property.Gets the value of the basedOn property.Gets the value of the hidden property.getLink()Gets the value of the link property.Gets the value of the locked property.getName()Gets the value of the name property.getNext()Gets the value of the next property.Gets the parent object in the object tree representing the unmarshalled xml document.Gets the value of the personal property.Gets the value of the personalCompose property.Gets the value of the personalReply property.getPPr()Gets the value of the pPr property.Gets the value of the qFormat property.getRPr()Gets the value of the rPr property.getRsid()Gets the value of the rsid property.Gets the value of the semiHidden property.Gets the value of the styleId property.getTblPr()Gets the value of the tblPr property.Gets the value of the tblStylePr property.getTcPr()Gets the value of the tcPr property.getTrPr()Gets the value of the trPr property.getType()Gets the value of the type property.Gets the value of the uiPriority property.Gets the value of the unhideWhenUsed property.booleanGets the value of the customStyle property.booleanGets the value of the default property.voidsetAliases(Style.Aliases value) Sets the value of the aliases property.voidSets the value of the autoRedefine property.voidsetBasedOn(Style.BasedOn value) Sets the value of the basedOn property.voidsetCustomStyle(Boolean value) Sets the value of the customStyle property.voidsetDefault(Boolean value) Sets the value of the default property.voidsetHidden(BooleanDefaultTrue value) Sets the value of the hidden property.voidsetLink(Style.Link value) Sets the value of the link property.voidsetLocked(BooleanDefaultTrue value) Sets the value of the locked property.voidsetName(Style.Name value) Sets the value of the name property.voidsetNext(Style.Next value) Sets the value of the next property.voidvoidsetPersonal(BooleanDefaultTrue value) Sets the value of the personal property.voidSets the value of the personalCompose property.voidSets the value of the personalReply property.voidSets the value of the pPr property.voidsetQFormat(BooleanDefaultTrue value) Sets the value of the qFormat property.voidSets the value of the rPr property.voidsetRsid(CTLongHexNumber value) Sets the value of the rsid property.voidsetSemiHidden(BooleanDefaultTrue value) Sets the value of the semiHidden property.voidsetStyleId(String value) Sets the value of the styleId property.voidsetTblPr(CTTblPrBase value) Sets the value of the tblPr property.voidSets the value of the tcPr property.voidSets the value of the trPr property.voidSets the value of the type property.voidsetUiPriority(Style.UiPriority value) Sets the value of the uiPriority property.voidSets the value of the unhideWhenUsed property.
-
Field Details
-
name
-
aliases
-
basedOn
-
next
-
link
-
autoRedefine
-
uiPriority
-
semiHidden
-
unhideWhenUsed
-
qFormat
-
locked
-
personal
-
personalCompose
-
personalReply
-
rsid
-
pPr
-
rPr
-
tblPr
-
trPr
-
tcPr
-
tblStylePr
-
type
-
styleId
-
_default
-
customStyle
-
-
Constructor Details
-
Style
public Style()
-
-
Method Details
-
getName
Gets the value of the name property.- Returns:
- possible object is
Style.Name
-
setName
Sets the value of the name property.- Parameters:
value- allowed object isStyle.Name
-
getAliases
Gets the value of the aliases property.- Returns:
- possible object is
Style.Aliases
-
setAliases
Sets the value of the aliases property.- Parameters:
value- allowed object isStyle.Aliases
-
getBasedOn
Gets the value of the basedOn property.- Returns:
- possible object is
Style.BasedOn
-
setBasedOn
Sets the value of the basedOn property.- Parameters:
value- allowed object isStyle.BasedOn
-
getNext
Gets the value of the next property.- Returns:
- possible object is
Style.Next
-
setNext
Sets the value of the next property.- Parameters:
value- allowed object isStyle.Next
-
getLink
Gets the value of the link property.- Returns:
- possible object is
Style.Link
-
setLink
Sets the value of the link property.- Parameters:
value- allowed object isStyle.Link
-
getAutoRedefine
Gets the value of the autoRedefine property.- Returns:
- possible object is
BooleanDefaultTrue
-
setAutoRedefine
Sets the value of the autoRedefine property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getHidden
Gets the value of the hidden property.- Returns:
- possible object is
BooleanDefaultTrue
-
setHidden
Sets the value of the hidden property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getUiPriority
Gets the value of the uiPriority property.- Returns:
- possible object is
Style.UiPriority
-
setUiPriority
Sets the value of the uiPriority property.- Parameters:
value- allowed object isStyle.UiPriority
-
getSemiHidden
Gets the value of the semiHidden property.- Returns:
- possible object is
BooleanDefaultTrue
-
setSemiHidden
Sets the value of the semiHidden property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getUnhideWhenUsed
Gets the value of the unhideWhenUsed property.- Returns:
- possible object is
BooleanDefaultTrue
-
setUnhideWhenUsed
Sets the value of the unhideWhenUsed property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getQFormat
Gets the value of the qFormat property.- Returns:
- possible object is
BooleanDefaultTrue
-
setQFormat
Sets the value of the qFormat property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getLocked
Gets the value of the locked property.- Returns:
- possible object is
BooleanDefaultTrue
-
setLocked
Sets the value of the locked property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getPersonal
Gets the value of the personal property.- Returns:
- possible object is
BooleanDefaultTrue
-
setPersonal
Sets the value of the personal property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getPersonalCompose
Gets the value of the personalCompose property.- Returns:
- possible object is
BooleanDefaultTrue
-
setPersonalCompose
Sets the value of the personalCompose property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getPersonalReply
Gets the value of the personalReply property.- Returns:
- possible object is
BooleanDefaultTrue
-
setPersonalReply
Sets the value of the personalReply property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getRsid
Gets the value of the rsid property.- Returns:
- possible object is
CTLongHexNumber
-
setRsid
Sets the value of the rsid property.- Parameters:
value- allowed object isCTLongHexNumber
-
getPPr
Gets the value of the pPr property.- Returns:
- possible object is
PPr
-
setPPr
Sets the value of the pPr property.- Parameters:
value- allowed object isPPr
-
getRPr
Gets the value of the rPr property.- Returns:
- possible object is
RPr
-
setRPr
Sets the value of the rPr property.- Parameters:
value- allowed object isRPr
-
getTblPr
Gets the value of the tblPr property.- Returns:
- possible object is
CTTblPrBase
-
setTblPr
Sets the value of the tblPr property.- Parameters:
value- allowed object isCTTblPrBase
-
getTrPr
Gets the value of the trPr property.- Returns:
- possible object is
TrPr
-
setTrPr
Sets the value of the trPr property.- Parameters:
value- allowed object isTrPr
-
getTcPr
Gets the value of the tcPr property.- Returns:
- possible object is
TcPr
-
setTcPr
Sets the value of the tcPr property.- Parameters:
value- allowed object isTcPr
-
getTblStylePr
Gets the value of the tblStylePr property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the tblStylePr property.For example, to add a new item, do as follows:
getTblStylePr().add(newItem);Objects of the following type(s) are allowed in the list
CTTblStylePr -
getType
Gets the value of the type property.- Returns:
- possible object is
String
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isString
-
getStyleId
Gets the value of the styleId property.- Returns:
- possible object is
String
-
setStyleId
Sets the value of the styleId property.- Parameters:
value- allowed object isString
-
isDefault
public boolean isDefault()Gets the value of the default property.- Returns:
- possible object is
Boolean
-
setDefault
Sets the value of the default property.- Parameters:
value- allowed object isBoolean
-
isCustomStyle
public boolean isCustomStyle()Gets the value of the customStyle property.- Returns:
- possible object is
Boolean
-
setCustomStyle
Sets the value of the customStyle property.- Parameters:
value- allowed object isBoolean
-
getParent
Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
-
afterUnmarshal
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-