/* * 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 javax.xml.bind.Unmarshaller; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlTransient; import javax.xml.bind.annotation.XmlType; import org.jvnet.jaxb2_commons.ppp.Child; /** * <p>Java class for CT_Item complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="CT_Item"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="n" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" /> * <attribute name="t" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_ItemType" default="data" /> * <attribute name="h" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> * <attribute name="s" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> * <attribute name="sd" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> * <attribute name="f" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> * <attribute name="m" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> * <attribute name="c" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> * <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" /> * <attribute name="d" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> * <attribute name="e" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_Item") public class CTItem implements Child { @XmlAttribute(name = "n") protected String n; @XmlAttribute(name = "t") protected STItemType t; @XmlAttribute(name = "h") protected Boolean h; @XmlAttribute(name = "s") protected Boolean s; @XmlAttribute(name = "sd") protected Boolean sd; @XmlAttribute(name = "f") protected Boolean f; @XmlAttribute(name = "m") protected Boolean m; @XmlAttribute(name = "c") protected Boolean c; @XmlAttribute(name = "x") @XmlSchemaType(name = "unsignedInt") protected Long x; @XmlAttribute(name = "d") protected Boolean d; @XmlAttribute(name = "e") protected Boolean e; @XmlTransient private Object parent; /** * Gets the value of the n property. * * @return * possible object is * {@link String } * */ public String getN() { return n; } /** * Sets the value of the n property. * * @param value * allowed object is * {@link String } * */ public void setN(String value) { this.n = value; } /** * Gets the value of the t property. * * @return * possible object is * {@link STItemType } * */ public STItemType getT() { if (t == null) { return STItemType.DATA; } else { return t; } } /** * Sets the value of the t property. * * @param value * allowed object is * {@link STItemType } * */ public void setT(STItemType value) { this.t = value; } /** * Gets the value of the h property. * * @return * possible object is * {@link Boolean } * */ public boolean isH() { if (h == null) { return false; } else { return h; } } /** * Sets the value of the h property. * * @param value * allowed object is * {@link Boolean } * */ public void setH(Boolean value) { this.h = value; } /** * Gets the value of the s property. * * @return * possible object is * {@link Boolean } * */ public boolean isS() { if (s == null) { return false; } else { return s; } } /** * Sets the value of the s property. * * @param value * allowed object is * {@link Boolean } * */ public void setS(Boolean value) { this.s = value; } /** * Gets the value of the sd property. * * @return * possible object is * {@link Boolean } * */ public boolean isSd() { if (sd == null) { return true; } else { return sd; } } /** * Sets the value of the sd property. * * @param value * allowed object is * {@link Boolean } * */ public void setSd(Boolean value) { this.sd = value; } /** * Gets the value of the f property. * * @return * possible object is * {@link Boolean } * */ public boolean isF() { if (f == null) { return false; } else { return f; } } /** * Sets the value of the f property. * * @param value * allowed object is * {@link Boolean } * */ public void setF(Boolean value) { this.f = value; } /** * Gets the value of the m property. * * @return * possible object is * {@link Boolean } * */ public boolean isM() { if (m == null) { return false; } else { return m; } } /** * Sets the value of the m property. * * @param value * allowed object is * {@link Boolean } * */ public void setM(Boolean value) { this.m = value; } /** * Gets the value of the c property. * * @return * possible object is * {@link Boolean } * */ public boolean isC() { if (c == null) { return false; } else { return c; } } /** * Sets the value of the c property. * * @param value * allowed object is * {@link Boolean } * */ public void setC(Boolean value) { this.c = value; } /** * Gets the value of the x property. * * @return * possible object is * {@link Long } * */ public Long getX() { return x; } /** * Sets the value of the x property. * * @param value * allowed object is * {@link Long } * */ public void setX(Long value) { this.x = value; } /** * Gets the value of the d property. * * @return * possible object is * {@link Boolean } * */ public boolean isD() { if (d == null) { return false; } else { return d; } } /** * Sets the value of the d property. * * @param value * allowed object is * {@link Boolean } * */ public void setD(Boolean value) { this.d = value; } /** * Gets the value of the e property. * * @return * possible object is * {@link Boolean } * */ public boolean isE() { if (e == null) { return true; } else { return e; } } /** * Sets the value of the e property. * * @param value * allowed object is * {@link Boolean } * */ public void setE(Boolean value) { this.e = value; } /** * Gets the parent object in the object tree representing the unmarshalled xml document. * * @return * The parent object. */ public Object getParent() { return this.parent; } public void setParent(Object parent) { this.parent = parent; } /** * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. * * @param parent * The parent object in the object tree. * @param unmarshaller * The unmarshaller that generated the instance. */ public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { setParent(parent); } }