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

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

 <complexType name="CT_TextPr">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="textFields" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_TextFields" minOccurs="0"/>
       </sequence>
       <attribute name="prompt" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="fileType" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_FileType" default="win" />
       <attribute name="codePage" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1252" />
       <attribute name="characterSet" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="firstRow" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="1" />
       <attribute name="sourceFile" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" default="" />
       <attribute name="delimited" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="decimal" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" default="." />
       <attribute name="thousands" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" default="," />
       <attribute name="tab" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="space" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="comma" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="semicolon" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="consecutive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="qualifier" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Qualifier" default="doubleQuote" />
       <attribute name="delimiter" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_TextPr", propOrder = {
     "textFields"
 })
 public class CTTextPr implements Child
 {
 
     protected CTTextFields textFields;
     @XmlAttribute(name = "prompt")
     protected Boolean prompt;
     @XmlAttribute(name = "fileType")
     protected STFileType fileType;
     @XmlAttribute(name = "codePage")
     @XmlSchemaType(name = "unsignedInt")
     protected Long codePage;
     @XmlAttribute(name = "characterSet")
     protected String characterSet;
     @XmlAttribute(name = "firstRow")
     @XmlSchemaType(name = "unsignedInt")
     protected Long firstRow;
     @XmlAttribute(name = "sourceFile")
     protected String sourceFile;
     @XmlAttribute(name = "delimited")
     protected Boolean delimited;
     @XmlAttribute(name = "decimal")
     protected String decimal;
     @XmlAttribute(name = "thousands")
     protected String thousands;
     @XmlAttribute(name = "tab")
     protected Boolean tab;
     @XmlAttribute(name = "space")
     protected Boolean space;
     @XmlAttribute(name = "comma")
    protected Boolean comma;
    @XmlAttribute(name = "semicolon")
    protected Boolean semicolon;
    @XmlAttribute(name = "consecutive")
    protected Boolean consecutive;
    @XmlAttribute(name = "qualifier")
    protected STQualifier qualifier;
    @XmlAttribute(name = "delimiter")
    protected String delimiter;
    private Object parent;

    
Gets the value of the textFields property.

Returns:
possible object is
    public CTTextFields getTextFields() {
        return ;
    }

    
Sets the value of the textFields property.

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

    
Gets the value of the prompt property.

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

    
Sets the value of the prompt property.

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

    
Gets the value of the fileType property.

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

    
Sets the value of the fileType property.

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

    
Gets the value of the codePage property.

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

    
Sets the value of the codePage property.

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

    
Gets the value of the characterSet property.

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

    
Sets the value of the characterSet property.

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

    
Gets the value of the firstRow property.

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

    
Sets the value of the firstRow property.

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

    
Gets the value of the sourceFile property.

Returns:
possible object is
    public String getSourceFile() {
        if ( == null) {
            return "";
        } else {
            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 delimited property.

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

    
Sets the value of the delimited property.

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

    
Gets the value of the decimal property.

Returns:
possible object is
    public String getDecimal() {
        if ( == null) {
            return ".";
        } else {
            return ;
        }
    }

    
Sets the value of the decimal property.

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

    
Gets the value of the thousands property.

Returns:
possible object is
    public String getThousands() {
        if ( == null) {
            return ",";
        } else {
            return ;
        }
    }

    
Sets the value of the thousands property.

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

    
Gets the value of the tab property.

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

    
Sets the value of the tab property.

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

    
Gets the value of the space property.

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

    
Sets the value of the space property.

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

    
Gets the value of the comma property.

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

    
Sets the value of the comma property.

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

    
Gets the value of the semicolon property.

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

    
Sets the value of the semicolon property.

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

    
Gets the value of the consecutive property.

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

    
Sets the value of the consecutive property.

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

    
Gets the value of the qualifier property.

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

    
Sets the value of the qualifier property.

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

    
Gets the value of the delimiter property.

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

    
Sets the value of the delimiter property.

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