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;
 
 import java.util.List;

Java class for CT_CfRule complex type.

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

 <complexType name="CT_CfRule">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="formula" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" maxOccurs="3" minOccurs="0"/>
         <element name="colorScale" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ColorScale" minOccurs="0"/>
         <element name="dataBar" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DataBar" minOccurs="0"/>
         <element name="iconSet" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_IconSet" minOccurs="0"/>
         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
       </sequence>
       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CfType" />
       <attribute name="dxfId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DxfId" />
       <attribute name="priority" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
       <attribute name="stopIfTrue" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="aboveAverage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="percent" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="bottom" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="operator" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ConditionalFormattingOperator" />
       <attribute name="text" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="timePeriod" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TimePeriod" />
       <attribute name="rank" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
       <attribute name="stdDev" type="{http://www.w3.org/2001/XMLSchema}int" />
       <attribute name="equalAverage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_CfRule", propOrder = {
     "formula",
     "colorScale",
     "dataBar",
     "iconSet",
     "extLst"
 })
 public class CTCfRule implements Child
 {
 
     protected List<Stringformula;
     protected CTColorScale colorScale;
     protected CTDataBar dataBar;
     protected CTIconSet iconSet;
     protected CTExtensionList extLst;
     @XmlAttribute(name = "type")
     protected STCfType type;
     @XmlAttribute(name = "dxfId")
     protected Long dxfId;
     @XmlAttribute(name = "priority", required = true)
     protected int priority;
     @XmlAttribute(name = "stopIfTrue")
     protected Boolean stopIfTrue;
     @XmlAttribute(name = "aboveAverage")
     protected Boolean aboveAverage;
     @XmlAttribute(name = "percent")
     protected Boolean percent;
     @XmlAttribute(name = "bottom")
     protected Boolean bottom;
    @XmlAttribute(name = "operator")
    @XmlAttribute(name = "text")
    protected String text;
    @XmlAttribute(name = "timePeriod")
    protected STTimePeriod timePeriod;
    @XmlAttribute(name = "rank")
    @XmlSchemaType(name = "unsignedInt")
    protected Long rank;
    @XmlAttribute(name = "stdDev")
    protected Integer stdDev;
    @XmlAttribute(name = "equalAverage")
    protected Boolean equalAverage;
    private Object parent;

    
Gets the value of the formula property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the formula property.

For example, to add a new item, do as follows:

    getFormula().add(newItem);
 

Objects of the following type(s) are allowed in the list

    public List<StringgetFormula() {
        if ( == null) {
             = new ArrayList<String>();
        }
        return this.;
    }

    
Gets the value of the colorScale property.

Returns:
possible object is
    public CTColorScale getColorScale() {
        return ;
    }

    
Sets the value of the colorScale property.

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

    
Gets the value of the dataBar property.

Returns:
possible object is
    public CTDataBar getDataBar() {
        return ;
    }

    
Sets the value of the dataBar property.

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

    
Gets the value of the iconSet property.

Returns:
possible object is
    public CTIconSet getIconSet() {
        return ;
    }

    
Sets the value of the iconSet property.

Parameters:
value allowed object is
    public void setIconSet(CTIconSet 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 type property.

Returns:
possible object is
    public STCfType getType() {
        return ;
    }

    
Sets the value of the type property.

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

    
Gets the value of the dxfId property.

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

    
Sets the value of the dxfId property.

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

    
Gets the value of the priority property.
    public int getPriority() {
        return ;
    }

    
Sets the value of the priority property.
    public void setPriority(int value) {
        this. = value;
    }

    
Gets the value of the stopIfTrue property.

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

    
Sets the value of the stopIfTrue property.

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

    
Gets the value of the aboveAverage property.

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

    
Sets the value of the aboveAverage property.

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

    
Gets the value of the percent property.

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

    
Sets the value of the percent property.

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

    
Gets the value of the bottom property.

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

    
Sets the value of the bottom property.

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

    
Gets the value of the operator property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the operator property.

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

    
Gets the value of the text property.

Returns:
possible object is
    public String getText() {
        return ;
    }

    
Sets the value of the text property.

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

    
Gets the value of the timePeriod property.

Returns:
possible object is
    public STTimePeriod getTimePeriod() {
        return ;
    }

    
Sets the value of the timePeriod property.

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

    
Gets the value of the rank property.

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

    
Sets the value of the rank property.

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

    
Gets the value of the stdDev property.

Returns:
possible object is
    public Integer getStdDev() {
        return ;
    }

    
Sets the value of the stdDev property.

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

    
Gets the value of the equalAverage property.

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

    
Sets the value of the equalAverage property.

Parameters:
value allowed object is
    public void setEqualAverage(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