FDO SDK API Reference
    Preparing search index...

    Class DefaultFDORecord

    Base implementation of the FDORecord interface. Can hold a PID to be a CompleteFDORecord (use isComplete to check).

    Consider using DefaultLocalFDORecord if you are creating FDOs

    Hierarchy (View Summary)

    Implements

    Index
    attributes: Map<string, AttributeAnyType | AttributeAnyType[]> = ...
    PID: string | undefined

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

    references: ReferenceDeclaration[] = []
    • Add a unidirectional reference from this record to another record. The target record must either be known locally or be resolvable via its PID

      Parameters

      • fromAttribute: string | AttributeDef<string, string, `${number}..${number}` | `${number}..*`>

        The attribute of this record where the reference will be placed

      • toRecord: string | IdentifiableFDORecord

        the record that should be referenced, or a local ID (LocalID) or PID of the referenced record. Must either be known locally or be resolvable via its PID

      Returns void

      FDORecord.addReferenceBidi for bidirectional references

    • Add a bidirectional reference from this record to another record and back. The target record must be in the current local or remote graph in order to create the back-reference

      Parameters

      • fromAttribute: string | AttributeDef<string, string, `${number}..${number}` | `${number}..*`>

        The attribute of this record where the reference will be placed

      • inverseAttribute: string | AttributeDef<string, string, `${number}..${number}` | `${number}..*`>

        The attribute of the target record where the back-reference will be placed

      • toRecord: string | IdentifiableFDORecord

        the record that should be referenced, or a local ID (LocalID) or PID of the referenced record. Must either be known locally or be resolvable via its PID

      Returns void

      FDORecord.addReference for unidirectional references

    • 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