public class CompBundleCachedXliffResourceBundleWrapper extends XliffResourceBundleWrapper
XliffResourceBundleWrapper.ResourceBundleAuditEvents
ResourceBundleWrapperRT.DefaultSearchContext, ResourceBundleWrapperRT.SearchType
ResourceBundleWrapper.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 |
addEntry(java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata,
oracle.mds.cust.CustClassList custClassList)
Add API to add a resourcebundle string to a target tip layer.
|
boolean |
deleteEntry(java.lang.String key)
Deletes the resource bundle entry identified by
key . |
boolean |
deleteEntry(java.lang.String key,
oracle.mds.cust.CustClassList custClassList)
Delete API to delete a resourcebundle string from target tip layer.
|
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.
|
boolean |
updateEntry(java.lang.String key,
java.lang.String text,
java.util.Map<java.lang.String,java.lang.String> metadata,
oracle.mds.cust.CustClassList custClassList)
Update API to edit a resourcebundle string to a target tip layer.
|
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, getMetadataObject, getMOKey, getMutableMO, getString, keySet, parse, saxParse, seParse, seParse, setParent, setWritable, updateDocument, updateEntry, updateEntryNoDialog, updateEntryNoDialog
addEntry, 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, isCacheable, isEmptyReadOnlyWrapper, isIsSEWrapper, refreshBundleIfNeeded, removeResourceBundleListener, setBundleId, setEmptyReadOnlyWrapper, setIsSEWrapper, setKeyGenerator, setParentList, setURL, toString
public CompBundleCachedXliffResourceBundleWrapper()
public boolean addEntry(java.lang.String key, java.lang.String text, java.util.Map<java.lang.String,java.lang.String> metadata)
ResourceBundleWrapper
addEntry
in interface ResourceBundleWrapper
addEntry
in class XliffResourceBundleWrapper
key
- 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 null
true
on successpublic boolean updateEntry(java.lang.String key, java.lang.String text, java.util.Map<java.lang.String,java.lang.String> metadata)
ResourceBundleWrapper
updateEntry
in interface ResourceBundleWrapper
updateEntry
in class XliffResourceBundleWrapper
key
- 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)
ResourceBundleWrapper
key
. If
key
does not exist, then a value of false
is returned.deleteEntry
in interface ResourceBundleWrapper
deleteEntry
in class XliffResourceBundleWrapper
key
- The key to deletetrue
If the key is found and deleted success.public boolean updateEntry(java.lang.String key, java.lang.String text, java.util.Map<java.lang.String,java.lang.String> metadata, oracle.mds.cust.CustClassList custClassList)
ResourceBundleWrapperRT
updateEntry
in class ResourceBundleWrapperRT
key
- The key to updatetext
- The text to updatemetadata
- The Note to updatecustClassList
- The tip layer where the customization will be written topublic boolean addEntry(java.lang.String key, java.lang.String text, java.util.Map<java.lang.String,java.lang.String> metadata, oracle.mds.cust.CustClassList custClassList)
ResourceBundleWrapperRT
addEntry
in class ResourceBundleWrapperRT
key
- The key to addtext
- The text to addmetadata
- The Note to addcustClassList
- The tip layer where the customization will be written topublic boolean deleteEntry(java.lang.String key, oracle.mds.cust.CustClassList custClassList)
ResourceBundleWrapperRT
deleteEntry
in class ResourceBundleWrapperRT
key
- The key to deletecustClassList
- The tip layer where the customization will be written topublic java.util.Map<java.lang.String,ResourceBundleWrapper.KeyInfo> getBaseKeyMap()
getBaseKeyMap
in class XliffResourceBundleWrapper
protected java.util.Map<java.lang.String,java.lang.String> getBaseKeyValueMap()
getBaseKeyValueMap
in class XliffResourceBundleWrapper
protected 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)
XliffResourceBundleWrapper
setDocument
in class XliffResourceBundleWrapper
protected org.w3c.dom.Document getDocument()
getDocument
in class XliffResourceBundleWrapper
public void parse(org.w3c.dom.Document document)
parse
in class XliffResourceBundleWrapper
public void parse(java.net.URL url)
parse
in class XliffResourceBundleWrapper
public 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 ResourceBundleWrapperRT
key
- 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 XliffResourceBundleWrapper
key
- 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 ResourceBundleWrapperRT
key
- Trans-unit Keytext
- Trans-unit source stringnote
- Trans-unit note maphint
- Customization Hint