Class Metadata.Builder

  • Enclosing class:
    Metadata

    public static final class Metadata.Builder
    extends Object
    A mutable builder for a Metadata object.
    • Method Detail

      • interactionModel

        public Metadata.Builder interactionModel​(IRI ixnModel)
        Set the LDP interaction model.
        Parameters:
        ixnModel - the interaction model
        Returns:
        this builder
      • container

        public Metadata.Builder container​(IRI container)
        Set the container value.
        Parameters:
        container - the container identifier
        Returns:
        this builder
      • memberRelation

        public Metadata.Builder memberRelation​(IRI memberRelation)
        Set the member relation value.
        Parameters:
        memberRelation - the member relation predicate
        Returns:
        this builder
      • membershipResource

        public Metadata.Builder membershipResource​(IRI membershipResource)
        Set the membership resource value.
        Parameters:
        membershipResource - the member resource identifier
        Returns:
        this builder
      • memberOfRelation

        public Metadata.Builder memberOfRelation​(IRI memberOfRelation)
        Set the member of relation value.
        Parameters:
        memberOfRelation - the member of relation predicate
        Returns:
        this builder
      • insertedContentRelation

        public Metadata.Builder insertedContentRelation​(IRI insertedContentRelation)
        Set the inserted content relation value.
        Parameters:
        insertedContentRelation - the inserted content relation predicate
        Returns:
        this builder
      • binary

        public Metadata.Builder binary​(BinaryMetadata binary)
        Set the binary metadata.
        Parameters:
        binary - the binary metadata
        Returns:
        this builder
      • metadataGraphNames

        public Metadata.Builder metadataGraphNames​(Set<IRI> graphNames)
        Set any metadata graph names.
        Parameters:
        graphNames - the metadata graph names
        Returns:
        this builder
      • revision

        public Metadata.Builder revision​(String revision)
        Set a revision value for the resource.
        Parameters:
        revision - the revision value
        Returns:
        this builder
      • build

        public Metadata build()
        Build the Metadata object, transitioning this builder to the built state.
        Returns:
        the built Metadata