Top Fields Constructors Methods
org.eclipse.persistence.internal.oxm

public Class NamespaceResolverStorage

extends LinkedHashMap<String, String>
Class Inheritance
Imports
java.util.Collection, .Collections, .LinkedHashMap, .Map, .Set, .Vector, java.util.function.BiFunction

Field Summary

Modifier and TypeField and Description
private transient boolean
private transient Vector<Namespace>
private static final long

Constructor Summary

AccessConstructor and Description
public
public
NamespaceResolverStorage(int initialCapacity)

Method Summary

Modifier and TypeMethod and Description
private Vector<Namespace>
public Set<Map.Entry<String, String>>
entrySet()

Overrides java.util.LinkedHashMap.entrySet.

Implements java.util.Map.entrySet.

Unmodifiable set of entries
public Vector<Namespace>
private boolean
public Set<String>
keySet()

Overrides java.util.LinkedHashMap.keySet.

Implements java.util.Map.keySet.

Unmodifiable set of keys
public String
put(String
key with which the specified value is to be associated
key
,
String
value to be associated with the specified key
value
)

Overrides java.util.HashMap.put.

Implements java.util.Map.put.

Associates the specified value with the specified key in this map (optional operation).
public void
putAll(Map<? extends String, ? extends String>
mappings to be stored in this map
m
)

Overrides java.util.HashMap.putAll.

Implements java.util.Map.putAll.

Copies all of the mappings from the specified map to this map (optional operation).
public String
putIfAbsent(String
key with which the specified value is to be associated
key
,
String
value to be associated with the specified key
value
)

Overrides java.util.HashMap.putIfAbsent.

Overrides default java.util.Map.putIfAbsent.

If the specified key is not already associated with a value (or is mapped to null) associates it with the given value and returns null, else returns the current value.
public String
remove(Object
key whose mapping is to be removed from the map
key
)

Overrides java.util.HashMap.remove.

Implements java.util.Map.remove.

Removes the mapping for a key from this map if it is present (optional operation).
public boolean
remove(Object
key with which the specified value is associated
key
,
Object
value expected to be associated with the specified key
value
)

Overrides java.util.HashMap.remove.

Overrides default java.util.Map.remove.

Removes the entry for the specified key only if it is currently mapped to the specified value.
public boolean
replace(String
key with which the specified value is associated
key
,
String
value expected to be associated with the specified key
oldValue
,
String
value to be associated with the specified key
newValue
)

Overrides java.util.HashMap.replace.

Overrides default java.util.Map.replace.

Replaces the entry for the specified key only if currently mapped to the specified value.
public String
replace(String
key with which the specified value is associated
key
,
String
value to be associated with the specified key
value
)

Overrides java.util.HashMap.replace.

Overrides default java.util.Map.replace.

Replaces the entry for the specified key only if it is currently mapped to some value.
public void
replaceAll(BiFunction<? super String, ? super String, ? extends String>
the function to apply to each entry
function
)

Overrides java.util.LinkedHashMap.replaceAll.

Overrides default java.util.Map.replaceAll.

Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception.
private void
private void
setModified(boolean modified)

public void
public Collection<String>
values()

Overrides java.util.LinkedHashMap.values.

Implements java.util.Map.values.

Unmodifiable collection of values
Inherited from java.util.LinkedHashMap:
clearcontainsValueforEachgetgetOrDefaultnewLinkedHashMapputFirstputLastremoveEldestEntryreversedsequencedEntrySetsequencedKeySetsequencedValues

Field Detail

modifiedback to summary
private transient boolean modified
namespacesback to summary
private transient Vector<Namespace> namespaces
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.LinkedHashMap.serialVersionUID.

Constructor Detail

NamespaceResolverStorageback to summary
public NamespaceResolverStorage()
NamespaceResolverStorageback to summary
public NamespaceResolverStorage(int initialCapacity)

Method Detail

buildNamespacesUnmodifiableback to summary
private Vector<Namespace> buildNamespacesUnmodifiable()
entrySetback to summary
public Set<Map.Entry<String, String>> entrySet()

Overrides java.util.LinkedHashMap.entrySet.

Implements java.util.Map.entrySet.

Unmodifiable set of entries

Returns:Set<Map.Entry<String, String>>

Doc from java.util.LinkedHashMap.entrySet.

a set view of the mappings contained in this map

Annotations
@Override
getNamespacesback to summary
public Vector<Namespace> getNamespaces()
isModifiedback to summary
private boolean isModified()
keySetback to summary
public Set<String> keySet()

Overrides java.util.LinkedHashMap.keySet.

Implements java.util.Map.keySet.

Unmodifiable set of keys

Returns:Set<String>

Doc from java.util.LinkedHashMap.keySet.

a set view of the keys contained in this map

Annotations
@Override
putback to summary
public String put(String key, String value)

