Update Aug 29th 2019: Hyperledger Composer has been deprecated. Please see the README for more information.

Introspector (Common API)

Overview - Common API - Client API - Admin API - Runtime API

Introspector

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

Details

  • Module common

Method Summary

Name Returns Description
constructor void Create the Introspector
getClassDeclaration ClassDeclaration Returns the class declaration with the given fully qualified name
getClassDeclarations ClassDeclaration[] Returns all the class declarations for the business network

Method Details

new Introspector()

Create the Introspector.

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

Parameters

Name Type Mandatory Description
modelManager ModelManager Yes the ModelManager that backs this Introspector

getClassDeclarations

ClassDeclaration[] getClassDeclarations( )

Returns all the class declarations for the business network.

Returns

ClassDeclaration - the array of class declarations

Parameters

No parameters

getClassDeclaration

ClassDeclaration getClassDeclaration( String fullyqualifiedtypename )

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

Returns

ClassDeclaration - the class declaration

Parameters

Name Type Mandatory Description
fullyQualifiedTypeName String Yes the fully qualified name of the type

Inherited methods