Package org.xlsx4j.sml
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.Longcmprotected CTExtensionListextLstprotected CTCellFormulafprotected CTRstisprotected java.lang.Booleanphprotected java.lang.Stringrprotected java.lang.Longsprotected STCellTypetprotected java.lang.Stringvprotected java.lang.Longvm -
Constructor Summary
Constructors Constructor Description Cell() -
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.longgetCm()Gets the value of the cm property.CTExtensionListgetExtLst()Gets the value of the extLst property.CTCellFormulagetF()Gets the value of the f (Formula) property.CTRstgetIs()Gets the value of the is (Rich Text Inline) property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.java.lang.StringgetR()Gets the value of the r (Reference) property.longgetS()Gets the value of the s (Style Index) property.STCellTypegetT()Gets the value of the t (Cell Data Type) property.java.lang.StringgetV()Gets the value of the v (Cell Value) property.longgetVm()Gets the value of the vm (Value Metadata Index) property.booleanisPh()Gets the value of the ph property.voidsetCm(java.lang.Long value)Sets the value of the cm property.voidsetExtLst(CTExtensionList value)Sets the value of the extLst property.voidsetF(CTCellFormula value)Sets the value of the f property.voidsetIs(CTRst value)Sets the value of the is property.voidsetParent(java.lang.Object parent)voidsetPh(java.lang.Boolean value)Sets the value of the ph property.voidsetR(java.lang.String value)Sets the value of the r property.voidsetS(java.lang.Long value)Sets the value of the s (Style Index) property.voidsetT(STCellType value)Sets the value of the t property.voidsetV(java.lang.String value)Sets the value of the v property.voidsetVm(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
-
v
protected java.lang.String v -
is
-
extLst
-
r
protected java.lang.String r -
s
protected java.lang.Long s -
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
Gets the value of the f (Formula) property.- Returns:
- possible object is
CTCellFormula
-
setF
Sets the value of the f property.- Parameters:
value- allowed object isCTCellFormula
-
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 isString
-
getIs
Gets the value of the is (Rich Text Inline) property.- Returns:
- possible object is
CTRst
-
setIs
Sets the value of the is property.- Parameters:
value- allowed object isCTRst
-
getExtLst
Gets the value of the extLst property.- Returns:
- possible object is
CTExtensionList
-
setExtLst
Sets the value of the extLst property.- Parameters:
value- allowed object isCTExtensionList
-
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 isString
-
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 isLong
-
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
Sets the value of the t property.- Parameters:
value- allowed object isSTCellType
-
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 isLong
-
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 isLong
-
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 isBoolean
-
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.
-