Class CTFont

java.lang.Object
org.xlsx4j.sml.CTFont
All Implemented Interfaces:
Child

public class CTFont
extends java.lang.Object
implements Child

Java class for CT_Font complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CT_Font">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice maxOccurs="unbounded">
         <element name="name" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontName" minOccurs="0"/>
         <element name="charset" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IntProperty" minOccurs="0"/>
         <element name="family" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontFamily" minOccurs="0"/>
         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
         <element name="i" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
         <element name="strike" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
         <element name="outline" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
         <element name="shadow" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
         <element name="condense" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
         <element name="extend" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_BooleanProperty" minOccurs="0"/>
         <element name="color" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Color" minOccurs="0"/>
         <element name="sz" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontSize" minOccurs="0"/>
         <element name="u" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_UnderlineProperty" minOccurs="0"/>
         <element name="vertAlign" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_VerticalAlignFontProperty" minOccurs="0"/>
         <element name="scheme" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FontScheme" minOccurs="0"/>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected java.util.List<jakarta.xml.bind.JAXBElement<?>> nameOrCharsetOrFamily  
  • Constructor Summary

    Constructors
    Constructor Description
    CTFont()  
  • Method Summary

    Modifier and Type Method Description
    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.
    java.util.List<jakarta.xml.bind.JAXBElement<?>> getNameOrCharsetOrFamily()
    Gets the value of the nameOrCharsetOrFamily 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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • nameOrCharsetOrFamily

      protected java.util.List<jakarta.xml.bind.JAXBElement<?>> nameOrCharsetOrFamily
  • Constructor Details

    • CTFont

      public CTFont()
  • Method Details

    • getNameOrCharsetOrFamily

      public java.util.List<jakarta.xml.bind.JAXBElement<?>> getNameOrCharsetOrFamily()
      Gets the value of the nameOrCharsetOrFamily 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 nameOrCharsetOrFamily property.

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

          getNameOrCharsetOrFamily().add(newItem);
       

      Objects of the following type(s) are allowed in the list JAXBElement<CTBooleanProperty> JAXBElement<CTBooleanProperty> JAXBElement<CTBooleanProperty> JAXBElement<CTBooleanProperty> JAXBElement<CTFontSize> JAXBElement<CTFontScheme> JAXBElement<CTBooleanProperty> JAXBElement<CTFontFamily> JAXBElement<CTFontName> JAXBElement<CTColor> JAXBElement<CTUnderlineProperty> JAXBElement<CTBooleanProperty> JAXBElement<CTIntProperty> JAXBElement<CTVerticalAlignFontProperty> JAXBElement<CTBooleanProperty>

    • getParent

      public java.lang.Object getParent()
      Gets the parent object in the object tree representing the unmarshalled xml document.
      Specified by:
      getParent in interface Child
      Returns:
      The parent object.
    • setParent

      public void setParent​(java.lang.Object parent)
      Specified by:
      setParent in interface Child
    • 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.