Class Metadata.Builder

java.lang.Object
com.inrupt.client.solid.Metadata.Builder
Enclosing class:
Metadata

public static final class Metadata.Builder extends Object
A Builder class for Metadata instances.
  • Method Details

    • storage

      public Metadata.Builder storage(URI uri)
      Add a storage property.
      Parameters:
      uri - the storage URI
      Returns:
      this builder
    • type

      public Metadata.Builder type(URI uri)
      Add a type property.
      Parameters:
      uri - the type URI
      Returns:
      this builder
    • wacAllow

      public Metadata.Builder wacAllow(Map.Entry<String,Set<String>> accessParam)
      Add a wacAllow property.
      Parameters:
      accessParam - the Access Parameter
      Returns:
      this builder
    • acl

      public Metadata.Builder acl(URI acl)
      Add an acl property.
      Parameters:
      acl - the acl location
      Returns:
      this builder
    • allowedMethod

      public Metadata.Builder allowedMethod(String method)
      Add an allowedMethod property.
      Parameters:
      method - the method
      Returns:
      this builder
    • allowedPatchSyntax

      public Metadata.Builder allowedPatchSyntax(String syntax)
      Add a allowedPatchSyntax property.
      Parameters:
      syntax - the syntax
      Returns:
      this builder
    • allowedPostSyntax

      public Metadata.Builder allowedPostSyntax(String syntax)
      Add a allowedPostSyntax property.
      Parameters:
      syntax - the syntax
      Returns:
      this builder
    • allowedPutSyntax

      public Metadata.Builder allowedPutSyntax(String syntax)
      Add a allowedPutSyntax property.
      Parameters:
      syntax - the syntax
      Returns:
      this builder
    • contentType

      public Metadata.Builder contentType(String type)
      Add a content type property.
      Parameters:
      type - the content type
      Returns:
      this builder
    • build

      public Metadata build()
      Build the Metadata object.
      Returns:
      the resource Metadata object