public class CompBundleCachedXliffResourceBundleWrapper extends XliffResourceBundleWrapper
XliffResourceBundleWrapper.ResourceBundleAuditEventsResourceBundleWrapperRT.DefaultSearchContext, ResourceBundleWrapperRT.SearchTypeResourceBundleWrapper.KeyInfo_writable_parent| Constructor and Description |
|---|
CompBundleCachedXliffResourceBundleWrapper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addEntry(java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata)
Adds a new entry (key, value, and optional metadata) into the
resource bundle.
|
boolean |
deleteEntry(java.lang.String key)
Deletes the resource bundle entry identified by
key. |
boolean |
deleteEntry(java.lang.String key,
oracle.mds.core.MetadataObject metadataObject) |
java.util.Map<java.lang.String,ResourceBundleWrapper.KeyInfo> |
getBaseKeyMap() |
java.util.Map<java.lang.String,ResourceBundleWrapper.KeyInfo> |
getBaseKeyMap(oracle.mds.core.MetadataObject metadataObject) |
protected java.util.Map<java.lang.String,java.lang.String> |
getBaseKeyValueMap() |
protected java.util.Map<java.lang.String,java.lang.String> |
getBaseKeyValueMap(oracle.mds.core.MetadataObject metadataObject) |
protected org.w3c.dom.Document |
getDocument() |
protected org.w3c.dom.Document |
getDocument(oracle.mds.core.MetadataObject metadataObject) |
void |
parse(org.w3c.dom.Document document) |
void |
parse(java.net.URL url) |
void |
setDocument(org.w3c.dom.Document document)
This should only be used when dealing with an override bundle and
via the AppBundleInfoRT class
|
boolean |
updateEntry(java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata)
Updates the specified key to have the specified text and metadata.
|
protected boolean |
updateEntry(java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata,
oracle.mds.core.MetadataObject metadataObject)
Only for string editor use.
|
boolean |
updateEntryExport(java.lang.String key,
java.lang.String custHint,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata,
oracle.mds.core.MetadataObject metadataObject)
Update API to export resourcebundle strings from MDS.
|
boolean |
updateEntryImport(java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> note,
CustomizationHint hint)
Update API to import resourcebundle strings in MDS in terms of companion bundle and customizations.
|
addEntryNoDialog, addMetadata, createMOReference, getBundleIdentifier, getKeyValueMap, getMetadata, getMetadataObject, getMetadataObject, getMOKey, getMutableMO, getString, keySet, parse, setParent, setWritable, updateDocument, updateEntry, updateEntryNoDialog, updateEntryNoDialogaddEntry, addResourceBundleListener, findKeys, findKeys, findKeysByMetaData, findKeysByMetaData, findKeysByText, findKeysByText, findKeysLikeKey, findKeysLikeKey, findKeysLikeMetaData, findKeysLikeText, findKeysLikeText, getBaseBundleKeyValueMap, getBundleId, getChainedKeyValueMap, getChainedKeyValueMapNoOverride, getChainedKeyValueNoteMap, getExportChainedKeyValueNoteMap, getKeyGenerator, getKeyMapForExport, getKeyMapForFABundleExport, getKeyValueNoteMap, getKeyValueNoteMap, getKeyValueNoteMapFromFABundle, getKeyValueNoteMapFromFABundleChain, getMetadataFromParentChain, getMetadataObject, getMOReference, getMostSpecificWrapperMoName, getParent, getParentChain, getParentList, getSEChainedKeyValueMap, isEmptyReadOnlyWrapper, refreshBundleIfNeeded, removeResourceBundleListener, setBundleId, setEmptyReadOnlyWrapper, setKeyGenerator, setParentList, setURL, toStringpublic CompBundleCachedXliffResourceBundleWrapper()
public boolean addEntry(java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata)
ResourceBundleWrapperaddEntry in interface ResourceBundleWrapperaddEntry in class XliffResourceBundleWrapperkey - The key name to use in the resource bundle.text - The text to be translated.metadata - Any associated metadata about the translation string
This parameter may be nulltrue on successpublic boolean updateEntry(java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata)
ResourceBundleWrapperupdateEntry in interface ResourceBundleWrapperupdateEntry in class XliffResourceBundleWrapperkey - The key to updatetext - The new text for the given keymetadata - Any metadata to change. Existing metadata is merged with
the new metadata, unless there is a key with a null value, then the
existing metadata for that key is removed. If metadata is
null then the existing metadata will be unchanged.true on successpublic boolean deleteEntry(java.lang.String key)
ResourceBundleWrapperkey. If
key does not exist, then a value of false is returned.deleteEntry in interface ResourceBundleWrapperdeleteEntry in class XliffResourceBundleWrapperkey - The key to deletetrue If the key is found and deleted success.public java.util.Map<java.lang.String,ResourceBundleWrapper.KeyInfo> getBaseKeyMap()
getBaseKeyMap in class XliffResourceBundleWrapperprotected java.util.Map<java.lang.String,java.lang.String> getBaseKeyValueMap()
getBaseKeyValueMap in class XliffResourceBundleWrapperprotected java.util.Map<java.lang.String,java.lang.String> getBaseKeyValueMap(oracle.mds.core.MetadataObject metadataObject)
public java.util.Map<java.lang.String,ResourceBundleWrapper.KeyInfo> getBaseKeyMap(oracle.mds.core.MetadataObject metadataObject)
public void setDocument(org.w3c.dom.Document document)
XliffResourceBundleWrappersetDocument in class XliffResourceBundleWrapperprotected org.w3c.dom.Document getDocument()
getDocument in class XliffResourceBundleWrapperpublic void parse(org.w3c.dom.Document document)
parse in class XliffResourceBundleWrapperpublic void parse(java.net.URL url)
parse in class XliffResourceBundleWrapperpublic boolean updateEntryExport(java.lang.String key,
java.lang.String custHint,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata,
oracle.mds.core.MetadataObject metadataObject)
updateEntryExport in class ResourceBundleWrapperRTkey - Trans-unit KeycustHint - String representation of CustomizationHint object conatining cust informationstext - Trans-unit source stringmetadata - Trans-unit note mapmetadataObject - MO objectprotected boolean updateEntry(java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata,
oracle.mds.core.MetadataObject metadataObject)
updateEntry in class XliffResourceBundleWrapperkey - Key to be updatedtext - String to be updatedmetadata - Note to be updatedmetadataObject - MO where the update will gopublic boolean deleteEntry(java.lang.String key,
oracle.mds.core.MetadataObject metadataObject)
protected org.w3c.dom.Document getDocument(oracle.mds.core.MetadataObject metadataObject)
public boolean updateEntryImport(java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> note,
CustomizationHint hint)
updateEntryImport in class ResourceBundleWrapperRTkey - Trans-unit Keytext - Trans-unit source stringmetadata - Trans-unit note maphint - Customization Hint