|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensaml.xml.util.AttributeMap
@NotThreadSafe public class AttributeMap
A map of attribute names and attribute values that invalidates the DOM of the attribute owning XMLObject when the attributes change. Note:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
AttributeMap(XMLObject newOwner)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
|
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. |
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. |
String |
remove(Object key)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public AttributeMap(XMLObject newOwner)
throws NullPointerException
newOwner - the XMLObject that owns these attributes
NullPointerException - thrown if the given XMLObject is null| Method Detail |
|---|
public String put(QName attributeName,
String value)
put in interface Map<QName,String>
public QName put(QName attributeName,
QName value)
attributeName - the attribute namevalue - the QName attribute value
public void clear()
clear in interface Map<QName,String>public Set<QName> keySet()
keySet in interface Map<QName,String>public int size()
size in interface Map<QName,String>public boolean isEmpty()
isEmpty in interface Map<QName,String>public boolean containsKey(Object key)
containsKey in interface Map<QName,String>public boolean containsValue(Object value)
containsValue in interface Map<QName,String>public String get(Object key)
get in interface Map<QName,String>public String remove(Object key)
remove in interface Map<QName,String>public void putAll(Map<? extends QName,? extends String> t)
putAll in interface Map<QName,String>public Collection<String> values()
values in interface Map<QName,String>public Set<Map.Entry<QName,String>> entrySet()
entrySet in interface Map<QName,String>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 not
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||