001/* 002 * Copyright (c) 2006-2011 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the Eclipse Public License v1.0 006 * which accompanies this distribution, and is available at 007 * http://www.eclipse.org/legal/epl-v10.html 008 * 009 * Contributors: 010 * Laurent Doguin 011 */ 012package org.nuxeo.ecm.core.versioning; 013 014import java.io.Serializable; 015 016import org.nuxeo.common.xmap.annotation.XNode; 017import org.nuxeo.common.xmap.annotation.XObject; 018 019/** 020 * Descriptor to contribute the initial version state of a document. 021 * 022 * @author Laurent Doguin 023 * @since 5.4.2 024 */ 025@XObject("initialState") 026public class InitialStateDescriptor implements Serializable { 027 028 private static final long serialVersionUID = 1L; 029 030 @XNode("@minor") 031 protected int minor = 0; 032 033 @XNode("@major") 034 protected int major = 0; 035 036 public int getMinor() { 037 return minor; 038 } 039 040 public int getMajor() { 041 return major; 042 } 043 044}