public class Document extends java.lang.Object implements EmittedItem, Fields, Metadata
Modifier and Type | Class and Description |
---|---|
static class |
Document.Builder |
static class |
Document.Emitter |
Modifier and Type | Method and Description |
---|---|
static Document.Builder |
builder(java.lang.String id) |
static Document.Emitter |
emitter(java.lang.String id,
java.util.function.Consumer<EmittedItem> emittedItemConsumer)
Creates a document emitter
|
java.util.List<java.lang.String> |
getAcls() |
java.lang.String |
getCanonicalId() |
java.util.List<java.lang.String> |
getDenyAcls() |
java.util.Map<java.lang.String,java.lang.Object> |
getFields() |
java.lang.String |
getId() |
java.util.Map<java.lang.String,java.lang.Object> |
getMetadata() |
java.lang.String |
getParentId() |
boolean |
isContainer() |
boolean |
isUpdateACLsOnAncestorChange() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hasFields
hasMetadata
public java.lang.String getId()
getId
in interface Identifiable
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
getMetadata
in interface Metadata
public java.util.Map<java.lang.String,java.lang.Object> getFields()
public java.lang.String getParentId()
public java.lang.String getCanonicalId()
public java.util.List<java.lang.String> getAcls()
public java.util.List<java.lang.String> getDenyAcls()
public boolean isUpdateACLsOnAncestorChange()
public boolean isContainer()
public static Document.Builder builder(java.lang.String id)
public static Document.Emitter emitter(java.lang.String id, java.util.function.Consumer<EmittedItem> emittedItemConsumer)
id
- idemittedItemConsumer
- emitted item consumerpublic java.lang.String toString()
toString
in class java.lang.Object