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

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

 <complexType name="CT_SharedItems">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice maxOccurs="unbounded" minOccurs="0">
         <element name="m" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Missing"/>
         <element name="n" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Number"/>
         <element name="b" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Boolean"/>
         <element name="e" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_Error"/>
         <element name="s" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_String"/>
         <element name="d" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_DateTime"/>
       </choice>
       <attribute name="containsSemiMixedTypes" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="containsNonDate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="containsDate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="containsString" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="containsBlank" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="containsMixedTypes" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="containsNumber" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="containsInteger" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="minValue" type="{http://www.w3.org/2001/XMLSchema}double" />
       <attribute name="maxValue" type="{http://www.w3.org/2001/XMLSchema}double" />
       <attribute name="minDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
       <attribute name="maxDate" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
       <attribute name="count" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" />
       <attribute name="longText" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_SharedItems", propOrder = {
     "mOrNOrB"
 })
 public class CTSharedItems implements Child
 {
 
     @XmlElements({
         @XmlElement(name = "m", type = CTMissing.class),
         @XmlElement(name = "n", type = CTNumber.class),
         @XmlElement(name = "b", type = CTBoolean.class),
         @XmlElement(name = "e", type = CTError.class),
         @XmlElement(name = "s", type = CTString.class),
         @XmlElement(name = "d", type = CTDateTime.class)
     })
     protected List<ObjectmOrNOrB;
     @XmlAttribute(name = "containsSemiMixedTypes")
     protected Boolean containsSemiMixedTypes;
     @XmlAttribute(name = "containsNonDate")
     protected Boolean containsNonDate;
     @XmlAttribute(name = "containsDate")
     protected Boolean containsDate;
     @XmlAttribute(name = "containsString")
     protected Boolean containsString;
     @XmlAttribute(name = "containsBlank")
    protected Boolean containsBlank;
    @XmlAttribute(name = "containsMixedTypes")
    protected Boolean containsMixedTypes;
    @XmlAttribute(name = "containsNumber")
    protected Boolean containsNumber;
    @XmlAttribute(name = "containsInteger")
    protected Boolean containsInteger;
    @XmlAttribute(name = "minValue")
    protected Double minValue;
    @XmlAttribute(name = "maxValue")
    protected Double maxValue;
    @XmlAttribute(name = "minDate")
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar minDate;
    @XmlAttribute(name = "maxDate")
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar maxDate;
    @XmlAttribute(name = "count")
    @XmlSchemaType(name = "unsignedInt")
    protected Long count;
    @XmlAttribute(name = "longText")
    protected Boolean longText;
    private Object parent;

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

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

    getMOrNOrB().add(newItem);
 

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

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

    
Gets the value of the containsSemiMixedTypes property.

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

    
Sets the value of the containsSemiMixedTypes property.

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

    
Gets the value of the containsNonDate property.

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

    
Sets the value of the containsNonDate property.

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

    
Gets the value of the containsDate property.

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

    
Sets the value of the containsDate property.

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

    
Gets the value of the containsString property.

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

    
Sets the value of the containsString property.

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

    
Gets the value of the containsBlank property.

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

    
Sets the value of the containsBlank property.

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

    
Gets the value of the containsMixedTypes property.

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

    
Sets the value of the containsMixedTypes property.

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

    
Gets the value of the containsNumber property.

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

    
Sets the value of the containsNumber property.

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

    
Gets the value of the containsInteger property.

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

    
Sets the value of the containsInteger property.

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

    
Gets the value of the minValue property.

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

    
Sets the value of the minValue property.

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

    
Gets the value of the maxValue property.

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

    
Sets the value of the maxValue property.

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

    
Gets the value of the minDate property.

Returns:
possible object is
    public XMLGregorianCalendar getMinDate() {
        return ;
    }

    
Sets the value of the minDate property.

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

    
Gets the value of the maxDate property.

Returns:
possible object is
    public XMLGregorianCalendar getMaxDate() {
        return ;
    }

    
Sets the value of the maxDate property.

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

    
Gets the value of the count property.

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

    
Sets the value of the count property.

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

    
Gets the value of the longText property.

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

    
Sets the value of the longText property.

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