com.microsoft.tfs.core.clients.workitem.link
Class WorkItemLinkUtils
java.lang.Object
com.microsoft.tfs.core.clients.workitem.link.WorkItemLinkUtils
public class WorkItemLinkUtils
- extends java.lang.Object
- Since:
- TEE-SDK-10.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkItemLinkUtils
public WorkItemLinkUtils()
buildDescriptionFromWorkItems
public static java.lang.String buildDescriptionFromWorkItems(WorkItem[] workItems)
buildDescriptionFromWorkItem
public static java.lang.String buildDescriptionFromWorkItem(WorkItem workItem)
- Builds a one-line work item description including type, ID, and title (if
title is present). Locale invariant.
- Parameters:
workItem
- the work item (may be null
)
- Returns:
- the string containing the work item's information, or an empty
string if the given work item was
null
buildCommaSeparatedWorkItemIDList
public static java.lang.String buildCommaSeparatedWorkItemIDList(WorkItem[] workItems)
- Builds a string list of the given work items' IDs, separated by commas.
Locale invariant.
- Parameters:
workItems
- the work items to make a list of (may be null
)
- Returns:
- the list of IDs (never
null
but may be empty)
buildWorkItemIDListFromText
public static int[] buildWorkItemIDListFromText(java.lang.String textIds)
throws java.lang.NumberFormatException
- Parses a text list of work item IDs. Locale invariant. Only commas and
whitespace characters may separate numeric values. Other characters cause
an exception to be thrown.
- Parameters:
textIds
- the string containing the work item ID list (must not be
null
)
- Returns:
- the array of work item IDs (never
null
but may be
empty)
- Throws:
java.lang.NumberFormatException
- if non-digit, non-whitespace, non-comma characters were found in
the input or an invalid work item ID (like 0) was present
© 2015 Microsoft. All rights reserved.