D
- The document typepublic interface DocumentDescriptor<D>
DocumentSource
as a way to
describe and access documents.Modifier and Type | Method and Description |
---|---|
String |
getDefaultName()
Documents may have many names, but this one is preferred to others.
|
Set<DocumentDescriptor<D>> |
getDependencies()
This document might be affected in some way (for example, reloaded,
recompiled, etc.) if documents it depends on are affected.
|
D |
getDocument()
The document instance.
|
DocumentSource<D> |
getSource()
The document source from whence this document came.
|
String |
getSourceCode()
The source code for the document.
|
String |
getTag()
The tag for the document (for a file-based document source, this will
probably be the file name extension).
|
long |
getTimestamp()
The document timestamp.
|
void |
invalidate()
Invalidates the descriptor.
|
D |
setDocument(D document) |
D |
setDocumentIfAbsent(D document)
Like
setDocument(Object) , with an atomic check for null. |
String getDefaultName()
String getSourceCode()
String getTag()
long getTimestamp()
D getDocument()
DocumentSource
.D setDocument(D document)
document
- The document instancegetDocument()
D setDocumentIfAbsent(D document)
setDocument(Object)
, with an atomic check for null.document
- The document instancegetDocument()
DocumentSource<D> getSource()
Set<DocumentDescriptor<D>> getDependencies()
void invalidate()
getDependencies()
Copyright © 2009-2015 Three Crickets LLC.