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

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

 <complexType name="CT_String">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="tpls" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Tuples" maxOccurs="unbounded" minOccurs="0"/>
         <element name="x" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_X" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="v" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="u" type="{http://www.w3.org/2001/XMLSchema}boolean" />
       <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" />
       <attribute name="c" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="cp" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
       <attribute name="in" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
       <attribute name="bc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
       <attribute name="fc" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_UnsignedIntHex" />
       <attribute name="i" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="un" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="st" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="b" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_String", propOrder = {
     "tpls",
     "x"
 })
 public class CTString implements Child
 {
 
     protected List<CTTuplestpls;
     protected List<CTXx;
     @XmlAttribute(name = "v", required = true)
     protected String v;
     @XmlAttribute(name = "u")
     protected Boolean u;
     @XmlAttribute(name = "f")
     protected Boolean f;
     @XmlAttribute(name = "c")
     protected String c;
     @XmlAttribute(name = "cp")
     @XmlSchemaType(name = "unsignedInt")
     protected Long cp;
     @XmlAttribute(name = "in")
     @XmlSchemaType(name = "unsignedInt")
     protected Long in;
     @XmlAttribute(name = "bc")
     protected byte[] bc;
     @XmlAttribute(name = "fc")
     protected byte[] fc;
     @XmlAttribute(name = "i")
     protected Boolean i;
    @XmlAttribute(name = "un")
    protected Boolean un;
    @XmlAttribute(name = "st")
    protected Boolean st;
    @XmlAttribute(name = "b")
    protected Boolean b;
    private Object parent;

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

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

    getTpls().add(newItem);
 

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

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

    
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<CTXgetX() {
        if ( == null) {
             = new ArrayList<CTX>();
        }
        return this.;
    }

    
Gets the value of the v property.

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

    
Sets the value of the v property.

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

    
Gets the value of the u property.

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

    
Sets the value of the u property.

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

    
Gets the value of the f property.

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

    
Sets the value of the f property.

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

    
Gets the value of the c property.

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

    
Sets the value of the c property.

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

    
Gets the value of the cp property.

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

    
Sets the value of the cp property.

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

    
Gets the value of the in property.

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

    
Sets the value of the in property.

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

    
Gets the value of the bc property.

Returns:
possible object is
    public byte[] getBc() {
        return ;
    }

    
Sets the value of the bc property.

Parameters:
value allowed object is
    public void setBc(byte[] value) {
        this. = value;
    }

    
Gets the value of the fc property.

Returns:
possible object is
    public byte[] getFc() {
        return ;
    }

    
Sets the value of the fc property.

Parameters:
value allowed object is
    public void setFc(byte[] value) {
        this. = value;
    }

    
Gets the value of the i property.

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

    
Sets the value of the i property.

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

    
Gets the value of the un property.

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

    
Sets the value of the un property.

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

    
Gets the value of the st property.

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

    
Sets the value of the st property.

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

    
Gets the value of the b property.

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

    
Sets the value of the b property.

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