public interface IDocument
Modifier and Type | Method and Description |
---|---|
void |
addCustomDirective(java.lang.String key,
java.lang.String value)
Adds a new custom directive.
|
void |
addMeta(Meta meta)
Adds a new meta data to this document.
|
void |
addMeta(java.lang.String name,
java.lang.String value)
Add a new meta to this document.
|
void |
addPart(Part part)
Adds a new part to this document.
|
void |
deleteCustomDirectives()
Delete all custom directives of this document.
|
void |
deleteMeta(java.lang.String name)
Delete all the Meta that match the given meta data name.
|
void |
deleteMetas()
Delete all metas of this document.
|
void |
deletePart(java.lang.String name)
Delete all the Part that match the given part name.
|
void |
deleteParts()
Delete all the part of this document.
|
KeyValuesContainer<java.lang.String,java.lang.String> |
getDirectiveContainer()
Gets the directives container associated with this document.
|
java.lang.String |
getForcedDid()
Gets the value of the forcedDid directive.
|
java.lang.String |
getForcedSlice()
Gets the value of the forcedSlice directive.
|
MetaContainer |
getMetaContainer()
Gets the meta container associated with this document.
|
PartContainer |
getPartContainer()
Gets the part container associated with this document.
|
java.lang.String |
getStamp()
Gets the document stamp.
|
java.lang.String |
getUri()
Gets the document unique identifier.
|
void |
setCustomDirective(java.lang.String key,
java.lang.String value)
Set the value of a custom directive.
|
void |
setCustomDirectives(java.lang.String key,
java.util.List<java.lang.String> values)
Sets the set of values of a custom directive.
|
void |
setForcedDid(java.lang.String value)
Sets the value of the forcedDid directive.
|
void |
setForcedSlice(java.lang.String value)
Sets the value of the forcedSlice directive.
|
void |
setStamp(java.lang.String stamp)
Sets the document stamp.
|
void |
setUri(java.lang.String uri)
Sets the unique identifier of the document.
|
java.lang.String |
toString()
Simple document serializer.
|
void addMeta(Meta meta)
meta
- The meta that should be added.void addMeta(java.lang.String name, java.lang.String value)
name
- The name of the meta that should be addedvalue
- The value of the meta that should be addedvoid deleteMeta(java.lang.String name)
name
- the meta data name to delete.void deleteMetas()
void addPart(Part part)
part
- Data to add.MultiplePartException
void deletePart(java.lang.String name)
name
- the part name to delete.void deleteParts()
java.lang.String getStamp()
PushAPI
for more
information on how to retrieve indexed stamps).void setStamp(java.lang.String stamp)
stamp
- the document stampjava.lang.String getUri()
PushAPI
for more
information on how to use the hierarchical organization of indexed
documents.).void setUri(java.lang.String uri)
uri
- the unique document identifierjava.lang.String getForcedDid()
void setForcedDid(java.lang.String value)
value
- the internal document identifier to be used (32 bits integer)java.lang.String getForcedSlice()
void setForcedSlice(java.lang.String value)
value
- the slice number to be used (32 bits integer).void addCustomDirective(java.lang.String key, java.lang.String value)
key
- the directive name.value
- the directive value.void setCustomDirective(java.lang.String key, java.lang.String value)
key
- the directive name.value
- the directive value.void setCustomDirectives(java.lang.String key, java.util.List<java.lang.String> values)
key
- the directive name.values
- the directive values.void deleteCustomDirectives()
PartContainer getPartContainer()
MetaContainer getMetaContainer()
KeyValuesContainer<java.lang.String,java.lang.String> getDirectiveContainer()
java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021 Dassault Systèmes, All Rights Reserved.