Home Reference Source
public class | source

Component

Extends:

Identified → Component

Class to represent an SBOL2 component instantiation.

Constructor Summary

Public Constructor
public

constructor(sbolDocument: *, uri: *)

Member Summary

Public Members
public set

access(access: string | URI): *

Set the access property for this Component.

public get

access: URI: *

Retrieve the access property for this Component.

public set

definition(definition: string | URI | ComponentDefinition): *

Set the ComponentDefinition for this Component.

public get

Retrieve the ComponentDefinition for this Component.

Method Summary

Public Methods
public

link()

Attempt to resolve the URI of the definition.

Public Constructors

public constructor(sbolDocument: *, uri: *) source

Parameters:

NameTypeAttributeDescription
sbolDocument *
uri *

Public Members

public set access(access: string | URI): * source

Set the access property for this Component.

public get access: URI: * source

Retrieve the access property for this Component.

Returns:

URI

[access]

public set definition(definition: string | URI | ComponentDefinition): * source

Set the ComponentDefinition for this Component.

public get definition: URI | ComponentDefinition: * source

Retrieve the ComponentDefinition for this Component. Returns either a URI or a ComponentDefinition, depending on whether the URI has been resolved by link().

Returns:

URI | ComponentDefinition

Public Methods

Attempt to resolve the URI of the definition.