com.microsoft.tfs.core.clients.workitem.fields
Interface FieldCollection

All Superinterfaces:
java.lang.Iterable<Field>

public interface FieldCollection
extends java.lang.Iterable<Field>

Represents a collection of Fields in a WorkItem object.

Since:
TEE-SDK-10.1

Method Summary
 boolean contains(java.lang.String name)
           
 int getAreaID()
          Convenience method to get the value of a field in this collection.
 Field getField(java.lang.String name)
          Gets the Field with the specified name.
 int getID()
          Convenience method to get the value of a field in this collection.
 int getRevision()
          Convenience method to get the value of a field in this collection.
 java.lang.String getWorkItemType()
          Convenience method to get the value of a field in this collection.
 java.util.Iterator<Field> iterator()
           
 int size()
           
 

Method Detail

iterator

java.util.Iterator<Field> iterator()
Specified by:
iterator in interface java.lang.Iterable<Field>
Returns:
an Iterator of Fields

size

int size()
Returns:
the number of Fields in this collection

getField

Field getField(java.lang.String name)
Gets the Field with the specified name.

Parameters:
name - the name to get (must not be null)
Returns:
the Field
Throws:
java.lang.IllegalArgumentException - if the field name was not found in this collection

contains

boolean contains(java.lang.String name)
Returns:
true if a Field with the specified name is in this collection, false if it is not

getID

int getID()
Convenience method to get the value of a field in this collection.

Returns:
the integer value of the CoreFieldReferenceNames.ID Field in this collection

getRevision

int getRevision()
Convenience method to get the value of a field in this collection.

Returns:
the integer value of the CoreFieldReferenceNames.REVISION Field in this collection

getAreaID

int getAreaID()
Convenience method to get the value of a field in this collection.

Returns:
the integer value of the CoreFieldReferenceNames.AREA_ID Field in this collection

getWorkItemType

java.lang.String getWorkItemType()
Convenience method to get the value of a field in this collection.

Returns:
the value of the CoreFieldReferenceNames.WORK_ITEM_TYPE Field in this collection


© 2015 Microsoft. All rights reserved.