Package org.docx4j.wml
Class Fonts.Font
java.lang.Object
org.docx4j.wml.Fonts.Font
- All Implemented Interfaces:
Child
- Enclosing class:
- Fonts
public static class Fonts.Font 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="altName" 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="panose1" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Panose" minOccurs="0"/>
<element name="charset" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_UcharHexNumber" minOccurs="0"/>
<element name="family" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontFamily" minOccurs="0"/>
<element name="notTrueType" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
<element name="pitch" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Pitch" minOccurs="0"/>
<element name="sig" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontSig" minOccurs="0"/>
<element name="embedRegular" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
<element name="embedBold" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
<element name="embedItalic" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
<element name="embedBoldItalic" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_FontRel" minOccurs="0"/>
</sequence>
<attribute name="name" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
</restriction>
</complexContent>
</complexType>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFonts.Font.AltNameJava class for anonymous complex type. -
Field Summary
Fields Modifier and Type Field Description protected Fonts.Font.AltNamealtNameprotected CTUcharHexNumbercharsetprotected FontRelembedBoldprotected FontRelembedBoldItalicprotected FontRelembedItalicprotected FontRelembedRegularprotected FontFamilyfamilyprotected java.lang.Stringnameprotected BooleanDefaultTruenotTrueTypeprotected FontPanosepanose1protected FontPitchpitchprotected FontSigsig -
Constructor Summary
Constructors Constructor Description Font() -
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.Fonts.Font.AltNamegetAltName()Gets the value of the altName property.CTUcharHexNumbergetCharset()Gets the value of the charset property.FontRelgetEmbedBold()Gets the value of the embedBold property.FontRelgetEmbedBoldItalic()Gets the value of the embedBoldItalic property.FontRelgetEmbedItalic()Gets the value of the embedItalic property.FontRelgetEmbedRegular()Gets the value of the embedRegular property.FontFamilygetFamily()Gets the value of the family property.java.lang.StringgetName()Gets the value of the name property.BooleanDefaultTruegetNotTrueType()Gets the value of the notTrueType property.FontPanosegetPanose1()Gets the value of the panose1 property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.FontPitchgetPitch()Gets the value of the pitch property.FontSiggetSig()Gets the value of the sig property.voidsetAltName(Fonts.Font.AltName value)Sets the value of the altName property.voidsetCharset(CTUcharHexNumber value)Sets the value of the charset property.voidsetEmbedBold(FontRel value)Sets the value of the embedBold property.voidsetEmbedBoldItalic(FontRel value)Sets the value of the embedBoldItalic property.voidsetEmbedItalic(FontRel value)Sets the value of the embedItalic property.voidsetEmbedRegular(FontRel value)Sets the value of the embedRegular property.voidsetFamily(FontFamily value)Sets the value of the family property.voidsetName(java.lang.String value)Sets the value of the name property.voidsetNotTrueType(BooleanDefaultTrue value)Sets the value of the notTrueType property.voidsetPanose1(FontPanose value)Sets the value of the panose1 property.voidsetParent(java.lang.Object parent)voidsetPitch(FontPitch value)Sets the value of the pitch property.voidsetSig(FontSig value)Sets the value of the sig property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
altName
-
panose1
-
charset
-
family
-
notTrueType
-
pitch
-
sig
-
embedRegular
-
embedBold
-
embedItalic
-
embedBoldItalic
-
name
protected java.lang.String name
-
-
Constructor Details
-
Font
public Font()
-
-
Method Details
-
getAltName
Gets the value of the altName property.- Returns:
- possible object is
Fonts.Font.AltName
-
setAltName
Sets the value of the altName property.- Parameters:
value- allowed object isFonts.Font.AltName
-
getPanose1
Gets the value of the panose1 property.- Returns:
- possible object is
FontPanose
-
setPanose1
Sets the value of the panose1 property.- Parameters:
value- allowed object isFontPanose
-
getCharset
Gets the value of the charset property.- Returns:
- possible object is
CTUcharHexNumber
-
setCharset
Sets the value of the charset property.- Parameters:
value- allowed object isCTUcharHexNumber
-
getFamily
Gets the value of the family property.- Returns:
- possible object is
FontFamily
-
setFamily
Sets the value of the family property.- Parameters:
value- allowed object isFontFamily
-
getNotTrueType
Gets the value of the notTrueType property.- Returns:
- possible object is
BooleanDefaultTrue
-
setNotTrueType
Sets the value of the notTrueType property.- Parameters:
value- allowed object isBooleanDefaultTrue
-
getPitch
Gets the value of the pitch property.- Returns:
- possible object is
FontPitch
-
setPitch
Sets the value of the pitch property.- Parameters:
value- allowed object isFontPitch
-
getSig
Gets the value of the sig property.- Returns:
- possible object is
FontSig
-
setSig
Sets the value of the sig property.- Parameters:
value- allowed object isFontSig
-
getEmbedRegular
Gets the value of the embedRegular property.- Returns:
- possible object is
FontRel
-
setEmbedRegular
Sets the value of the embedRegular property.- Parameters:
value- allowed object isFontRel
-
getEmbedBold
Gets the value of the embedBold property.- Returns:
- possible object is
FontRel
-
setEmbedBold
Sets the value of the embedBold property.- Parameters:
value- allowed object isFontRel
-
getEmbedItalic
Gets the value of the embedItalic property.- Returns:
- possible object is
FontRel
-
setEmbedItalic
Sets the value of the embedItalic property.- Parameters:
value- allowed object isFontRel
-
getEmbedBoldItalic
Gets the value of the embedBoldItalic property.- Returns:
- possible object is
FontRel
-
setEmbedBoldItalic
Sets the value of the embedBoldItalic property.- Parameters:
value- allowed object isFontRel
-
getName
public java.lang.String getName()Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(java.lang.String value)Sets the value of the name 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.
-