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

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

 <complexType name="CT_PivotAreaReference">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Index" maxOccurs="unbounded" 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}unsignedInt" />
       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
       <attribute name="selected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="byPosition" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="relative" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="defaultSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="sumSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="countASubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="avgSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="maxSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="minSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="productSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="countSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="stdDevSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="stdDevPSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="varSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="varPSubtotal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_PivotAreaReference", propOrder = {
     "x",
     "extLst"
 })
 public class CTPivotAreaReference implements Child
 {
 
     protected List<CTIndexx;
     protected CTExtensionList extLst;
     @XmlAttribute(name = "field")
     @XmlSchemaType(name = "unsignedInt")
     protected Long field;
     @XmlAttribute(name = "count")
     @XmlSchemaType(name = "unsignedInt")
     protected Long count;
     @XmlAttribute(name = "selected")
     protected Boolean selected;
     @XmlAttribute(name = "byPosition")
     protected Boolean byPosition;
     @XmlAttribute(name = "relative")
     protected Boolean relative;
     @XmlAttribute(name = "defaultSubtotal")
     protected Boolean defaultSubtotal;
     @XmlAttribute(name = "sumSubtotal")
     protected Boolean sumSubtotal;
     @XmlAttribute(name = "countASubtotal")
     protected Boolean countASubtotal;
     @XmlAttribute(name = "avgSubtotal")
    protected Boolean avgSubtotal;
    @XmlAttribute(name = "maxSubtotal")
    protected Boolean maxSubtotal;
    @XmlAttribute(name = "minSubtotal")
    protected Boolean minSubtotal;
    @XmlAttribute(name = "productSubtotal")
    protected Boolean productSubtotal;
    @XmlAttribute(name = "countSubtotal")
    protected Boolean countSubtotal;
    @XmlAttribute(name = "stdDevSubtotal")
    protected Boolean stdDevSubtotal;
    @XmlAttribute(name = "stdDevPSubtotal")
    protected Boolean stdDevPSubtotal;
    @XmlAttribute(name = "varSubtotal")
    protected Boolean varSubtotal;
    @XmlAttribute(name = "varPSubtotal")
    protected Boolean varPSubtotal;
    private Object parent;

    
Gets the value of the x 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 x property.

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

    getX().add(newItem);
 

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

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

    
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 Long getField() {
        return ;
    }

    
Sets the value of the field property.

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

    
Gets the value of the count property.

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

    
Sets the value of the count property.

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

    
Gets the value of the selected property.

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

    
Sets the value of the selected property.

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

    
Gets the value of the byPosition property.

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

    
Sets the value of the byPosition property.

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

    
Gets the value of the relative property.

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

    
Sets the value of the relative property.

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

    
Gets the value of the defaultSubtotal property.

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

    
Sets the value of the defaultSubtotal property.

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

    
Gets the value of the sumSubtotal property.

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

    
Sets the value of the sumSubtotal property.

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

    
Gets the value of the countASubtotal property.

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

    
Sets the value of the countASubtotal property.

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

    
Gets the value of the avgSubtotal property.

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

    
Sets the value of the avgSubtotal property.

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

    
Gets the value of the maxSubtotal property.

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

    
Sets the value of the maxSubtotal property.

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

    
Gets the value of the minSubtotal property.

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

    
Sets the value of the minSubtotal property.

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

    
Gets the value of the productSubtotal property.

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

    
Sets the value of the productSubtotal property.

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

    
Gets the value of the countSubtotal property.

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

    
Sets the value of the countSubtotal property.

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

    
Gets the value of the stdDevSubtotal property.

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

    
Sets the value of the stdDevSubtotal property.

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

    
Gets the value of the stdDevPSubtotal property.

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

    
Sets the value of the stdDevPSubtotal property.

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

    
Gets the value of the varSubtotal property.

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

    
Sets the value of the varSubtotal property.

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

    
Gets the value of the varPSubtotal property.

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

    
Sets the value of the varPSubtotal property.

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