Skip to main content
저장된 Weave 객체에 대한 레퍼런스입니다. 일반적으로 최종 사용자는 이 클래스를 직접 다룰 필요가 없습니다. ObjectRef에는 Weave의 저장소 시스템에서 저장된 객체를 고유하게 식별하는 프로젝트 ID, 객체 ID, 다이제스트가 포함됩니다. 정의 위치: src/weaveObject.ts:23

예시

생성자

생성자

new ObjectRef(projectId, objectId, digest): ObjectRef
정의 위치: src/weaveObject.ts:24

매개변수

projectId
string
objectId
string
digest
string

반환값

ObjectRef

속성

digest

digest: string
정의 위치: src/weaveObject.ts:27

objectId

objectId: string
정의 위치: src/weaveObject.ts:26

projectId

projectId: string
정의 위치: src/weaveObject.ts:25

방법

get()

get(): Promise<any>
정의 위치: src/weaveObject.ts:64

반환값

Promise<any>

ui_url()

ui_url(): string
정의 위치: src/weaveObject.ts:59

반환값

string

uri()

uri(): string
정의 위치: src/weaveObject.ts:55

반환값

string

fromUri()

static fromUri(uri): ObjectRef
Weave URI string으로 ObjectRef를 생성합니다. 정의 위치: src/weaveObject.ts:42

매개변수

uri
string 다음 형식의 Weave URI: weave:///entity/project/object/name:digest

반환값

ObjectRef 새로운 ObjectRef 인스턴스

Throws

URI 형식이 잘못되었거나 ObjectRef가 아닌 경우 오류

예시