|
||||||||||
| 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 |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
AttributeMap(XMLObject newOwner)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
void |
deregisterID(javax.xml.namespace.QName attributeName)
Deregister an attribute as having a type of ID. |
void |
deregisterQNameAttribute(javax.xml.namespace.QName attributeName)
Deregister an attribute as having a type of QName. |
java.util.Set<java.util.Map.Entry<javax.xml.namespace.QName,java.lang.String>> |
entrySet()
Returns the set of entries. |
java.lang.String |
get(java.lang.Object key)
|
boolean |
isEmpty()
|
boolean |
isIDAttribute(javax.xml.namespace.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(javax.xml.namespace.QName attributeName)
Check whether a given attribute is known to have a QName type. |
java.util.Set<javax.xml.namespace.QName> |
keySet()
Returns the set of keys. |
javax.xml.namespace.QName |
put(javax.xml.namespace.QName attributeName,
javax.xml.namespace.QName value)
Set an attribute value as a QName. |
java.lang.String |
put(javax.xml.namespace.QName attributeName,
java.lang.String value)
|
void |
putAll(java.util.Map<? extends javax.xml.namespace.QName,? extends java.lang.String> t)
|
void |
registerID(javax.xml.namespace.QName attributeName)
Register an attribute as having a type of ID. |
void |
registerQNameAttribute(javax.xml.namespace.QName attributeName)
Register an attribute as having a type of QName. |
java.lang.String |
remove(java.lang.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()
|
java.util.Collection<java.lang.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 java.lang.NullPointerException
newOwner - the XMLObject that owns these attributes
java.lang.NullPointerException - thrown if the given XMLObject is null| Method Detail |
|---|
public java.lang.String put(javax.xml.namespace.QName attributeName,
java.lang.String value)
put in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>
public javax.xml.namespace.QName put(javax.xml.namespace.QName attributeName,
javax.xml.namespace.QName value)
attributeName - the attribute namevalue - the QName attribute value
public void clear()
clear in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public java.util.Set<javax.xml.namespace.QName> keySet()
keySet in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public int size()
size in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public boolean isEmpty()
isEmpty in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public java.lang.String get(java.lang.Object key)
get in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public java.lang.String remove(java.lang.Object key)
remove in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public void putAll(java.util.Map<? extends javax.xml.namespace.QName,? extends java.lang.String> t)
putAll in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public java.util.Collection<java.lang.String> values()
values in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public java.util.Set<java.util.Map.Entry<javax.xml.namespace.QName,java.lang.String>> entrySet()
entrySet in interface java.util.Map<javax.xml.namespace.QName,java.lang.String>public void registerID(javax.xml.namespace.QName attributeName)
attributeName - the QName of the ID attribute to be registeredpublic void deregisterID(javax.xml.namespace.QName attributeName)
attributeName - the QName of the ID attribute to be de-registeredpublic boolean isIDAttribute(javax.xml.namespace.QName attributeName)
attributeName - the QName of the attribute to be checked for ID type.
public void registerQNameAttribute(javax.xml.namespace.QName attributeName)
attributeName - the name of the QName-valued attribute to be registeredpublic void deregisterQNameAttribute(javax.xml.namespace.QName attributeName)
attributeName - the name of the QName-valued attribute to be registeredpublic boolean isQNameAttribute(javax.xml.namespace.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 | |||||||||