Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BusinessObjectType

A BusinessObjectType represents a type of business object.

BusinessObjectTypes are mutable

specfield

participant (boolean): determines whether or not the business object type represents a participant type

specfield

attributes : set of AttributeType held in the business object type

specfield

masters : set of master BusinessObjectTypes

specfield

fsm (FSM) : finite state machine attached to the business object type

Hierarchy

Index

Constructors

constructor

  • Creates a new BusinessObjectType bot such that:

    • this.name = name &&
    • this.participant = participant &&
    • this.attributes = attributes &&
    • this.masters = masters &&
    • this.methods = methods &&
    • this.fsm = a default FSM generated for this

    Parameters

    • name: string

      Name of the business object type

    • participant: boolean

      Defines whether or not the bot represents a participant type

    • Default value attributes: Set<AttributeType> = new Set<AttributeType>()

      Defines the data attributes held in the business object type

    • Default value masters: Set<BusinessObjectType> = new Set<BusinessObjectType>()

      Set of master business object types

    • Default value methods: Set<Method> = new Set<Method>()

      Set of methods added to this

    Returns BusinessObjectType

Properties

Private attributes

attributes: Map<string, AttributeType>

Private fsm

fsm: FSM

Private hasDefaultFSM

hasDefaultFSM: boolean

Private masters

masters: Set<BusinessObjectType>

Private methods

methods: Map<string, Method>

Private participant

participant: boolean

Methods

addAttribute

addMaster

addMethod

  • addMethod(method: Method): void

getAttribute

  • throws

    an Error if attributeType with id attributeId is not part of this

    willreturn

    otherwise, retrurns an attribute type a so that a is in this.attributes and a.id = attributeId

    Parameters

    • attributeId: string

      ID of the attribute to be retrieved

    Returns AttributeType

getAttributes

getFSM

  • getFSM(): FSM

getId

  • getId(): string

getMasters

getMethod

  • getMethod(methodId: string): Method
  • throws

    an error if there is method with methodId as id that belongs to this

    willreturn

    otherwise, returns a method m so that m is in this.methods and m.id = methodId;

    Parameters

    • methodId: string

      Id of the method to be retrieved

    Returns Method

getMethods

getName

  • getName(): string

isParticipant

  • isParticipant(): boolean

isValid

  • isValid(): boolean

setFSM

  • setFSM(fsm: FSM): void

setId

  • setId(id: string): void

toJSON

toModelFormat

Static createMapFromArray

  • createMapFromArray<MetaElementType>(elements: Array<MetaElementType>): Map<string, MetaElementType>

Generated using TypeDoc