Package org.docx4j.wml
Class Styles
java.lang.Object
org.docx4j.wml.Styles
- All Implemented Interfaces:
Child
public class Styles 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 ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}docDefaults" minOccurs="0"/>
<element name="latentStyles" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="lsdException" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="name" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
<attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="uiPriority" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
<attribute name="semiHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="unhideWhenUsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="qFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" />
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
<attribute name="defLockedState" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="defUIPriority" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
<attribute name="defSemiHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="defUnhideWhenUsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
<attribute name="defQFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
<attribute name="count" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
</restriction>
</complexContent>
</complexType>
</element>
<element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}style" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStyles.LatentStylesJava class for anonymous complex type. -
Field Summary
Fields Modifier and Type Field Description protected DocDefaultsdocDefaultsprotected java.lang.Stringignorableprotected Styles.LatentStyleslatentStylesprotected java.util.List<Style>style -
Constructor Summary
Constructors Constructor Description Styles() -
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.DocDefaultsgetDocDefaults()Gets the value of the docDefaults property.java.lang.StringgetIgnorable()Gets the value of the ignorable property.Styles.LatentStylesgetLatentStyles()Gets the value of the latentStyles property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.java.util.List<Style>getStyle()Gets the value of the style property.voidsetDocDefaults(DocDefaults value)Sets the value of the docDefaults property.voidsetIgnorable(java.lang.String value)Sets the value of the ignorable property.voidsetLatentStyles(Styles.LatentStyles value)Sets the value of the latentStyles property.voidsetParent(java.lang.Object parent)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ignorable
protected java.lang.String ignorable -
docDefaults
-
latentStyles
-
style
-
-
Constructor Details
-
Styles
public Styles()
-
-
Method Details
-
getDocDefaults
Gets the value of the docDefaults property.- Returns:
- possible object is
DocDefaults
-
setDocDefaults
Sets the value of the docDefaults property.- Parameters:
value- allowed object isDocDefaults
-
getLatentStyles
Gets the value of the latentStyles property.- Returns:
- possible object is
Styles.LatentStyles
-
setLatentStyles
Sets the value of the latentStyles property.- Parameters:
value- allowed object isStyles.LatentStyles
-
getStyle
Gets the value of the style 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 style property.For example, to add a new item, do as follows:
getStyle().add(newItem);Objects of the following type(s) are allowed in the list
Style -
getIgnorable
public java.lang.String getIgnorable()Gets the value of the ignorable property.- Returns:
- possible object is
String
-
setIgnorable
public void setIgnorable(java.lang.String value)Sets the value of the ignorable property.- Parameters:
value- allowed object isString
-
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.
-