public final class Metadata
extends java.lang.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(org.apache.commons.rdf.api.IRI identifier)
A mutable builder for a
Metadata object. |
static Metadata.Builder |
builder(Resource r)
A mutable builder for a
Metadata object. |
java.util.Optional<BinaryMetadata> |
getBinary()
Retrieve the binary metadata if this is an LDP NonRDFSource.
|
java.util.Optional<org.apache.commons.rdf.api.IRI> |
getContainer()
Get the container for this resource.
|
boolean |
getHasAcl()
Retrieve whether this has an ACL associated.
|
org.apache.commons.rdf.api.IRI |
getIdentifier()
Get an identifier for this metadata.
|
java.util.Optional<org.apache.commons.rdf.api.IRI> |
getInsertedContentRelation()
Retrieve the inserted content relation if this is an LDP Indirect container.
|
org.apache.commons.rdf.api.IRI |
getInteractionModel()
Get the LDP interaction model for this metadata.
|
java.util.Optional<org.apache.commons.rdf.api.IRI> |
getMemberOfRelation()
Retrieve the member of relation IRI.
|
java.util.Optional<org.apache.commons.rdf.api.IRI> |
getMemberRelation()
Retrieve the member relation if this is an LDP Direct or Indirect container.
|
java.util.Optional<org.apache.commons.rdf.api.IRI> |
getMembershipResource()
Retrieve the membership resource if this is an LDP Direct or Indirect container.
|
java.util.Optional<java.lang.String> |
getRevision()
Retrieve the revision value, if one exists.
|
public static Metadata.Builder builder(org.apache.commons.rdf.api.IRI identifier)
Metadata object.identifier - the resource identifierMetadata objectpublic static Metadata.Builder builder(Resource r)
Metadata object.r - the resourceMetadata objectpublic org.apache.commons.rdf.api.IRI getIdentifier()
public org.apache.commons.rdf.api.IRI getInteractionModel()
public java.util.Optional<org.apache.commons.rdf.api.IRI> getContainer()
public java.util.Optional<org.apache.commons.rdf.api.IRI> getMembershipResource()
Optional valuepublic java.util.Optional<org.apache.commons.rdf.api.IRI> getMemberRelation()
Optional valuepublic java.util.Optional<org.apache.commons.rdf.api.IRI> getMemberOfRelation()
Optional valuepublic java.util.Optional<org.apache.commons.rdf.api.IRI> getInsertedContentRelation()
Optional valuepublic java.util.Optional<BinaryMetadata> getBinary()
Optional valuepublic boolean getHasAcl()
public java.util.Optional<java.lang.String> getRevision()