Modifier and Type | Field and Description |
---|---|
private XMLObject |
attributeOwner
XMLObject owning the attributes.
|
private Map<QName,String> |
attributes
Map of attributes.
|
private Set<QName> |
idAttribNames
Set of attribute QNames which have been locally registered as having an ID type within this
AttributeMap instance.
|
private boolean |
inferQNameValues
Flag indicating whether an attempt should be made to infer QName values,
if attribute is not registered as a QName type.
|
private org.slf4j.Logger |
log
Logger.
|
private Set<QName> |
qnameAttribNames
Set of attribute QNames which have been locally registered as having an QName value type within this
AttributeMap instance.
|
Constructor and Description |
---|
AttributeMap(XMLObject newOwner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
checkAndDeregisterQNameValue(QName attributeName,
String attributeValue)
Check whether the attribute value is a QName type, and if it is,
deregister it with the owner's namespace manger.
|
private void |
checkAndRegisterQNameValue(QName attributeName,
String attributeValue)
Check whether the attribute value is a QName type, and if it is,
register it with the owner's namespace manger.
|
private QName |
checkQName(QName attributeName,
String attributeValue)
Check where the attribute value is a QName type, and if so, return the QName.
|
void |
clear() |
private String |
constructAttributeValue(QName attributeValue)
Construct the string representation of a QName attribute value.
|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
void |
deregisterID(QName attributeName)
Deregister an attribute as having a type of ID.
|
void |
deregisterQNameAttribute(QName attributeName)
Deregister an attribute as having a type of QName.
|
private void |
deregisterQNameValue(QName attributeName)
Deregister a QName attribute value with the owner's namespace manger.
|
Set<Map.Entry<QName,String>> |
entrySet()
Returns the set of entries.
|
String |
get(Object key) |
boolean |
isEmpty() |
boolean |
isIDAttribute(QName attributeName)
Check whether a given attribute is locally registered as having an ID type within
this AttributeMap instance.
|
boolean |
isInferQNameValues()
Get the flag indicating whether an attempt should be made to infer QName values,
if attribute is not registered via a configuration as a QName type.
|
boolean |
isQNameAttribute(QName attributeName)
Check whether a given attribute is known to have a QName type.
|
Set<QName> |
keySet()
Returns the set of keys.
|
QName |
put(QName attributeName,
QName value)
Set an attribute value as a QName.
|
String |
put(QName attributeName,
String value) |
void |
putAll(Map<? extends QName,? extends String> t) |
void |
registerID(QName attributeName)
Register an attribute as having a type of ID.
|
void |
registerQNameAttribute(QName attributeName)
Register an attribute as having a type of QName.
|
private void |
registerQNameValue(QName attributeName,
QName attributeValue)
Register a QName attribute value with the owner's namespace manger.
|
private void |
releaseDOM()
Releases the DOM caching associated XMLObject and its ancestors.
|
String |
remove(Object key) |
private QName |
resolveQName(String attributeValue,
boolean isDefaultNSOK)
Attempt to resolve the specified attribute value into a QName.
|
void |
setInferQNameValues(boolean flag)
Set the flag indicating whether an attempt should be made to infer QName values,
if attribute is not registered via a configuration as a QName type.
|
int |
size() |
Collection<String> |
values()
Returns the values in this map.
|
private final org.slf4j.Logger log
private final XMLObject attributeOwner
private Set<QName> idAttribNames
private Set<QName> qnameAttribNames
private boolean inferQNameValues
public QName put(QName attributeName, QName value)
attributeName
- the attribute namevalue
- the QName attribute valuepublic boolean containsKey(Object key)
containsKey
in interface Map<QName,String>
public boolean containsValue(Object value)
containsValue
in interface Map<QName,String>
public Collection<String> values()
public void registerID(QName attributeName)
attributeName
- the QName of the ID attribute to be registeredpublic void deregisterID(QName attributeName)
attributeName
- the QName of the ID attribute to be de-registeredpublic boolean isIDAttribute(QName attributeName)
attributeName
- the QName of the attribute to be checked for ID type.public void registerQNameAttribute(QName attributeName)
attributeName
- the name of the QName-valued attribute to be registeredpublic void deregisterQNameAttribute(QName attributeName)
attributeName
- the name of the QName-valued attribute to be registeredpublic boolean isQNameAttribute(QName attributeName)
attributeName
- the QName of the attribute to be checked for QName type.public boolean isInferQNameValues()
public void setInferQNameValues(boolean flag)
flag
- true if QName types should be inferred, false if notprivate void releaseDOM()
private void checkAndRegisterQNameValue(QName attributeName, String attributeValue)
attributeName
- the attribute nameattributeValue
- the attribute valueprivate void registerQNameValue(QName attributeName, QName attributeValue)
attributeName
- the attribute nameattributeValue
- the attribute valueprivate void checkAndDeregisterQNameValue(QName attributeName, String attributeValue)
attributeName
- the attribute nameattributeValue
- the attribute valueprivate void deregisterQNameValue(QName attributeName)
attributeName
- the attribute name whose QName attribute value should be deregisteredprivate QName checkQName(QName attributeName, String attributeValue)
attributeName
- the attribute nameattributeValue
- the attribute valueprivate QName resolveQName(String attributeValue, boolean isDefaultNSOK)
attributeValue
- the value to evaluateisDefaultNSOK
- flag indicating whether resolution should be attempted if the prefix is null,
that is, the value is considered to be be potentially in the default XML namespaceCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.