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

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

 <complexType name="CT_Parameter">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="name" 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="parameterType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ParameterType" default="prompt" />
       <attribute name="refreshOnChange" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="prompt" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="boolean" type="{http://www.w3.org/2001/XMLSchema}boolean" />
       <attribute name="double" type="{http://www.w3.org/2001/XMLSchema}double" />
       <attribute name="integer" type="{http://www.w3.org/2001/XMLSchema}int" />
       <attribute name="string" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="cell" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_Parameter")
 public class CTParameter implements Child
 {
 
     @XmlAttribute(name = "name")
     protected String name;
     @XmlAttribute(name = "sqlType")
     protected Integer sqlType;
     @XmlAttribute(name = "parameterType")
     protected STParameterType parameterType;
     @XmlAttribute(name = "refreshOnChange")
     protected Boolean refreshOnChange;
     @XmlAttribute(name = "prompt")
     protected String prompt;
     @XmlAttribute(name = "boolean")
     protected Boolean _boolean;
     @XmlAttribute(name = "double")
     protected Double _double;
     @XmlAttribute(name = "integer")
     protected Integer integer;
     @XmlAttribute(name = "string")
     protected String string;
     @XmlAttribute(name = "cell")
     protected String cell;
     @XmlTransient
     private Object parent;

    
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 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 parameterType property.

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

    
Sets the value of the parameterType property.

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

    
Gets the value of the refreshOnChange property.

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

    
Sets the value of the refreshOnChange property.

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

    
Gets the value of the prompt property.

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

    
Sets the value of the prompt property.

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

    
Gets the value of the boolean property.

Returns:
possible object is
    public Boolean isBoolean() {
        return ;
    }

    
Sets the value of the boolean property.

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

    
Gets the value of the double property.

Returns:
possible object is
    public Double getDouble() {
        return ;
    }

    
Sets the value of the double property.

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

    
Gets the value of the integer property.

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

    
Sets the value of the integer property.

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

    
Gets the value of the string property.

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

    
Sets the value of the string property.

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

    
Gets the value of the cell property.

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

    
Sets the value of the cell property.

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