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_PivotArea complex type.

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

 <complexType name="CT_PivotArea">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="references" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_PivotAreaReferences" minOccurs="0"/>
         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
       </sequence>
       <attribute name="field" type="{http://www.w3.org/2001/XMLSchema}int" />
       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_PivotAreaType" default="normal" />
       <attribute name="dataOnly" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="labelOnly" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="grandRow" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="grandCol" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="cacheIndex" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="outline" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="offset" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Ref" />
       <attribute name="collapsedLevelsAreSubtotals" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="axis" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Axis" />
       <attribute name="fieldPosition" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_PivotArea", propOrder = {
     "references",
     "extLst"
 })
 public class CTPivotArea implements Child
 {
 
     protected CTPivotAreaReferences references;
     protected CTExtensionList extLst;
     @XmlAttribute(name = "field")
     protected Integer field;
     @XmlAttribute(name = "type")
     protected STPivotAreaType type;
     @XmlAttribute(name = "dataOnly")
     protected Boolean dataOnly;
     @XmlAttribute(name = "labelOnly")
     protected Boolean labelOnly;
     @XmlAttribute(name = "grandRow")
     protected Boolean grandRow;
     @XmlAttribute(name = "grandCol")
     protected Boolean grandCol;
     @XmlAttribute(name = "cacheIndex")
     protected Boolean cacheIndex;
     @XmlAttribute(name = "outline")
     protected Boolean outline;
     @XmlAttribute(name = "offset")
     protected String offset;
     @XmlAttribute(name = "collapsedLevelsAreSubtotals")
     protected Boolean collapsedLevelsAreSubtotals;
     @XmlAttribute(name = "axis")
     protected STAxis axis;
     @XmlAttribute(name = "fieldPosition")
     @XmlSchemaType(name = "unsignedInt")
     protected Long fieldPosition;
     @XmlTransient
    private Object parent;

    
Gets the value of the references property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the references property.

Parameters:
value allowed object is
    public void setReferences(CTPivotAreaReferences 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 field property.

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

    
Sets the value of the field property.

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

    
Gets the value of the type property.

Returns:
possible object is
    public STPivotAreaType getType() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the type property.

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

    
Gets the value of the dataOnly property.

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

    
Sets the value of the dataOnly property.

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

    
Gets the value of the labelOnly property.

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

    
Sets the value of the labelOnly property.

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

    
Gets the value of the grandRow property.

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

    
Sets the value of the grandRow property.

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

    
Gets the value of the grandCol property.

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

    
Sets the value of the grandCol property.

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

    
Gets the value of the cacheIndex property.

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

    
Sets the value of the cacheIndex property.

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

    
Gets the value of the outline property.

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

    
Sets the value of the outline property.

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

    
Gets the value of the offset property.

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

    
Sets the value of the offset property.

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

    
Gets the value of the collapsedLevelsAreSubtotals property.

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

    
Sets the value of the collapsedLevelsAreSubtotals property.

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

    
Gets the value of the axis property.

Returns:
possible object is
    public STAxis getAxis() {
        return ;
    }

    
Sets the value of the axis property.

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

    
Gets the value of the fieldPosition property.

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

    
Sets the value of the fieldPosition property.

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