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

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

 <complexType name="CT_RevisionHeaders">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="header" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_RevisionHeader" maxOccurs="unbounded"/>
       </sequence>
       <attribute name="guid" use="required" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
       <attribute name="lastGuid" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Guid" />
       <attribute name="shared" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="diskRevisions" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="history" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="trackRevisions" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="exclusive" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="revisionId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
       <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}int" default="1" />
       <attribute name="keepChangeHistory" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="protected" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="preserveHistory" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="30" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_RevisionHeaders", propOrder = {
     "header"
 })
 public class CTRevisionHeaders implements Child
 {
 
     @XmlElement(required = true)
     protected List<CTRevisionHeaderheader;
     @XmlAttribute(name = "guid", required = true)
     protected String guid;
     @XmlAttribute(name = "lastGuid")
     protected String lastGuid;
     @XmlAttribute(name = "shared")
     protected Boolean shared;
     @XmlAttribute(name = "diskRevisions")
     protected Boolean diskRevisions;
     @XmlAttribute(name = "history")
     protected Boolean history;
     @XmlAttribute(name = "trackRevisions")
     protected Boolean trackRevisions;
     @XmlAttribute(name = "exclusive")
     protected Boolean exclusive;
     @XmlAttribute(name = "revisionId")
     @XmlSchemaType(name = "unsignedInt")
     protected Long revisionId;
     @XmlAttribute(name = "version")
     protected Integer version;
     @XmlAttribute(name = "keepChangeHistory")
     protected Boolean keepChangeHistory;
    @XmlAttribute(name = "protected")
    protected Boolean _protected;
    @XmlAttribute(name = "preserveHistory")
    @XmlSchemaType(name = "unsignedInt")
    protected Long preserveHistory;
    private Object parent;

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

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

    getHeader().add(newItem);
 

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

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

    
Gets the value of the guid property.

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

    
Sets the value of the guid property.

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

    
Gets the value of the lastGuid property.

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

    
Sets the value of the lastGuid property.

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

    
Gets the value of the shared property.

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

    
Sets the value of the shared property.

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

    
Gets the value of the diskRevisions property.

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

    
Sets the value of the diskRevisions property.

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

    
Gets the value of the history property.

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

    
Sets the value of the history property.

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

    
Gets the value of the trackRevisions property.

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

    
Sets the value of the trackRevisions property.

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

    
Gets the value of the exclusive property.

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

    
Sets the value of the exclusive property.

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

    
Gets the value of the revisionId property.

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

    
Sets the value of the revisionId property.

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

    
Gets the value of the version property.

Returns:
possible object is
    public int getVersion() {
        if ( == null) {
            return  1;
        } else {
            return ;
        }
    }

    
Sets the value of the version property.

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

    
Gets the value of the keepChangeHistory property.

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

    
Sets the value of the keepChangeHistory property.

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

    
Gets the value of the protected property.

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

    
Sets the value of the protected property.

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

    
Gets the value of the preserveHistory property.

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

    
Sets the value of the preserveHistory property.

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