Resource (Common API)

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

Resource

Resource is an instance that has a type. The type of the resource specifies a set of properites (which themselves have types).

Type information in Composer is used to validate the structure of Resource instances and for serialization.

Resources are used in Composer to represent Assets, Participants, Transactions and other domain classes that can be serialized for long-term persistent storage.

Details

  • Extends Identifiable

  • Module common

See also

  • See (see {@link resource)

Method Summary

Name Returns Description
isResource boolean Determine if this identifiable is a resource.
toString String Returns the string representation of this class

Method Details

toString

String toString( )

Returns the string representation of this class

Returns

String - the string representation of the class

Parameters

No parameters

isResource

boolean isResource( )

Determine if this identifiable is a resource.

Returns

boolean - True if this identifiable is a resource, false if not.

Parameters

No parameters