Package org.docx4j.wml
Class Style
java.lang.Object
org.docx4j.wml.Style
- All Implemented Interfaces:
Child
public class Style extends java.lang.Object implements 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 Classes Modifier and Type Class Description static classStyle.AliasesJava class for anonymous complex type.static classStyle.BasedOnJava class for anonymous complex type.static classStyle.LinkJava class for anonymous complex type.static classStyle.NameJava class for anonymous complex type.static classStyle.NextJava class for anonymous complex type.static classStyle.UiPriorityJava class for anonymous complex type. -
Field Summary
Fields Modifier and Type Field Description protected java.lang.Boolean_defaultprotected Style.Aliasesaliasesprotected BooleanDefaultTrueautoRedefineprotected Style.BasedOnbasedOnprotected java.lang.BooleancustomStyleprotected BooleanDefaultTruehiddenprotected Style.Linklinkprotected BooleanDefaultTruelockedprotected Style.Namenameprotected Style.Nextnextprotected BooleanDefaultTruepersonalprotected BooleanDefaultTruepersonalComposeprotected BooleanDefaultTruepersonalReplyprotected PPrpPrprotected BooleanDefaultTrueqFormatprotected RPrrPrprotected CTLongHexNumberrsidprotected BooleanDefaultTruesemiHiddenprotected java.lang.StringstyleIdprotected CTTblPrBasetblPrprotected java.util.List<CTTblStylePr>tblStylePrprotected TcPrtcPrprotected TrPrtrPrprotected java.lang.Stringtypeprotected Style.UiPriorityuiPriorityprotected BooleanDefaultTrueunhideWhenUsed -
Constructor Summary
Constructors Constructor Description Style() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.Style.AliasesgetAliases()Gets the value of the aliases property.BooleanDefaultTruegetAutoRedefine()Gets the value of the autoRedefine property.Style.BasedOngetBasedOn()Gets the value of the basedOn property.BooleanDefaultTruegetHidden()Gets the value of the hidden property.Style.LinkgetLink()Gets the value of the link property.BooleanDefaultTruegetLocked()Gets the value of the locked property.Style.NamegetName()Gets the value of the name property.Style.NextgetNext()Gets the value of the next property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.BooleanDefaultTruegetPersonal()Gets the value of the personal property.BooleanDefaultTruegetPersonalCompose()Gets the value of the personalCompose property.BooleanDefaultTruegetPersonalReply()Gets the value of the personalReply property.PPrgetPPr()Gets the value of the pPr property.BooleanDefaultTruegetQFormat()Gets the value of the qFormat property.RPrgetRPr()Gets the value of the rPr property.CTLongHexNumbergetRsid()Gets the value of the rsid property.BooleanDefaultTruegetSemiHidden()Gets the value of the semiHidden property.java.lang.StringgetStyleId()Gets the value of the styleId property.CTTblPrBasegetTblPr()Gets the value of the tblPr property.java.util.List<CTTblStylePr>getTblStylePr()Gets the value of the tblStylePr property.TcPrgetTcPr()Gets the value of the tcPr property.TrPrgetTrPr()Gets the value of the trPr property.java.lang.StringgetType()Gets the value of the type property.Style.UiPrioritygetUiPriority()Gets the value of the uiPriority property.BooleanDefaultTruegetUnhideWhenUsed()Gets the value of the unhideWhenUsed property.booleanisCustomStyle()Gets the value of the customStyle property.booleanisDefault()Gets the value of the default property.voidsetAliases(Style.Aliases value)Sets the value of the aliases property.voidsetAutoRedefine(BooleanDefaultTrue value)Sets the value of the autoRedefine property.voidsetBasedOn(Style.BasedOn value)Sets the value of the basedOn property.voidsetCustomStyle(java.lang.Boolean value)Sets the value of the customStyle property.voidsetDefault(java.lang.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.voidsetParent(java.lang.Object parent)voidsetPersonal(BooleanDefaultTrue value)Sets the value of the personal property.voidsetPersonalCompose(BooleanDefaultTrue value)Sets the value of the personalCompose property.voidsetPersonalReply(BooleanDefaultTrue value)Sets the value of the personalReply property.voidsetPPr(PPr value)Sets the value of the pPr property.voidsetQFormat(BooleanDefaultTrue value)Sets the value of the qFormat property.voidsetRPr(RPr value)Sets 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(java.lang.String value)Sets the value of the styleId property.voidsetTblPr(CTTblPrBase value)Sets the value of the tblPr property.voidsetTcPr(TcPr value)Sets the value of the tcPr property.voidsetTrPr(TrPr value)Sets the value of the trPr property.voidsetType(java.lang.String value)Sets the value of the type property.voidsetUiPriority(Style.UiPriority value)Sets the value of the uiPriority property.voidsetUnhideWhenUsed(BooleanDefaultTrue value)Sets the value of the unhideWhenUsed property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
name
-
aliases
-
basedOn
-
next
-
link
-
autoRedefine
-
uiPriority
-
semiHidden
-
unhideWhenUsed
-
qFormat
-
locked
-
personal
-
personalCompose
-
personalReply
-
rsid
-
pPr
-
rPr
-
tblPr
-
trPr
-
tcPr
-
tblStylePr
-
type
protected java.lang.String type -
styleId
protected java.lang.String styleId -
_default
protected java.lang.Boolean _default -
customStyle
protected java.lang.Boolean 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
public java.lang.String getType()Gets the value of the type property.- Returns:
- possible object is
String
-
setType
public void setType(java.lang.String value)Sets the value of the type property.- Parameters:
value- allowed object isString
-
getStyleId
public java.lang.String getStyleId()Gets the value of the styleId property.- Returns:
- possible object is
String
-
setStyleId
public void setStyleId(java.lang.String value)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
public void setDefault(java.lang.Boolean value)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
public void setCustomStyle(java.lang.Boolean value)Sets the value of the customStyle property.- Parameters:
value- allowed object isBoolean
-
getParent
public java.lang.Object getParent()Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
public void setParent(java.lang.Object parent) -
afterUnmarshal
public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)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.
-