FDO SDK API Reference
    Preparing search index...

    Interface ReadOnlyFDORecord

    Represents a single FDO record that is optionally associated with a registered PID. Read-only.

    A record consists of attributes, each with one or more values. Each attribute is uniquely identified by its PID.

    interface ReadOnlyFDORecord {
        PID: string | undefined;
        get(attribute: string): AttributeAnyType | undefined;
        get<A extends DefaultAttributeDef>(
            attribute: A,
        ): AttrTypeWithCardinality<A> | undefined;
        getAll(): Map<string, AttributeAnyType | AttributeAnyType[]>;
        getData(): string | string[] | undefined;
        getProfile(): | string
        | ReferenceMarker
        | (string | ReferenceMarker)[]
        | undefined;
        getReferences(): ReferenceDeclaration[];
        getType(): string | string[] | undefined;
        has(attribute: string | DefaultAttributeDef): boolean;
        toJSON(): Record<string, AttrTypeWithCardinality<DefaultAttributeDef>>;
        toString(): string;
    }

    Hierarchy (View Summary)

    Index
    PID: string | undefined

    The globally unique and registered identifier of this record. Undefined only if this record has not been published yet.

    • This attribute is the entry point to find the data associated with an FDO. If the identified resource is physical or conceptual, the string "self" is used. If the resource it digital, this attribute points to the Attribute that references the digital resource.

      Returns string | string[] | undefined

    • The FDO type gives a hint to a machine how the identified resource may be processed. It points to the attribute that further specifies the FDO type.

      Returns string | string[] | undefined