public final class NuxeoDocument extends Document
Document.
Les corrections sont les suivantes :
PropertyMap utilisent NuxeoPropertyMap.
remove(String) a été ajoutée (car set("name", null) ne supprime pas la propriété "name", mais lui associe null).
equals(Object) et hashCode() ont été définies qui prennent en compte l'état de l'objet.
Document,
Serialized FormchangeToken, contextParameters, facets, lockCreated, lockOwner, path, properties, repository, state, type, versionLabel| Constructor and Description |
|---|
NuxeoDocument(String type)
Constructeur simple.
|
NuxeoDocument(String type,
String id,
String path,
String state)
Constructeur.
|
NuxeoDocument(String type,
String id,
String path,
String state,
PropertyMap properties)
Constructeur.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Boolean |
getBoolean(String key)
Fournit la valeur d'une propriété.
|
Boolean |
getBoolean(String key,
Boolean defValue)
Fournit la valeur d'une propriété, ou retourne la valeur par défaut fournie.
|
PropertyList |
getList(String key)
Fournit la valeur d'une propriété.
|
PropertyList |
getList(String key,
PropertyList defValue)
Fournit la valeur d'une propriété, ou retourne la valeur par défaut fournie.
|
PropertyMap |
getMap(String key)
Fournit la valeur d'une propriété.
|
PropertyMap |
getMap(String key,
PropertyMap defValue)
Fournit la valeur d'une propriété, ou retourne la valeur par défaut fournie.
|
int |
hashCode() |
void |
remove(String key)
Supprime une propriété.
|
void |
set(String key,
Boolean value)
Ajoute ou modifie une propriété.
|
void |
set(String key,
PropertyList value)
Ajoute ou modifie une propriété.
|
void |
set(String key,
PropertyMap value)
Ajoute ou modifie une propriété.
|
getChangeToken, getContextParameters, getDate, getDate, getDouble, getDouble, getFacets, getId, getInputType, getLastModified, getLock, getLockCreated, getLockOwner, getLong, getLong, getPath, getProperties, getRepository, getState, getString, getString, getTitle, getType, getVersionLabel, isLocked, set, set, set, setgetInputRef, isBinary, newRef, toStringpublic NuxeoDocument(String type)
type - le type du documentpublic NuxeoDocument(String type, String id, String path, String state)
type - le type du documentid - l'identifiant du documentpath - le chemin du documentstate - l'état du documentpublic NuxeoDocument(String type, String id, String path, String state, PropertyMap properties)
type - le type du documentid - l'identifiant du documentpath - le chemin du documentstate - l'état du documentproperties - les propriétés du documentpublic Boolean getBoolean(String key)
key - le nom de la propriéténull si la propriété n'existe pas ou qu'elle ne contient rienpublic PropertyMap getMap(String key)
key - le nom de la propriéténull si la propriété n'existe pas ou qu'elle ne contient rienpublic PropertyList getList(String key)
key - le nom de la propriéténull si la propriété n'existe pas ou qu'elle ne contient rienpublic Boolean getBoolean(String key, Boolean defValue)
key - le nom de la propriétédefValue - la valeur retournée par défautpublic PropertyMap getMap(String key, PropertyMap defValue)
key - le nom de la propriétédefValue - la valeur retournée par défautpublic PropertyList getList(String key, PropertyList defValue)
key - le nom de la propriétédefValue - la valeur retournée par défautpublic void set(String key, Boolean value)
key - le nom de la propriétévalue - la valeur à lui associerpublic void set(String key, PropertyMap value)
key - le nom de la propriétévalue - la valeur à lui associerpublic void set(String key, PropertyList value)
key - le nom de la propriétévalue - la valeur à lui associerpublic void remove(String key)
key - le nom de la propriétéCopyright © 2022. All rights reserved.