org.docx4j.wml
Class Fonts

java.lang.Object
  extended by org.docx4j.wml.Fonts
All Implemented Interfaces:
org.jvnet.jaxb2_commons.ppp.Child

public class Fonts
extends java.lang.Object
implements org.jvnet.jaxb2_commons.ppp.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="font" maxOccurs="unbounded" minOccurs="0">
           <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>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class Fonts.Font
          Java class for anonymous complex type.
 
Constructor Summary
Fonts()
           
 
Method Summary
 void afterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)
          This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
 java.util.List<Fonts.Font> getFont()
          Gets the value of the font property.
 java.lang.Object getParent()
          Gets the parent object in the object tree representing the unmarshalled xml document.
 void setParent(java.lang.Object parent)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fonts

public Fonts()
Method Detail

afterUnmarshal

public void afterUnmarshal(javax.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.

getFont

public java.util.List<Fonts.Font> getFont()
Gets the value of the font 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 set method for the font property.

For example, to add a new item, do as follows:

    getFont().add(newItem);
 

Objects of the following type(s) are allowed in the list Fonts.Font


getParent

public java.lang.Object getParent()
Gets the parent object in the object tree representing the unmarshalled xml document.

Specified by:
getParent in interface org.jvnet.jaxb2_commons.ppp.Child
Returns:
The parent object.

setParent

public void setParent(java.lang.Object parent)
Specified by:
setParent in interface org.jvnet.jaxb2_commons.ppp.Child