ValidatedConcept (Common API)

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

ValidatedConcept

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
addArrayValue void Adds an array property value, validating that it does not violate the model
setPropertyValue void Sets a property, validating that it does not violate the model
validate void Validates the instance against its model.

Method Details

setPropertyValue

void setPropertyValue( string propname, string value )

Sets a property, validating that it does not violate the model

Parameters

Name Type Optional Description
propName string false the name of the field
value string false the value of the property

addArrayValue

void addArrayValue( string propname, string value )

Adds an array property value, validating that it does not violate the model

Parameters

Name Type Optional Description
propName string false the name of the field
value string false the value of the property

validate

void validate( )

Validates the instance against its model.

Parameters

No parameters