com.microsoft.tfs.core.clients.workitem
Class WorkItemUtils
java.lang.Object
com.microsoft.tfs.core.clients.workitem.WorkItemUtils
public class WorkItemUtils
- extends java.lang.Object
Utilities for working with work items.
- Since:
- TEE-SDK-10.1
Method Summary |
static WorkItem |
createRelatedWorkItem(WorkItem inputWorkItem,
WorkItemType workItemType,
int linkTypeId,
java.lang.String newTitle,
java.lang.String comment,
boolean readOnly)
|
static java.lang.String |
doubleToString(java.lang.Double value)
For Visual Studio compatibility: converts a Double-type to a String, but
ensures that whole numbers have no decimal point. |
static java.lang.String |
objectToString(java.lang.Object value)
For Visual Studio compatibility. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkItemUtils
public WorkItemUtils()
createRelatedWorkItem
public static WorkItem createRelatedWorkItem(WorkItem inputWorkItem,
WorkItemType workItemType,
int linkTypeId,
java.lang.String newTitle,
java.lang.String comment,
boolean readOnly)
doubleToString
public static java.lang.String doubleToString(java.lang.Double value)
- For Visual Studio compatibility: converts a Double-type to a String, but
ensures that whole numbers have no decimal point.
This is for rule engine parsing and display. Ie, when we have a double
value "0", we display it as "0.0", while .NET (and C# in general)
displays "0". This leads to interop headaches, particularly with
ALLOWEDVALUES fields.
- Parameters:
value
- A Double to convert to a String
- Returns:
- A String representation of a Double
objectToString
public static java.lang.String objectToString(java.lang.Object value)
- For Visual Studio compatibility. Takes an Object and returns a string
representation. Generally calls Object.toString(), unless we know that
TFS wants a particular type formatted a particular way.
- Parameters:
value
- An object
- Returns:
- The string representation of an object
© 2015 Microsoft. All rights reserved.