Overrides java.util.HashMap.put.

Implements java.util.Map.put.

Doc from java.util.Map.put.

Associates the specified value with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value. (A map m is said to contain a mapping for a key k if and only if m.containsKey(k) would return true.)

Parameters
key:String

key with which the specified value is to be associated

value:String

value to be associated with the specified key

Returns:String

the previous value associated with key, or null if there was no mapping for key. (A null return can also indicate that the map previously associated null with key, if the implementation supports null values.)

Annotations
@Override
putAllback to summary
public void putAll(Map<? extends String, ? extends String> m)

Overrides java.util.HashMap.putAll.

Implements java.util.Map.putAll.

Doc from java.util.Map.putAll.

Copies all of the mappings from the specified map to this map (optional operation). The effect of this call is equivalent to that of calling put(k, v) on this map once for each mapping from key k to value v in the specified map. The behavior of this operation is undefined if the specified map is modified while the operation is in progress. If the specified map has a defined encounter order, processing of its mappings generally occurs in that order.

Parameters
m:Map<? extends String, ? extends String>

mappings to be stored in this map

Annotations
@Override
putIfAbsentback to summary
public String putIfAbsent(String key, String value)

Overrides java.util.HashMap.putIfAbsent.

Overrides default java.util.Map.putIfAbsent.

Doc from java.util.Map.putIfAbsent.

If the specified key is not already associated with a value (or is mapped to null) associates it with the given value and returns null, else returns the current value.

Parameters
key:String

key with which the specified value is to be associated

value:String

value to be associated with the specified key

Returns:String

the previous value associated with the specified key, or null if there was no mapping for the key. (A null return can also indicate that the map previously associated null with the key, if the implementation supports null values.)

Annotations
@Override
removeback to summary
public String remove(Object key)

Overrides java.util.HashMap.remove.

Implements java.util.Map.remove.

Doc from java.util.Map.remove.

Removes the mapping for a key from this map if it is present (optional operation). More formally, if this map contains a mapping from key k to value v such that Objects.equals(key, k), that mapping is removed. (The map can contain at most one such mapping.)

Returns the value to which this map previously associated the key, or null if the map contained no mapping for the key.

If this map permits null values, then a return value of null does not necessarily indicate that the map contained no mapping for the key; it's also possible that the map explicitly mapped the key to null.

The map will not contain a mapping for the specified key once the call returns.

Parameters
key:Object

key whose mapping is to be removed from the map

Returns:String

the previous value associated with key, or null if there was no mapping for key.

Annotations
@Override
removeback to summary
public boolean remove(Object key, Object value)

Overrides java.util.HashMap.remove.

Overrides default java.util.Map.remove.

Doc from java.util.Map.remove.

Removes the entry for the specified key only if it is currently mapped to the specified value.

Parameters
key:Object

key with which the specified value is associated

value:Object

value expected to be associated with the specified key

Returns:boolean

true if the value was removed

Annotations
@Override
replaceback to summary
public boolean replace(String key, String oldValue, String newValue)

Overrides java.util.HashMap.replace.

Overrides default java.util.Map.replace.

Doc from java.util.Map.replace.

Replaces the entry for the specified key only if currently mapped to the specified value.

Parameters
key:String

key with which the specified value is associated

oldValue:String

value expected to be associated with the specified key

newValue:String

value to be associated with the specified key

Returns:boolean

true if the value was replaced

Annotations
@Override
replaceback to summary
public String replace(String key, String value)

Overrides java.util.HashMap.replace.

Overrides default java.util.Map.replace.

Doc from java.util.Map.replace.

Replaces the entry for the specified key only if it is currently mapped to some value.

Parameters
key:String

key with which the specified value is associated

value:String

value to be associated with the specified key

Returns:String

the previous value associated with the specified key, or null if there was no mapping for the key. (A null return can also indicate that the map previously associated null with the key, if the implementation supports null values.)

Annotations
@Override
replaceAllback to summary
public void replaceAll(BiFunction<? super String, ? super String, ? extends String> function)

Overrides java.util.LinkedHashMap.replaceAll.

Overrides default java.util.Map.replaceAll.

Doc from java.util.Map.replaceAll.

Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception. Exceptions thrown by the function are relayed to the caller.

Parameters
function:BiFunction<? super String, ? super String, ? extends String>

the function to apply to each entry

Annotations
@Override
setModifiedback to summary
private void setModified()
setModifiedback to summary
private void setModified(boolean modified)
setNamespacesback to summary
public void setNamespaces(Vector<Namespace> namespaces)
valuesback to summary
public Collection<String> values()

Overrides java.util.LinkedHashMap.values.

Implements java.util.Map.values.

Unmodifiable collection of values

Returns:Collection<String>

Doc from java.util.LinkedHashMap.values.

a view of the values contained in this map

Annotations
@Override