public interface ProcessableDocument
Modifier and Type | Interface and Description |
---|---|
static class |
ProcessableDocument.Operation |
Modifier and Type | Method and Description |
---|---|
void |
addCustomDirective(java.lang.String key,
java.lang.String value)
Add a custom document-level directive
|
void |
addMeta(java.lang.String name,
java.lang.String value)
Add a new meta for the document.
|
void |
addPart(DocumentPart part)
Add a part.
|
DocumentPart |
addPart(java.lang.String name)
Create a new part inside document and returns it.
|
DocumentPart |
addPart(java.lang.String name,
byte[] content)
Create a new part inside document and returns it.
|
DocumentPart |
addPart(java.lang.String name,
java.nio.ByteBuffer content)
Create a new part inside document and returns it.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getCustomDirectives()
Document-level directives
|
java.lang.String |
getFirstMetaValue(java.lang.String name)
Get the first value for the metas with a given name.
|
java.lang.Iterable<? extends Meta> |
getMetas()
Get all metas of this document.
|
java.lang.Iterable<? extends Meta> |
getMetas(java.util.Collection<java.lang.String> names)
Get the metas of this document with one of the given names.
|
java.lang.Iterable<? extends Meta> |
getMetas(java.lang.String name)
Get the metas of this document with a given name.
|
java.lang.Iterable<? extends Meta> |
getMetas(java.lang.String[] names)
Get the metas of this document with one of the given names.
|
java.lang.Iterable<java.lang.String> |
getMetaValues(java.lang.String name)
Get the values for the metas with a given name.
|
DocumentPart |
getPart(java.lang.String name)
Get the Binary Part with the given name.
|
java.lang.Iterable<? extends DocumentPart> |
getParts()
Get the Binary Parts associated to the document.
|
ProcessableDocument.Operation |
getProcessingFlag()
Get the global processing flag of the document.
|
java.lang.String |
getSource()
Get the source that generated this document
|
java.lang.String |
getURI()
Get the URI of the Document.
|
int |
nbParts()
Get the number of parts
|
void |
removeCustomDirective(java.lang.String key)
Remove all custom document-level directives associated to this key
|
void |
removeMetas(java.util.Collection<java.lang.String> names)
Remove all metas with one of the given name.
|
void |
removeMetas(java.lang.String name)
Remove all metas with a given name.
|
void |
removeMetas(java.lang.String[] names)
Remove all metas with one of the given name.
|
void |
removePart(java.lang.String name)
Remove the part from the document.
|
void |
setProcessingFlag(ProcessableDocument.Operation op)
Set the global processing flag of the document.
|
java.lang.String getURI()
java.lang.String getSource()
java.lang.Iterable<? extends Meta> getMetas()
java.lang.Iterable<? extends Meta> getMetas(java.lang.String name)
java.lang.Iterable<? extends Meta> getMetas(java.lang.String[] names)
java.lang.Iterable<? extends Meta> getMetas(java.util.Collection<java.lang.String> names)
java.lang.Iterable<java.lang.String> getMetaValues(java.lang.String name)
java.lang.String getFirstMetaValue(java.lang.String name)
void removeMetas(java.lang.String name)
void removeMetas(java.lang.String[] names)
void removeMetas(java.util.Collection<java.lang.String> names)
void addMeta(java.lang.String name, java.lang.String value)
java.lang.Iterable<? extends DocumentPart> getParts()
DocumentPart getPart(java.lang.String name)
int nbParts()
void removePart(java.lang.String name)
void addPart(DocumentPart part) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- a part with the same name already existsDocumentPart addPart(java.lang.String name, java.nio.ByteBuffer content) throws java.lang.IllegalArgumentException
name
- the part namejava.lang.IllegalArgumentException
- a part with the same name already existsDocumentPart addPart(java.lang.String name, byte[] content) throws java.lang.IllegalArgumentException
name
- the part's namecontent
- the part's contentjava.lang.IllegalArgumentException
- a part with the same name already existsDocumentPart addPart(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the part's namecontent
- the part's contentjava.lang.IllegalArgumentException
- a part with the same name already existsjava.util.Map<java.lang.String,java.util.List<java.lang.String>> getCustomDirectives()
void addCustomDirective(java.lang.String key, java.lang.String value)
void removeCustomDirective(java.lang.String key)
void setProcessingFlag(ProcessableDocument.Operation op)
ProcessableDocument.Operation getProcessingFlag()
Copyright © 2013 Dassault Systèmes, All Rights Reserved.