public final class Metadata extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Metadata.Builder
A mutable builder for a
Metadata object. |
Modifier and Type | Method and Description |
---|---|
static Metadata.Builder |
builder(IRI identifier)
A mutable builder for a
Metadata object. |
static Metadata.Builder |
builder(Resource r)
A mutable builder for a
Metadata object. |
Optional<BinaryMetadata> |
getBinary()
Retrieve the binary metadata if this is an LDP NonRDFSource.
|
Optional<IRI> |
getContainer()
Get the container for this resource.
|
boolean |
getHasAcl()
Retrieve whether this has an ACL associated.
|
IRI |
getIdentifier()
Get an identifier for this metadata.
|
Optional<IRI> |
getInsertedContentRelation()
Retrieve the inserted content relation if this is an LDP Indirect container.
|
IRI |
getInteractionModel()
Get the LDP interaction model for this metadata.
|
Optional<IRI> |
getMemberOfRelation()
Retrieve the member of relation IRI.
|
Optional<IRI> |
getMemberRelation()
Retrieve the member relation if this is an LDP Direct or Indirect container.
|
Optional<IRI> |
getMembershipResource()
Retrieve the membership resource if this is an LDP Direct or Indirect container.
|
Optional<String> |
getRevision()
Retrieve the revision value, if one exists.
|
public static Metadata.Builder builder(IRI identifier)
Metadata
object.identifier
- the resource identifierMetadata
objectpublic static Metadata.Builder builder(Resource r)
Metadata
object.r
- the resourceMetadata
objectpublic IRI getIdentifier()
public IRI getInteractionModel()
public Optional<IRI> getContainer()
public Optional<IRI> getMembershipResource()
Optional
valuepublic Optional<IRI> getMemberRelation()
Optional
valuepublic Optional<IRI> getMemberOfRelation()
Optional
valuepublic Optional<IRI> getInsertedContentRelation()
Optional
valuepublic Optional<BinaryMetadata> getBinary()
Optional
valuepublic boolean getHasAcl()