Namespace: OpenEdge.Core.Collections
Interface
IStringCollection
Parent classes:
Inherits: OpenEdge.Core.Collections.ICollection

Copyright (c) 2014 by Progress Software Corporation. All rights reserved.
File:IStringCollection
Purpose:Interface defining a typed String Collection
Author(s):pjudge
Created:Wed Dec 18 13:58:44 EST 2013
Notes:* Also contains ICollection methods using ABL primitives instead
of OpenEdge.Core.String
Purpose: Add an object to the collection.




Method Summary
Options Name Purpose
LOGICAL Add (longchar) /** Appends the specified element to list if not already present @param longchar The element to add to the collection @return logical True if the operation succeeded. */
LOGICAL Add (String) /** Add an object to the collection. @param {&ValueType} The object to add to the collection @return logical True if the operation succeeded. */
LOGICAL AddAll (IStringCollection) /** Add a collection of objects to the collection. @param {&CollectionType} The collection to add to the collection @return logical True if the operation succeeded. */
LOGICAL AddArray (longchar[]) /** Adds an array of elements to the collection @param longchar[] An array of elements to add to the collection @return logical True if the operation succeeded. */
LOGICAL AddArray (String[]) /** Add an array of objects to the collection. @param {&CollectionType}[] The array to add to the collection @return logical True if the operation succeeded. */
LOGICAL Contains (longchar) /** Check whether the colleciton contains at least one object that matches the passed in object. @param Object The object @return logical Returns true if the object is in the collection */
LOGICAL Contains (String) /** Determine whether an object is in the collection. @param {&ValueType} The object to check in the collection @return logical True if the operation succeeded. */
LOGICAL Remove (longchar) /** Removes the first occurrence in this list of the specified element @param Object The @return logical True if the operation succeded. */
LOGICAL Remove (String) /** Remove an object from the collection. @param {&ValueType} The object to remove from the collection @return logical True if the operation succeeded. */
LOGICAL RemoveAll (IStringCollection) /* Removes from this collection all the elements that are contained in the specified collection (optional operation). @param {&CollectionType} The collection of objects to remove. @return logical True if the operation succeeded. */
LOGICAL RetainAll (IStringCollection) /* Retains only the elements in this list that are contained in the specified collection (optional operation). return true if the object changed @param {&CollectionType} The collection of objects to retain. @return logical True if the operation succeeded. */
OpenEdge.Core.String ToStringArray () /* Returns the elements in this collection as an ABL array. @return {&CollectionType}[] An ABL array of the objects in this collection */


Method Detail
Top

LOGICAL Add (longchar)

Purpose: Appends the specified element to list if not already present
Parameters:
pcElement LONGCHAR
Returns LOGICAL
logical True if the operation succeeded.
Top

LOGICAL Add (String)

Purpose: Add an object to the collection.
Parameters:
newObject OpenEdge.Core.String
Returns LOGICAL
logical True if the operation succeeded.
Top

LOGICAL AddAll (IStringCollection)

Purpose: Add a collection of objects to the collection.
Parameters:
poCollection OpenEdge.Core.Collections.IStringCollection
Returns LOGICAL
logical True if the operation succeeded.
Top

LOGICAL AddArray (longchar[])

Purpose: Adds an array of elements to the collection
Parameters:
pcElements LONGCHAR
Returns LOGICAL
logical True if the operation succeeded.
Top

LOGICAL AddArray (String[])

Purpose: Add an array of objects to the collection.
Parameters:
poArray OpenEdge.Core.String
Returns LOGICAL
logical True if the operation succeeded.
Top

LOGICAL Contains (longchar)

Purpose: Check whether the colleciton contains at least one object
that matches the passed in object.
Parameters:
pcElement LONGCHAR
Returns LOGICAL
logical Returns true if the object is in the collection
Top

LOGICAL Contains (String)

Purpose: Determine whether an object is in the collection.
Parameters:
checkObject OpenEdge.Core.String
Returns LOGICAL
logical True if the operation succeeded.
Top

LOGICAL Remove (longchar)

Purpose: Removes the first occurrence in this list of the specified element
Parameters:
pcElement LONGCHAR
Returns LOGICAL
logical True if the operation succeded.
Top

LOGICAL Remove (String)

Purpose: Remove an object from the collection.
Parameters:
oldObject OpenEdge.Core.String
Returns LOGICAL
logical True if the operation succeeded.
Top

LOGICAL RemoveAll (IStringCollection)

/* Removes from this collection all the elements that are contained in the
specified collection (optional operation).
Parameters:
poCollection OpenEdge.Core.Collections.IStringCollection
Returns LOGICAL
logical True if the operation succeeded.
Top

LOGICAL RetainAll (IStringCollection)

/* Retains only the elements in this list that are contained in the
specified collection (optional operation). return true if the object changed
Parameters:
poCollection OpenEdge.Core.Collections.IStringCollection
Returns LOGICAL
logical True if the operation succeeded.
Top

OpenEdge.Core.String ToStringArray ()

/* Returns the elements in this collection as an ABL array.
Returns OpenEdge.Core.String
{&CollectionType}[] An ABL array of the objects in this collection


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15