public interface NamespaceBeanLikeMap
Modifier and Type | Method and Description |
---|---|
void |
backup()
Create a backup of all namespaces at this point.
|
Map<String,Object> |
getBeanLikeMap(Map<String,String> namespaceToPrefixMap)
Gets the bean-like map given the set
of prefixes to use for the various
namespaces.
|
Map<String,Map<String,Object>> |
getNamespaceBeanLikeMap()
Gets a raw copy of the bean-like map.
|
Map<QName,Object> |
getQNameMap()
Gets a map from QName to value.
|
Object |
getValue(String namespace,
String key)
Gets the value for key based on the namespace.
|
boolean |
isSet(String nanmespace,
String key)
Determines if the value for key based on namespace
has been explicitly set.
|
void |
restoreBackup(boolean drop)
Either drop the backup data or restore the
current data to the backup.
|
void |
setValue(String namespace,
String key,
Object value)
Sets the value for key based on the namespace.
|
void |
shallowCopy(NamespaceBeanLikeMap copyFrom,
ModelImpl model,
boolean copyReferences)
Does a shallow copy from another namespace bean-like map to this one
|
Object getValue(String namespace, String key)
namespace
- if null or the empty string the
default namespace will be usedkey
- the non-null keyisSet(String, String)
to determine if a value has been setvoid setValue(String namespace, String key, Object value)
namespace
- if null or the empty string the
default namespace will be usedkey
- the non-null keyvalue
- The value to set this key to (may be null)boolean isSet(String nanmespace, String key)
nanmespace
- if null or the empty string the
default namespace will be usedkey
- the non-null keyvoid backup()
void restoreBackup(boolean drop)
drop
- if true the backup should be
dropped, if false the current data should
be made the same as the backupMap<String,Object> getBeanLikeMap(Map<String,String> namespaceToPrefixMap)
namespaceToPrefixMap
- A map from namespace
to the prefix that should be put on the keys for
the namespaceMap<QName,Object> getQNameMap()
void shallowCopy(NamespaceBeanLikeMap copyFrom, ModelImpl model, boolean copyReferences)
copyFrom
- The other namesapce bean-like map to copymodel
- The model to use to determine what fields to copycopyReferences
- true if references should also be copiedMap<String,Map<String,Object>> getNamespaceBeanLikeMap()
Copyright © 2009–2023 Oracle Corporation. All rights reserved.