Class Cell

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

public class Cell extends Object implements Child

Java class for CT_Cell complex type.

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

 <complexType name="CT_Cell">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="f" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellFormula" minOccurs="0"/>
         <element name="v" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" minOccurs="0"/>
         <element name="is" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Rst" minOccurs="0"/>
         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
       </sequence>
       <attribute name="r" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellRef" />
       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellType" default="n" />
       <attribute name="cm" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="vm" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="ph" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Cell

      public Cell()
  • Method Details

    • getF

      public CTCellFormula getF()
      Gets the value of the f (Formula) property.
      Returns:
      possible object is CTCellFormula
    • setF

      public void setF(CTCellFormula value)
      Sets the value of the f property.
      Parameters:
      value - allowed object is CTCellFormula
    • getV

      public String getV()
      Gets the value of the v (Cell Value) property.
      Returns:
      possible object is String
    • setV

      public void setV(String value)
      Sets the value of the v property.
      Parameters:
      value - allowed object is String
    • getIs

      public CTRst getIs()
      Gets the value of the is (Rich Text Inline) property.
      Returns:
      possible object is CTRst
    • setIs

      public void setIs(CTRst value)
      Sets the value of the is property.
      Parameters:
      value - allowed object is CTRst
    • getExtLst

      public CTExtensionList getExtLst()
      Gets the value of the extLst property.
      Returns:
      possible object is CTExtensionList
    • setExtLst

      public void setExtLst(CTExtensionList value)
      Sets the value of the extLst property.
      Parameters:
      value - allowed object is CTExtensionList
    • getR

      public String getR()
      Gets the value of the r (Reference) property. An A1 style reference to the location of this cell.
      Returns:
      possible object is String
    • setR

      public void setR(String value)
      Sets the value of the r property.
      Parameters:
      value - allowed object is String
    • getS

      public long getS()
      Gets the value of the s (Style Index) property. The index of this cell's style. Style records are stored in the Styles Part.
      Returns:
      possible object is Long
    • setS

      public void setS(Long value)
      Sets the value of the s (Style Index) property. The index of this cell's style. Style records are stored in the Styles Part.
      Parameters:
      value - allowed object is Long
    • getT

      public STCellType getT()
      Gets the value of the t (Cell Data Type) property. An enumeration representing the cell's data type.
      Returns:
      possible object is STCellType
    • setT

      public void setT(STCellType value)
      Sets the value of the t property.
      Parameters:
      value - allowed object is STCellType
    • getCm

      public long getCm()
      Gets the value of the cm property.
      Returns:
      possible object is Long
    • setCm

      public void setCm(Long value)
      Sets the value of the cm property.
      Parameters:
      value - allowed object is Long
    • getVm

      public long getVm()
      Gets the value of the vm (Value Metadata Index) property. The zero-based index of the value metadata record associated with this cell's value. Metadata records are stored in the Metadata Part. Value metadata is extra information stored at the cell level, but associated with the value rather than the cell itself. Value metadata is accessible via formula reference.
      Returns:
      possible object is Long
    • setVm

      public void setVm(Long value)
      Sets the value of the vm property.
      Parameters:
      value - allowed object is Long
    • isPh

      public boolean isPh()
      Gets the value of the ph property.
      Returns:
      possible object is Boolean
    • setPh

      public void setPh(Boolean value)
      Sets the value of the ph property.
      Parameters:
      value - allowed object is Boolean
    • getParent

      public 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(Object parent)
      Specified by:
      setParent in interface Child
    • afterUnmarshal

      public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, 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.