Class Cell

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

public class Cell
extends java.lang.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 Summary

    Fields
    Modifier and Type Field Description
    protected java.lang.Long cm  
    protected CTExtensionList extLst  
    protected CTCellFormula f  
    protected CTRst is  
    protected java.lang.Boolean ph  
    protected java.lang.String r  
    protected java.lang.Long s  
    protected STCellType t  
    protected java.lang.String v  
    protected java.lang.Long vm  
  • Constructor Summary

    Constructors
    Constructor Description
    Cell()  
  • 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.
    long getCm()
    Gets the value of the cm property.
    CTExtensionList getExtLst()
    Gets the value of the extLst property.
    CTCellFormula getF()
    Gets the value of the f (Formula) property.
    CTRst getIs()
    Gets the value of the is (Rich Text Inline) property.
    java.lang.Object getParent()
    Gets the parent object in the object tree representing the unmarshalled xml document.
    java.lang.String getR()
    Gets the value of the r (Reference) property.
    long getS()
    Gets the value of the s (Style Index) property.
    STCellType getT()
    Gets the value of the t (Cell Data Type) property.
    java.lang.String getV()
    Gets the value of the v (Cell Value) property.
    long getVm()
    Gets the value of the vm (Value Metadata Index) property.
    boolean isPh()
    Gets the value of the ph property.
    void setCm​(java.lang.Long value)
    Sets the value of the cm property.
    void setExtLst​(CTExtensionList value)
    Sets the value of the extLst property.
    void setF​(CTCellFormula value)
    Sets the value of the f property.
    void setIs​(CTRst value)
    Sets the value of the is property.
    void setParent​(java.lang.Object parent)  
    void setPh​(java.lang.Boolean value)
    Sets the value of the ph property.
    void setR​(java.lang.String value)
    Sets the value of the r property.
    void setS​(java.lang.Long value)
    Sets the value of the s (Style Index) property.
    void setT​(STCellType value)
    Sets the value of the t property.
    void setV​(java.lang.String value)
    Sets the value of the v property.
    void setVm​(java.lang.Long value)
    Sets the value of the vm property.

    Methods inherited from class java.lang.Object

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

    • f

      protected CTCellFormula f
    • v

      protected java.lang.String v
    • is

      protected CTRst is
    • extLst

      protected CTExtensionList extLst
    • r

      protected java.lang.String r
    • s

      protected java.lang.Long s
    • t

      protected STCellType t
    • cm

      protected java.lang.Long cm
    • vm

      protected java.lang.Long vm
    • ph

      protected java.lang.Boolean ph
  • 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 java.lang.String getV()
      Gets the value of the v (Cell Value) property.
      Returns:
      possible object is String
    • setV

      public void setV​(java.lang.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 java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.Boolean value)
      Sets the value of the ph property.
      Parameters:
      value - allowed object is Boolean
    • 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.