com.microsoft.tfs.core.clients.versioncontrol.soapextensions
Class ItemType

java.lang.Object
  extended by com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
      extended by com.microsoft.tfs.core.internal.wrappers.EnumerationWrapper
          extended by com.microsoft.tfs.core.clients.versioncontrol.soapextensions.ItemType

public class ItemType
extends com.microsoft.tfs.core.internal.wrappers.EnumerationWrapper

Enumerates the types of version control objects.

Since:
TEE-SDK-10.1

Field Summary
static ItemType ANY
          Matches any kind of item (file, folder, other).
static ItemType FILE
          Matches only file objects (which may not contain files or folders).
static ItemType FOLDER
          Matches only folder objects (which may contain other folders and files).
static java.util.HashMap<java.lang.Byte,ItemType> VALUE_MAP
          A map of enumeration integer values to ItemType
 
Fields inherited from class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
webServiceObject
 
Method Summary
 boolean equals(java.lang.Object o)
           
static ItemType fromByteValue(byte value)
          Gets the ItemType associated with the specified integer value.
static ItemType fromWebServiceObject(ms.tfs.versioncontrol.clientservices._03._ItemType webServiceObject)
          Gets the correct wrapper type for the given web service object.
 byte getValue()
          Returns the integer value associated with this enumeration.
 ms.tfs.versioncontrol.clientservices._03._ItemType getWebServiceObject()
          Gets the web service object this class wraps.
 int hashCode()
           
 java.lang.String toUIString()
          The localized string appropriate for normal item type display.
 
Methods inherited from class com.microsoft.tfs.core.internal.wrappers.EnumerationWrapper
fromWebServiceObject
 
Methods inherited from class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUE_MAP

public static final java.util.HashMap<java.lang.Byte,ItemType> VALUE_MAP
A map of enumeration integer values to ItemType


ANY

public static final ItemType ANY
Matches any kind of item (file, folder, other).


FOLDER

public static final ItemType FOLDER
Matches only folder objects (which may contain other folders and files).


FILE

public static final ItemType FILE
Matches only file objects (which may not contain files or folders).

Method Detail

fromByteValue

public static ItemType fromByteValue(byte value)
Gets the ItemType associated with the specified integer value.

Parameters:
value - The integer value for this item type.
Returns:
The ItemType with the associated integer value.

fromWebServiceObject

public static ItemType fromWebServiceObject(ms.tfs.versioncontrol.clientservices._03._ItemType webServiceObject)
Gets the correct wrapper type for the given web service object.

Parameters:
webServiceObject - the web service object (must not be null)
Returns:
the correct wrapper type for the given web service object
Throws:
java.lang.RuntimeException - if no wrapper type is known for the given web service object

getWebServiceObject

public ms.tfs.versioncontrol.clientservices._03._ItemType getWebServiceObject()
Gets the web service object this class wraps. The returned object should not be modified.

Returns:
the web service object this class wraps.

getValue

public byte getValue()
Returns the integer value associated with this enumeration.


toUIString

public java.lang.String toUIString()
The localized string appropriate for normal item type display.

Returns:
the localized string that describes the given item type.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper

hashCode

public int hashCode()
Overrides:
hashCode in class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper


© 2015 Microsoft. All rights reserved.