/**
 *  Generated with Tigerstripe(tm) Tigerstripe Workbench Feature 2.2.0.v20070419-1556-GFEkmUll2-0111E.
 *
 *  Tigerstripe(tm) is a registered trademark of Tigerstripe, Inc.
 *
 *  Plugin  : Sun Microsystems Inc./SunJavaSpecificationPlugin(1.0) (1.0)
 *
 *  DO NOT EDIT THIS CODE WAS AUTOMATICALLY GENERATED
 *
 *  Generated from source Tigerstipe Artifact :
 *        javax.oss.cbe.datatypes.Version
 *
 *  Using template :
 *        templates/1.3/datatypeInterface.vm
 *
 * Copyright 2002-2007 The Members of the OSS through Java(TM) Initiative.
 * All rights reserved. Use is subject to license terms.
 */
package javax.oss.cbe.datatypes;

import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.bind.annotation.XmlType;

import ossj.common.cbe.datatypes.VersionAdapter;

@XmlType
@XmlJavaTypeAdapter(value=VersionAdapter.class)

/**
 *  Public interface definition for Version.
 *
 * Version type
 * The toString() implementation of this interface shall return a String
 * representation of the version.
 *
 */
public interface Version 
	extends java.lang.Cloneable, java.io.Serializable {


    /**
     * Deep copy of this object.
     *
     * @return The cloned object
     */
    public Object clone();


    /**
     *
     * Attribute getter for description.
     *
     *
     * Sets the textual description of this Version
     *
     * @return the value of the description field.
     *
     */
    public java.lang.String getDescription( );


    /**
     * Attribute setter for description.
     *
     *
     * Sets the textual description of this Version
     * @param value - the value to use to set the description attribute.
     * @throws java.lang.IllegalArgumentException
     *         Thrown to report that a bad argument was provided to the method.
     *
     */
    public void setDescription(java.lang.String value)
        throws
        java.lang.IllegalArgumentException;

    /**
     *
     * Attribute getter for validFor.
     *
     *
     * Sets the time period that the version is valid for
     *
     * @return the value of the validFor field.
     *
     */
    public javax.oss.cbe.datatypes.TimePeriod getValidFor( );

    /**
     *
     * Attribute Type getter for validFor.
     *
     * 
     * @return the valid set of types for the validFor field.
     *
     */
    public String[] attributeTypeForValidFor();

    /**
     * Attribute setter for validFor.
     *
     *
     * Sets the time period that the version is valid for
     * @param value - the value to use to set the validFor attribute.
     * @throws java.lang.IllegalArgumentException
     *         Thrown to report that a bad argument was provided to the method.
     *
     */
    public void setValidFor(javax.oss.cbe.datatypes.TimePeriod value)
        throws
        java.lang.IllegalArgumentException;


    /**
     * Factory method for TimePeriod.
     *
     * @param typeToMake - name of the type to be made
     * @return a new instance of TimePeriod
     *
     * @throws java.lang.IllegalArgumentException - if the argument is invalid
     */
    public javax.oss.cbe.datatypes.TimePeriod makeTimePeriod(String typeToMake)
        throws 
        java.lang.IllegalArgumentException;


}
