Package org.xlsx4j.sml
Class Cell
java.lang.Object
org.xlsx4j.sml.Cell
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent) This method is invoked by the JAXB implementation on each instance when unmarshalling completes.longgetCm()Gets the value of the cm property.Gets the value of the extLst property.getF()Gets the value of the f (Formula) property.getIs()Gets the value of the is (Rich Text Inline) property.Gets the parent object in the object tree representing the unmarshalled xml document.getR()Gets the value of the r (Reference) property.longgetS()Gets the value of the s (Style Index) property.getT()Gets the value of the t (Cell Data Type) property.getV()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.voidSets 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.voidSets the value of the is property.voidvoidSets the value of the ph property.voidSets the value of the r property.voidSets the value of the s (Style Index) property.voidsetT(STCellType value) Sets the value of the t property.voidSets the value of the v property.voidSets the value of the vm property.
-
Field Details
-
f
-
v
-
is
-
extLst
-
r
-
s
-
t
-
cm
-
vm
-
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
Gets the value of the v (Cell Value) property.- Returns:
- possible object is
String
-
setV
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
Gets the value of the r (Reference) property. An A1 style reference to the location of this cell.- Returns:
- possible object is
String
-
setR
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
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
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
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
Sets the value of the ph property.- Parameters:
value- allowed object isBoolean
-
getParent
Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
-
afterUnmarshal
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.
-