
org.openfuxml.content.table.Row Maven / Gradle / Ivy
package org.openfuxml.content.table;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.openfuxml.content.layout.Layout;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.openfuxml.org/layout}layout" minOccurs="0"/>
* <element ref="{http://www.openfuxml.org/table}cell" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"layout",
"cell"
})
@XmlRootElement(name = "row")
public class Row
implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(namespace = "http://www.openfuxml.org/layout")
protected Layout layout;
@XmlElement(required = true)
protected List cell;
@XmlAttribute(name = "id")
protected String id;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
public boolean isSetId() {
return (this.id!= null);
}
/**
* Gets the value of the layout property.
*
* @return
* possible object is
* {@link Layout }
*
*/
public Layout getLayout() {
return layout;
}
/**
* Sets the value of the layout property.
*
* @param value
* allowed object is
* {@link Layout }
*
*/
public void setLayout(Layout value) {
this.layout = value;
}
public boolean isSetLayout() {
return (this.layout!= null);
}
/**
* Gets the value of the cell 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 cell property.
*
*
* For example, to add a new item, do as follows:
*
* getCell().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Cell }
*
*
*/
public List getCell() {
if (cell == null) {
cell = new ArrayList();
}
return this.cell;
}
public boolean isSetCell() {
return ((this.cell!= null)&&(!this.cell.isEmpty()));
}
public void unsetCell() {
this.cell = null;
}
}
| | |