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

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

 <complexType name="CT_Connection">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="dbPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DbPr" minOccurs="0"/>
         <element name="olapPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_OlapPr" minOccurs="0"/>
         <element name="webPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_WebPr" minOccurs="0"/>
         <element name="textPr" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TextPr" minOccurs="0"/>
         <element name="parameters" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Parameters" minOccurs="0"/>
         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
       </sequence>
       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
       <attribute name="sourceFile" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="odcFile" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="keepAlive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="interval" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="name" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="description" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
       <attribute name="reconnectionMethod" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
       <attribute name="refreshedVersion" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
       <attribute name="minRefreshableVersion" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
       <attribute name="savePassword" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="new" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="deleted" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="onlyUseConnectionFile" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="background" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="refreshOnLoad" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="saveData" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="credentials" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CredMethod" default="integrated" />
       <attribute name="singleSignOnId" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_Connection", propOrder = {
     "dbPr",
     "olapPr",
     "webPr",
     "textPr",
     "parameters",
     "extLst"
 })
 public class CTConnection implements Child
 {
 
     protected CTDbPr dbPr;
     protected CTOlapPr olapPr;
     protected CTWebPr webPr;
     protected CTTextPr textPr;
     protected CTParameters parameters;
     protected CTExtensionList extLst;
     @XmlAttribute(name = "id", required = true)
     @XmlSchemaType(name = "unsignedInt")
     protected long id;
     @XmlAttribute(name = "sourceFile")
     protected String sourceFile;
     @XmlAttribute(name = "odcFile")
    protected String odcFile;
    @XmlAttribute(name = "keepAlive")
    protected Boolean keepAlive;
    @XmlAttribute(name = "interval")
    @XmlSchemaType(name = "unsignedInt")
    protected Long interval;
    @XmlAttribute(name = "name")
    protected String name;
    @XmlAttribute(name = "description")
    protected String description;
    @XmlAttribute(name = "type")
    @XmlSchemaType(name = "unsignedInt")
    protected Long type;
    @XmlAttribute(name = "reconnectionMethod")
    @XmlSchemaType(name = "unsignedInt")
    protected Long reconnectionMethod;
    @XmlAttribute(name = "refreshedVersion", required = true)
    @XmlSchemaType(name = "unsignedByte")
    protected short refreshedVersion;
    @XmlAttribute(name = "minRefreshableVersion")
    @XmlSchemaType(name = "unsignedByte")
    protected Short minRefreshableVersion;
    @XmlAttribute(name = "savePassword")
    protected Boolean savePassword;
    @XmlAttribute(name = "new")
    protected Boolean _new;
    @XmlAttribute(name = "deleted")
    protected Boolean deleted;
    @XmlAttribute(name = "onlyUseConnectionFile")
    protected Boolean onlyUseConnectionFile;
    @XmlAttribute(name = "background")
    protected Boolean background;
    @XmlAttribute(name = "refreshOnLoad")
    protected Boolean refreshOnLoad;
    @XmlAttribute(name = "saveData")
    protected Boolean saveData;
    @XmlAttribute(name = "credentials")
    protected STCredMethod credentials;
    @XmlAttribute(name = "singleSignOnId")
    protected String singleSignOnId;
    private Object parent;

    
Gets the value of the dbPr property.

Returns:
possible object is
    public CTDbPr getDbPr() {
        return ;
    }

    
Sets the value of the dbPr property.

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

    
Gets the value of the olapPr property.

Returns:
possible object is
    public CTOlapPr getOlapPr() {
        return ;
    }

    
Sets the value of the olapPr property.

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

    
Gets the value of the webPr property.

Returns:
possible object is
    public CTWebPr getWebPr() {
        return ;
    }

    
Sets the value of the webPr property.

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

    
Gets the value of the textPr property.

Returns:
possible object is
    public CTTextPr getTextPr() {
        return ;
    }

    
Sets the value of the textPr property.

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

    
Gets the value of the parameters property.

Returns:
possible object is
    public CTParameters getParameters() {
        return ;
    }

    
Sets the value of the parameters property.

Parameters:
value allowed object is
    public void setParameters(CTParameters 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 id property.
    public long getId() {
        return ;
    }

    
Sets the value of the id property.
    public void setId(long value) {
        this. = value;
    }

    
Gets the value of the sourceFile property.

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

    
Sets the value of the sourceFile property.

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

    
Gets the value of the odcFile property.

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

    
Sets the value of the odcFile property.

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

    
Gets the value of the keepAlive property.

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

    
Sets the value of the keepAlive property.

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

    
Gets the value of the interval property.

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

    
Sets the value of the interval property.

Parameters:
value allowed object is
    public void setInterval(Long 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 description property.

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

    
Sets the value of the description property.

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

    
Gets the value of the type property.

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

    
Sets the value of the type property.

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

    
Gets the value of the reconnectionMethod property.

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

    
Sets the value of the reconnectionMethod property.

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

    
Gets the value of the refreshedVersion property.
    public short getRefreshedVersion() {
        return ;
    }

    
Sets the value of the refreshedVersion property.
    public void setRefreshedVersion(short value) {
        this. = value;
    }

    
Gets the value of the minRefreshableVersion property.

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

    
Sets the value of the minRefreshableVersion property.

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

    
Gets the value of the savePassword property.

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

    
Sets the value of the savePassword property.

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

    
Gets the value of the new property.

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

    
Sets the value of the new property.

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

    
Gets the value of the deleted property.

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

    
Sets the value of the deleted property.

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

    
Gets the value of the onlyUseConnectionFile property.

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

    
Sets the value of the onlyUseConnectionFile property.

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

    
Gets the value of the background property.

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

    
Sets the value of the background property.

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

    
Gets the value of the refreshOnLoad property.

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

    
Sets the value of the refreshOnLoad property.

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

    
Gets the value of the saveData property.

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

    
Sets the value of the saveData property.

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

    
Gets the value of the credentials property.

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

    
Sets the value of the credentials property.

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

    
Gets the value of the singleSignOnId property.

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

    
Sets the value of the singleSignOnId property.

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