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

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

 <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>
 
 
 @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.

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

    
Sets the value of the n property.

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

    
Gets the value of the t property.

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

    
Sets the value of the t property.

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

    
Gets the value of the h property.

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

    
Sets the value of the h property.

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

    
Gets the value of the s property.

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

    
Sets the value of the s property.

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

    
Gets the value of the sd property.

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

    
Sets the value of the sd property.

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

    
Gets the value of the f property.

Returns:
possible object is
    public boolean isF() {
        if ( == null) {
            return false;
        } else {
            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 m property.

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

    
Sets the value of the m property.

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

    
Gets the value of the c property.

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

    
Sets the value of the c property.

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

    
Gets the value of the x property.

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

    
Sets the value of the x property.

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

    
Gets the value of the d property.

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

    
Sets the value of the d property.

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

    
Gets the value of the e property.

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

    
Sets the value of the e property.

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