com.microsoft.tfs.core.clients.versioncontrol.specs.version
Class DateVersionSpec

java.lang.Object
  extended by com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
      extended by com.microsoft.tfs.core.clients.versioncontrol.specs.version.VersionSpec
          extended by com.microsoft.tfs.core.clients.versioncontrol.specs.version.DateVersionSpec

public final class DateVersionSpec
extends VersionSpec

Represents a date used to select a Changeset by.

Since:
TEE-SDK-10.1
Thread-safety:
immutable

Field Summary
protected static char IDENTIFIER
          Returns the single character identifier for the type of VersionSpec implemented by this class.
 
Fields inherited from class com.microsoft.tfs.core.clients.versioncontrol.specs.version.VersionSpec
RANGE_DELIMITER
 
Fields inherited from class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
webServiceObject
 
Constructor Summary
DateVersionSpec(ms.tfs.versioncontrol.clientservices._03._DateVersionSpec spec)
           
DateVersionSpec(java.util.Calendar calendar)
           
DateVersionSpec(java.lang.String dateTimeString)
          Creates a DateVersionSpec from a date and time string.
 
Method Summary
 java.util.Calendar getDate()
           
 java.lang.String toString()
          Returns the version component of the spec string for the type of VersionSpec implemented by this class.
 
Methods inherited from class com.microsoft.tfs.core.clients.versioncontrol.specs.version.VersionSpec
fromWebServiceObject, getWebServiceObject, parseMultipleVersionsFromSpec, parseSingleVersionFromSpec
 
Methods inherited from class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

IDENTIFIER

protected static final char IDENTIFIER
Returns the single character identifier for the type of VersionSpec implemented by this class.

Constant Field Value:
68
See Also:
Constant Field Values
Constructor Detail

DateVersionSpec

public DateVersionSpec(ms.tfs.versioncontrol.clientservices._03._DateVersionSpec spec)

DateVersionSpec

public DateVersionSpec(java.util.Calendar calendar)

DateVersionSpec

public DateVersionSpec(java.lang.String dateTimeString)
                throws java.text.ParseException
Creates a DateVersionSpec from a date and time string. Both date and time components will default to current time if not specified in ths given string.

Throws:
java.text.ParseException - if the date/time string could not be parsed.
Method Detail

toString

public java.lang.String toString()
Description copied from class: VersionSpec
Returns the version component of the spec string for the type of VersionSpec implemented by this class. This is used to format version specs for display to the user.

Specified by:
toString in class VersionSpec
Returns:
the version component of the spec string.

getDate

public java.util.Calendar getDate()
Returns:
the date.


© 2015 Microsoft. All rights reserved.