Class: Introspector

composer-common. Introspector


Provides access to the structure of transactions, assets and participants.


new Introspector(modelManager)

Create the Introspector.


Note: Only to be called by framework code. Applications should
retrieve instances from BusinessNetworkDefinition

Parameters:
Name Type Description
modelManager ModelManager

the ModelManager that backs this Introspector

Source:

Methods


getClassDeclaration(fullyQualifiedTypeName)

Returns the class declaration with the given fully qualified name.
Throws an error if the class declaration does not exist.

Parameters:
Name Type Description
fullyQualifiedTypeName String

the fully qualified name of the type

Source:
Throws:

if the class declaration does not exist

Type
Error
Returns:

the class declaration

Type
ClassDeclaration

getClassDeclarations()

Returns all the class declarations for the business network.

Source:
Returns:

the array of class declarations

Type
Array.<ClassDeclaration>