function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
suneel.patchipulusu@gmail.comsuneel.patchipulusu@gmail.com 

Class diagram

public with sharing class AccountChangeDistriOwnerTriggerHandler implements Triggers.Handler 
{
	public void handle()
	{
		//filter accounts
		List<Account> stdAccs = new List<Account>();
		Map<Id,Id> accountToOwner = new Map<Id,Id>();
		for (SObject obj: Trigger.new)
		{
			Account a = (Account)obj;
                }
 
                if (!stdAccs.isEmpty())
		{
                }
}



 

What I am trying to do is draw a class diagram for the above code:

 

 

<<ClassName>>
AccountChangeDistriOwnerTriggerHandler

 

The above class implements  Triggers.Handler

 

Here triggers is class name and Handler is an interface, So interface and Enum depends on class name Triggers.(Is it correct)

 

 

<<ClassName>>Triggers

 

+manage():void

+bind(Evt event, Handler eh):Triggers

 

Those two are methods in Triggers class.If I am corect there is no attributes in the above class'

AccountChangeDistriOwnerTriggerHandler

And I connect the above class to interface because it implements Triggers.Handler and Handler is in Interface.

Technically: source inherits the target .

 

<<Interface>>

Interface Handler

+handle(): void

 

In inerface we have the method which return void and no attributes .

 

<<Enumeration>>

Enum Evt

 

beforeinsert

beforeupdate

In Enum we have these two attributes no methods.

 

What I want  is: IS List and Map should we consider as attributes or????? Please correct me in the view of class digram

Please correct me if iam in the wrong path

 

Thanks in advance