Interface TypedLinkFacet.Builder

    • Method Detail

      • name

        TypedLinkFacet.Builder name​(String name)

        The unique name of the typed link facet.

        Parameters:
        name - The unique name of the typed link facet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        TypedLinkFacet.Builder attributes​(Collection<TypedLinkAttributeDefinition> attributes)

        A set of key-value pairs associated with the typed link. Typed link attributes are used when you have data values that are related to the link itself, and not to one of the two objects being linked. Identity attributes also serve to distinguish the link from others of the same type between the same objects.

        Parameters:
        attributes - A set of key-value pairs associated with the typed link. Typed link attributes are used when you have data values that are related to the link itself, and not to one of the two objects being linked. Identity attributes also serve to distinguish the link from others of the same type between the same objects.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attributes

        TypedLinkFacet.Builder attributes​(TypedLinkAttributeDefinition... attributes)

        A set of key-value pairs associated with the typed link. Typed link attributes are used when you have data values that are related to the link itself, and not to one of the two objects being linked. Identity attributes also serve to distinguish the link from others of the same type between the same objects.

        Parameters:
        attributes - A set of key-value pairs associated with the typed link. Typed link attributes are used when you have data values that are related to the link itself, and not to one of the two objects being linked. Identity attributes also serve to distinguish the link from others of the same type between the same objects.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • identityAttributeOrder

        TypedLinkFacet.Builder identityAttributeOrder​(Collection<String> identityAttributeOrder)

        The set of attributes that distinguish links made from this facet from each other, in the order of significance. Listing typed links can filter on the values of these attributes. See ListOutgoingTypedLinks and ListIncomingTypedLinks for details.

        Parameters:
        identityAttributeOrder - The set of attributes that distinguish links made from this facet from each other, in the order of significance. Listing typed links can filter on the values of these attributes. See ListOutgoingTypedLinks and ListIncomingTypedLinks for details.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • identityAttributeOrder

        TypedLinkFacet.Builder identityAttributeOrder​(String... identityAttributeOrder)

        The set of attributes that distinguish links made from this facet from each other, in the order of significance. Listing typed links can filter on the values of these attributes. See ListOutgoingTypedLinks and ListIncomingTypedLinks for details.

        Parameters:
        identityAttributeOrder - The set of attributes that distinguish links made from this facet from each other, in the order of significance. Listing typed links can filter on the values of these attributes. See ListOutgoingTypedLinks and ListIncomingTypedLinks for details.
        Returns:
        Returns a reference to this object so that method calls can be chained together.