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

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

 <complexType name="CT_Row">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="c" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Cell" maxOccurs="unbounded" minOccurs="0"/>
         <element name="extLst" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ExtensionList" minOccurs="0"/>
       </sequence>
       <attribute name="r" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
       <attribute name="spans" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_CellSpans" />
       <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="customFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="ht" type="{http://www.w3.org/2001/XMLSchema}double" />
       <attribute name="hidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="customHeight" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="outlineLevel" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" default="0" />
       <attribute name="collapsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="thickTop" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="thickBot" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="ph" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_Row", propOrder = {
     "c",
     "extLst"
 })
 @XmlRootElement(name = "row")
 public class Row implements Child
 {
 
     protected List<Cellc;
     protected CTExtensionList extLst;
     @XmlAttribute(name = "r")
     @XmlSchemaType(name = "unsignedInt")
     protected Long r;
     @XmlAttribute(name = "spans")
     protected List<Stringspans;
     @XmlAttribute(name = "s")
     @XmlSchemaType(name = "unsignedInt")
     protected Long s;
     @XmlAttribute(name = "customFormat")
     protected Boolean customFormat;
     @XmlAttribute(name = "ht")
     protected Double ht;
     @XmlAttribute(name = "hidden")
     protected Boolean hidden;
     @XmlAttribute(name = "customHeight")
     protected Boolean customHeight;
     @XmlAttribute(name = "outlineLevel")
     @XmlSchemaType(name = "unsignedByte")
     protected Short outlineLevel;
     @XmlAttribute(name = "collapsed")
     protected Boolean collapsed;
     @XmlAttribute(name = "thickTop")
    protected Boolean thickTop;
    @XmlAttribute(name = "thickBot")
    protected Boolean thickBot;
    @XmlAttribute(name = "ph")
    protected Boolean ph;
    private Object parent;

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

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

    getC().add(newItem);
 

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

    public List<CellgetC() {
        if ( == null) {
             = new ArrayList<Cell>();
        }
        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 r property.

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

    
Sets the value of the r property.

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

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

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

    getSpans().add(newItem);
 

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

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

    
Gets the value of the s property.

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

    
Sets the value of the s property.

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

    
Gets the value of the customFormat property.

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

    
Sets the value of the customFormat property.

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

    
Gets the value of the ht property.

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

    
Sets the value of the ht property.

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

    
Gets the value of the hidden property.

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

    
Sets the value of the hidden property.

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

    
Gets the value of the customHeight property.

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

    
Sets the value of the customHeight property.

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

    
Gets the value of the outlineLevel property.

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

    
Sets the value of the outlineLevel property.

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

    
Gets the value of the collapsed property.

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

    
Sets the value of the collapsed property.

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

    
Gets the value of the thickTop property.

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

    
Sets the value of the thickTop property.

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

    
Gets the value of the thickBot property.

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

    
Sets the value of the thickBot property.

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

    
Gets the value of the ph property.

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

    
Sets the value of the ph property.

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