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

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

 <complexType name="CT_CacheField">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="sharedItems" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_SharedItems" minOccurs="0"/>
         <element name="fieldGroup" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_FieldGroup" minOccurs="0"/>
         <element name="mpMap" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
       </sequence>
       <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="caption" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="propertyName" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="serverField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="uniqueList" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="numFmtId" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_NumFmtId" />
       <attribute name="formula" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="sqlType" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
       <attribute name="hierarchy" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
       <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="databaseField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="mappingCount" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
       <attribute name="memberPropertyField" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_CacheField", propOrder = {
     "sharedItems",
     "fieldGroup",
     "mpMap",
     "extLst"
 })
 public class CTCacheField implements Child
 {
 
     protected CTSharedItems sharedItems;
     protected CTFieldGroup fieldGroup;
     protected List<CTXmpMap;
     protected CTExtensionList extLst;
     @XmlAttribute(name = "name", required = true)
     protected String name;
     @XmlAttribute(name = "caption")
     protected String caption;
     @XmlAttribute(name = "propertyName")
     protected String propertyName;
     @XmlAttribute(name = "serverField")
     protected Boolean serverField;
     @XmlAttribute(name = "uniqueList")
     protected Boolean uniqueList;
     @XmlAttribute(name = "numFmtId")
     protected Long numFmtId;
     @XmlAttribute(name = "formula")
     protected String formula;
     @XmlAttribute(name = "sqlType")
     protected Integer sqlType;
     @XmlAttribute(name = "hierarchy")
    protected Integer hierarchy;
    @XmlAttribute(name = "level")
    @XmlSchemaType(name = "unsignedInt")
    protected Long level;
    @XmlAttribute(name = "databaseField")
    protected Boolean databaseField;
    @XmlAttribute(name = "mappingCount")
    @XmlSchemaType(name = "unsignedInt")
    protected Long mappingCount;
    @XmlAttribute(name = "memberPropertyField")
    protected Boolean memberPropertyField;
    private Object parent;

    
Gets the value of the sharedItems property.

Returns:
possible object is
    public CTSharedItems getSharedItems() {
        return ;
    }

    
Sets the value of the sharedItems property.

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

    
Gets the value of the fieldGroup property.

Returns:
possible object is
    public CTFieldGroup getFieldGroup() {
        return ;
    }

    
Sets the value of the fieldGroup property.

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

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

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

    getMpMap().add(newItem);
 

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

    public List<CTXgetMpMap() {
        if ( == null) {
             = new ArrayList<CTX>();
        }
        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 name property.

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

    
Sets the value of the name property.

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

    
Gets the value of the caption property.

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

    
Sets the value of the caption property.

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

    
Gets the value of the propertyName property.

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

    
Sets the value of the propertyName property.

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

    
Gets the value of the serverField property.

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

    
Sets the value of the serverField property.

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

    
Gets the value of the uniqueList property.

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

    
Sets the value of the uniqueList property.

Parameters:
value allowed object is
    public void setUniqueList(Boolean 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 formula property.

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

    
Sets the value of the formula property.

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

    
Gets the value of the sqlType property.

Returns:
possible object is
    public int getSqlType() {
        if ( == null) {
            return  0;
        } else {
            return ;
        }
    }

    
Sets the value of the sqlType property.

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

    
Gets the value of the hierarchy property.

Returns:
possible object is
    public int getHierarchy() {
        if ( == null) {
            return  0;
        } else {
            return ;
        }
    }

    
Sets the value of the hierarchy property.

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

    
Gets the value of the level property.

Returns:
possible object is
    public long getLevel() {
        if ( == null) {
            return  0L;
        } else {
            return ;
        }
    }

    
Sets the value of the level property.

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

    
Gets the value of the databaseField property.

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

    
Sets the value of the databaseField property.

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

    
Gets the value of the mappingCount property.

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

    
Sets the value of the mappingCount property.

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

    
Gets the value of the memberPropertyField property.

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

    
Sets the value of the memberPropertyField property.

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