Skip to content

clsTradingAsCollection

clsTradingAsCollection holds every trading name registered against a policy and adds a Where operation that returns a collection of the same type, so a consumer can narrow to current names or prior legal names without dropping out of the collection abstraction.

Purpose

  • Retrieves the trading-as names registered against a policy (Retrieve supporting policy aggregates).
  • Filters its members by predicate while preserving the collection type.
  • Tracks a current item and distinguishes removed members from absent ones.

Context

  • Namespace: SAIF.Business.View.Policy
  • Assembly/package: SAIF.BOF.Business.View.Policy
  • Declared in: Business/SAIF.Business.View.Policy/clsTradingAsCollection.vb

Public members

Member Signature Purpose
CurrentItem Public Shadows ReadOnly Property CurrentItem() As clsTradingAs The member last selected through SetCurrent.
Add Public Shadows Function Add(ByVal inTradingAs As clsTradingAs) As Integer Appends a member and returns its ordinal position.
Contains Public Overloads Function Contains(ByVal inTradingAs As clsTradingAs) As Boolean Reports whether a member is present in the collection.
Contains Public Overloads Function Contains(ByVal inTradingSeqNum As DECIMAL) As Boolean Reports whether a member is present in the collection.
ContainsDeleted Public Overloads Function ContainsDeleted(ByVal inTradingAs As clsTradingAs) As Boolean Reports whether a member was removed from the collection rather than never present.
ContainsDeleted Public Overloads Function ContainsDeleted(ByVal inTradingSeqNum As DECIMAL) As Boolean Reports whether a member was removed from the collection rather than never present.
Remove Public Sub Remove(ByVal inTradingAs As clsTradingAs) Moves a member to the deleted list, where ContainsDeleted can still find it.
Remove Public Sub Remove(ByVal inTradingSeqNum As DECIMAL) Moves a member to the deleted list, where ContainsDeleted can still find it.
Where Public Function Where(ByVal match As Predicate(Of clsTradingAs)) As clsTradingAsCollection Narrows the collection by predicate and returns a collection of the same type, so filtering does not cost the caller the collection behaviour.
GetTradingAsCollection Public Shared Function GetTradingAsCollection(ByVal inDataportal As IDataPortalInfo, ByVal inPolicyNumber As Decimal) As clsTradingAsCollection Returns the trading as collection associated with the trading-as list.*

Inherited public members

Members in this section are inherited from clsBusinessCollectionBase in SAIF.Framework.Core. They are available on this type through inheritance.

Member Signature Purpose Origin
CurrentItem Public Overridable ReadOnly Property CurrentItem() As Object The member most recently selected through SetCurrent; collections in this library shadow it to return their own element type.† SAIF.Framework.Core — clsBusinessCollectionBase
Count Public ReadOnly Property Count() As Integer Number of live members, excluding items moved to the deleted list.† SAIF.Framework.Core — clsBusinessCollectionBase
Add Public Overridable Function Add(ByVal inItem As Object) As Integer Appends a member and returns its ordinal position.† SAIF.Framework.Core — clsBusinessCollectionBase
Contains Public Overridable Function Contains(ByVal inItem As Object) As Boolean Reports whether a member is present in the live collection.† SAIF.Framework.Core — clsBusinessCollectionBase
SetCurrent Public Overridable Sub SetCurrent(ByVal inKey As Object) Selects the member that CurrentItem will return.† SAIF.Framework.Core — clsBusinessCollectionBase
IsValid Public Overridable ReadOnly Property IsValid() As Boolean Reports whether the object currently breaks any registered business rule.† SAIF.Framework.Core — clsBusinessBase
IsSavable Public Overridable ReadOnly Property IsSavable() As Boolean Reports whether the object may be written back; the read-only types in this library override it to refuse persistence.† SAIF.Framework.Core — clsBusinessBase
BrokenRulesCollection Public ReadOnly Property BrokenRulesCollection() As clsBrokenRulesCollection Carries the messages for the rules currently broken, which is what drives IsValid to false.† SAIF.Framework.Core — clsBusinessBase

Note: Statements marked with † are derived from dependency library documentation via the Legends CLI. Statements marked with * were inferred from code structure or contextual evidence. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • Business/SAIF.Business.View.Policy/clsTradingAsCollection.vb