|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.attr.StandardAttributeSet
StandardAttributeSet is the standard implementation of
AttributeSet, which represents a collection zero or more
unique Attribute instances.
| Nested Class Summary | |
class |
StandardAttributeSet.ImmutableAttributeIterator
ImmutableAttributeIterator iterates over the category Maps
and the Attribute Sets within them to provide access all all Attribute
instances within an AttributeSet. |
| Constructor Summary | |
StandardAttributeSet()
Create a new, empty StandardAttributeSet. |
|
StandardAttributeSet(List attrList)
Create a new StandardAttributeSet with Attributes from a List. |
|
| Method Summary | |
void |
add(Attribute attr)
Add an Attribute. |
void |
clear()
Clear all Attributes. |
boolean |
containsAttributeCategory(URI attrCategory)
Returns true if the specified attribute category is represented in in this AttributeSet. |
List |
get(URI attrCategory,
URI type,
URI id)
Get all Attributes by category, type, and identifier. |
Iterator |
getAttributeCategories()
Returns the attribute categories represented in this collection. |
int |
getAttributeCategoryCount()
Returns the number of attribute categories. |
int |
getAttributeCountByCategory(URI attrCategory)
Returns the number of attributes in the specified category. |
Iterator |
getAttributes()
Get all Attributes. |
Iterator |
getAttributesByCategory(URI attrCategory)
Get all Attributes by category. |
Attribute |
getOneAndOnly(URI attrCategory,
URI type,
URI id)
Get a one and only Attribute. |
void |
remove(Attribute attr)
Remove an Attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StandardAttributeSet()
public StandardAttributeSet(List attrList)
attrList - the List of Attributes.
IllegalArgumentException - if an Object in the List is not
an Attribute.| Method Detail |
public void add(Attribute attr)
add in interface AttributeSetattr - the Attribute to be added to this collection.
public List get(URI attrCategory,
URI type,
URI id)
get in interface AttributeSetattrCategory - the attribute category.type - the attribute data type.id - the attribute identifier.
public Attribute getOneAndOnly(URI attrCategory,
URI type,
URI id)
NOTE: - the caller must be certain that at most one Attribute with the specified catetory, type, and id is in the set.
getOneAndOnly in interface AttributeSetattrCategory - the attribute category.type - the attribute data type.id - the attribute identifier.
public Iterator getAttributes()
getAttributes in interface AttributeSetpublic Iterator getAttributesByCategory(URI attrCategory)
getAttributesByCategory in interface AttributeSetpublic int getAttributeCountByCategory(URI attrCategory)
getAttributeCountByCategory in interface AttributeSetpublic Iterator getAttributeCategories()
getAttributeCategories in interface AttributeSetpublic int getAttributeCategoryCount()
getAttributeCategoryCount in interface AttributeSetpublic boolean containsAttributeCategory(URI attrCategory)
containsAttributeCategory in interface AttributeSetpublic void remove(Attribute attr)
remove in interface AttributeSetattr - the Attribute to be removed from this collection.public void clear()
clear in interface AttributeSet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||