public interface AttributeSet
DictionaryEntry
.
Each attribute set may have parent sets from which key/value pairs are inherited.Modifier and Type | Method and Description |
---|---|
boolean |
contains(Attribute<?> key,
AttributeValue value,
boolean resolveInherited)
Test if the attribute is set and has the specified value.
|
boolean |
containsKey(Attribute<?> key,
boolean resolveInherited)
Test if the attribute for a given key is defined.
|
<T extends AttributeValue> |
getAttribute(Attribute<T> key,
boolean resolveInherited)
Returns the attribute values for a given attribute.
|
Iterator<Attribute<?>> |
getAttributeKeys(boolean resolveInherited)
Returns an iteration of attribute keys defined in the attribute set.
|
AttributeSet |
getParent()
Get the parent attribute set of this set.
|
boolean |
isEmpty()
Test if there are any attributes defined in this set.
|
boolean |
isInherited(Attribute<?> key)
Test if a given attribute is inherited from a parent attribute set.
|
boolean containsKey(Attribute<?> key, boolean resolveInherited)
key
- Attribute key which is tested.resolveInherited
- true
if the key is searched in the parent sets too,
false
if inherited attributes should be ignored.boolean contains(Attribute<?> key, AttributeValue value, boolean resolveInherited)
<T extends AttributeValue> List<T> getAttribute(Attribute<T> key, boolean resolveInherited)
key
- Attribute key for which the attribute is requested.resolveInherited
- true
if the attribute is searched in the parent sets too,
false
if inherited attributes should be ignored.boolean isInherited(Attribute<?> key) throws AttributeNotSetException
true
if the attribute is inherited, false
if the attribute
is contained in this set.AttributeNotSetException
- if the attribute is not defined in this set or a parent set.Iterator<Attribute<?>> getAttributeKeys(boolean resolveInherited)
resolveInherited
- true
if inherited attribute keys are iterated too,
false
if inherited attributes should be ignored.Attributes
.AttributeSet getParent()
null
if this is a root set.boolean isEmpty()
Copyright © 2001-2013 the JGloss developers. All Rights Reserved.