Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2010-2013, Plutext Pty Ltd.
   *   
   *  This file is part of xlsx4j, a component of docx4j.
  
      docx4j is licensed under the Apache License, Version 2.0 (the "License"); 
      you may not use this file except in compliance with the License. 
  
      You may obtain a copy of the License at 
 
         http://www.apache.org/licenses/LICENSE-2.0 
 
     Unless required by applicable law or agreed to in writing, software 
     distributed under the License is distributed on an "AS IS" BASIS, 
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     See the License for the specific language governing permissions and 
     limitations under the License.
 
  */
 package org.xlsx4j.sml;
 

Java class for CT_Xf complex type.

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

 <complexType name="CT_Xf">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="alignment" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellAlignment" minOccurs="0"/>
         <element name="protection" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_CellProtection" minOccurs="0"/>
         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
       </sequence>
       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
       <attribute name="fontId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FontId" />
       <attribute name="fillId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FillId" />
       <attribute name="borderId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_BorderId" />
       <attribute name="xfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellStyleXfId" />
       <attribute name="quotePrefix" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="pivotButton" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="applyNumberFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" />
       <attribute name="applyFont" type="{http://www.w3.org/2001/XMLSchema}boolean" />
       <attribute name="applyFill" type="{http://www.w3.org/2001/XMLSchema}boolean" />
       <attribute name="applyBorder" type="{http://www.w3.org/2001/XMLSchema}boolean" />
       <attribute name="applyAlignment" type="{http://www.w3.org/2001/XMLSchema}boolean" />
       <attribute name="applyProtection" type="{http://www.w3.org/2001/XMLSchema}boolean" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_Xf", propOrder = {
     "alignment",
     "protection",
     "extLst"
 })
 public class CTXf implements Child
 {
 
     protected CTCellAlignment alignment;
     protected CTCellProtection protection;
     protected CTExtensionList extLst;
     @XmlAttribute(name = "numFmtId")
     protected Long numFmtId;
     @XmlAttribute(name = "fontId")
     protected Long fontId;
     @XmlAttribute(name = "fillId")
     protected Long fillId;
     @XmlAttribute(name = "borderId")
     protected Long borderId;
     @XmlAttribute(name = "xfId")
     protected Long xfId;
     @XmlAttribute(name = "quotePrefix")
     protected Boolean quotePrefix;
     @XmlAttribute(name = "pivotButton")
     protected Boolean pivotButton;
     @XmlAttribute(name = "applyNumberFormat")
     protected Boolean applyNumberFormat;
     @XmlAttribute(name = "applyFont")
     protected Boolean applyFont;
     @XmlAttribute(name = "applyFill")
     protected Boolean applyFill;
     @XmlAttribute(name = "applyBorder")
     protected Boolean applyBorder;
     @XmlAttribute(name = "applyAlignment")
    protected Boolean applyAlignment;
    @XmlAttribute(name = "applyProtection")
    protected Boolean applyProtection;
    private Object parent;

    
Gets the value of the alignment property.

Returns:
possible object is
    public CTCellAlignment getAlignment() {
        return ;
    }

    
Sets the value of the alignment property.

Parameters:
value allowed object is
    public void setAlignment(CTCellAlignment value) {
        this. = value;
    }

    
Gets the value of the protection property.

Returns:
possible object is
    public CTCellProtection getProtection() {
        return ;
    }

    
Sets the value of the protection property.

Parameters:
value allowed object is
    public void setProtection(CTCellProtection value) {
        this. = value;
    }

    
Gets the value of the extLst property.

Returns:
possible object is
    public CTExtensionList getExtLst() {
        return ;
    }

    
Sets the value of the extLst property.

Parameters:
value allowed object is
    public void setExtLst(CTExtensionList value) {
        this. = value;
    }

    
Gets the value of the numFmtId property.

Returns:
possible object is
    public Long getNumFmtId() {
        return ;
    }

    
Sets the value of the numFmtId property.

Parameters:
value allowed object is
    public void setNumFmtId(Long value) {
        this. = value;
    }

    
Gets the value of the fontId property.

Returns:
possible object is
    public Long getFontId() {
        return ;
    }

    
Sets the value of the fontId property.

Parameters:
value allowed object is
    public void setFontId(Long value) {
        this. = value;
    }

    
Gets the value of the fillId property.

Returns:
possible object is
    public Long getFillId() {
        return ;
    }

    
Sets the value of the fillId property.

Parameters:
value allowed object is
    public void setFillId(Long value) {
        this. = value;
    }

    
Gets the value of the borderId property.

Returns:
possible object is
    public Long getBorderId() {
        return ;
    }

    
Sets the value of the borderId property.

Parameters:
value allowed object is
    public void setBorderId(Long value) {
        this. = value;
    }

    
Gets the value of the xfId property.

Returns:
possible object is
    public Long getXfId() {
        return ;
    }

    
Sets the value of the xfId property.

Parameters:
value allowed object is
    public void setXfId(Long value) {
        this. = value;
    }

    
Gets the value of the quotePrefix property.

Returns:
possible object is
    public boolean isQuotePrefix() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the quotePrefix property.

Parameters:
value allowed object is
    public void setQuotePrefix(Boolean value) {
        this. = value;
    }

    
Gets the value of the pivotButton property.

Returns:
possible object is
    public boolean isPivotButton() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the pivotButton property.

Parameters:
value allowed object is
    public void setPivotButton(Boolean value) {
        this. = value;
    }

    
Gets the value of the applyNumberFormat property.

Returns:
possible object is
    public Boolean isApplyNumberFormat() {
        return ;
    }

    
Sets the value of the applyNumberFormat property.

Parameters:
value allowed object is
    public void setApplyNumberFormat(Boolean value) {
        this. = value;
    }

    
Gets the value of the applyFont property.

Returns:
possible object is
    public Boolean isApplyFont() {
        return ;
    }

    
Sets the value of the applyFont property.

Parameters:
value allowed object is
    public void setApplyFont(Boolean value) {
        this. = value;
    }

    
Gets the value of the applyFill property.

Returns:
possible object is
    public Boolean isApplyFill() {
        return ;
    }

    
Sets the value of the applyFill property.

Parameters:
value allowed object is
    public void setApplyFill(Boolean value) {
        this. = value;
    }

    
Gets the value of the applyBorder property.

Returns:
possible object is
    public Boolean isApplyBorder() {
        return ;
    }

    
Sets the value of the applyBorder property.

Parameters:
value allowed object is
    public void setApplyBorder(Boolean value) {
        this. = value;
    }

    
Gets the value of the applyAlignment property.

Returns:
possible object is
    public Boolean isApplyAlignment() {
        return ;
    }

    
Sets the value of the applyAlignment property.

Parameters:
value allowed object is
    public void setApplyAlignment(Boolean value) {
        this. = value;
    }

    
Gets the value of the applyProtection property.

Returns:
possible object is
    public Boolean isApplyProtection() {
        return ;
    }

    
Sets the value of the applyProtection property.

Parameters:
value allowed object is
    public void setApplyProtection(Boolean value) {
        this. = value;
    }

    
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
    public Object getParent() {
        return this.;
    }
    public void setParent(Object parent) {
        this. = 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.
    public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
        setParent(parent);
    }
New to GrepCode? Check out our FAQ X