public class MapWrapper extends BeanWrapper
Constructor and Description |
---|
MapWrapper(SimpleContentSource db,
BeanKey key,
java.util.Map map,
boolean saved,
boolean temporary)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getItemNames()
Returns the names of all items in this document
|
java.lang.Object |
getItemValue(java.lang.String strName)
Returns the value of an content item.
|
java.lang.Object |
getMetaData(java.lang.String type)
Retrieves various meta data for the document core.
|
boolean |
setItemValue(java.lang.String strName,
java.lang.Object value)
Sets a new value for a content item.
|
boolean |
setMetaData(java.lang.String name,
java.lang.Object value)
Modifies various meta data for the document core.
|
attachFile, createFileDerivate, dispose, evaluateExpression, getCreated, getExtensionData, getExtensionDataNames, getFastAccessKey, getFileData, getFileDerivateData, getFileDerivateMetaData, getFileDerivates, getFileMetaData, getFileNames, getFileSize, getLastModified, getLastUpdates, getNativeObject, getOriginDatabase, getRelation, getRelationData, getRelationNames, getRelationNamesOfGroup, getType, hasFile, hasFileMetadata, hasItem, isDataCacheable, isDeleted, isSaved, isTemporary, markFileMetaDataModified, remove, removeExtensionData, removeFile, removeFileDerivate, removeItem, removeRelation, renameFile, retrieveFileExtensionDataHandler, save, setRelation, setRelation, setWGDocument, writeExtensionData, writeFileDerivateMetaData
public MapWrapper(SimpleContentSource db, BeanKey key, java.util.Map map, boolean saved, boolean temporary)
db
- key
- map
- saved
- temporary
- public java.util.List getItemNames()
WGDocumentCore
getItemNames
in interface WGDocumentCore
getItemNames
in class BeanWrapper
public java.lang.Object getItemValue(java.lang.String strName)
WGDocumentCore
getItemValue
in interface WGDocumentCore
getItemValue
in class BeanWrapper
strName
- Name of the requested content item.public java.lang.Object getMetaData(java.lang.String type) throws WGSystemException, WGIllegalArgumentException
WGDocumentCore
getMetaData
in interface WGDocumentCore
getMetaData
in class BeanWrapper
type
- The type of the meta data. See constants META_ of the specific WGDocument subclass for this doc class.WGSystemException
WGIllegalArgumentException
public boolean setItemValue(java.lang.String strName, java.lang.Object value)
WGDocumentCore
setItemValue
in interface WGDocumentCore
setItemValue
in class BeanWrapper
strName
- Name of the item to be modified.value
- New value of the itempublic boolean setMetaData(java.lang.String name, java.lang.Object value)
WGDocumentCore
setMetaData
in interface WGDocumentCore
setMetaData
in class BeanWrapper
name
- The name of the meta data. See constants META_ of the specific WGDocument subclass for this doc class.