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

All Superinterfaces:
java.lang.Iterable<FieldDefinition>

public interface FieldDefinitionCollection
extends java.lang.Iterable<FieldDefinition>

Describes a collection of FieldDefinition objects.

Since:
TEE-SDK-10.1

Method Summary
 boolean contains(java.lang.String fieldName)
          Tests whether this collection contains the specified item.
 FieldDefinition get(java.lang.String fieldName)
          Gets a FieldDefinition by name.
 FieldDefinition[] getFieldDefinitions()
           
 java.util.Iterator<FieldDefinition> iterator()
           
 int size()
           
 

Method Detail

iterator

java.util.Iterator<FieldDefinition> iterator()
Specified by:
iterator in interface java.lang.Iterable<FieldDefinition>
Returns:
an Iterator of FieldDefinitions, sorted by name.

size

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

get

FieldDefinition get(java.lang.String fieldName)
Gets a FieldDefinition by name.

Parameters:
fieldName - the name of the field to get (must not be null)
Returns:
the FieldDefinition for the specified name
Throws:
FieldDefinitionNotExistException - if this collection does not contain the named field

contains

boolean contains(java.lang.String fieldName)
Tests whether this collection contains the specified item.

Parameters:
fieldName - the item to find in this collection
Returns:
true if the collection contains the specified item, false if it does not

getFieldDefinitions

FieldDefinition[] getFieldDefinitions()
Returns:
an array of the FieldDefinitions in this collection.


© 2015 Microsoft. All rights reserved.