|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeSet
AttributeSet is an inquiry interface for a collection of Attributes. Uses naming conventions of Collection framework.
Collection
,
Attribute
Method Summary | |
---|---|
boolean |
contains(java.lang.Object oo)
Tests if the argument is in this set. |
boolean |
contains(java.lang.String name)
Tests if the Attribute identified by name
is in this set. |
Attribute |
get(java.lang.String name)
Retrieve the attribute associated with the specified name. |
AttributeIterator |
iterator()
Returns AttributeIterator for the elements. |
Attribute |
put(Attribute attr)
Ensures that this set contains the specified Attribute. |
boolean |
remove(java.lang.Object oo)
Delete the Attribute specified from this set. |
boolean |
remove(java.lang.String name)
Delete the Attribute specified by name from this set. |
int |
size()
Returns the number of elements in the set |
Attribute[] |
toArray()
Returns a new Array containing the elements of this set. |
Method Detail |
---|
int size()
AttributeIterator iterator()
AttributeIterator
Attribute[] toArray()
Attribute get(java.lang.String name)
name
- String which identifies the desired attribute
boolean contains(java.lang.String name)
name
is in this set.
name
- String which identifies the desired attribute
true
if and only if this set contains
the named Attribute.boolean contains(java.lang.Object oo)
oo
- some Object
true
if and only if this set contains
oo
Attribute put(Attribute attr)
This is an "optional operation" in the sense of the Collections framework. In the context of this package, this method will throw UnsupportedOperationException when the set is unmodifiable. This will be the case when this AttributeSet is associated with a Netcdf or a Variable. The AttributeSet will be modifiable when it is associated with a Schema or ProtoVariable.
attr
- the Attribute to be added to this set.
boolean remove(java.lang.String name)
This is an "optional operation" in the sense of the Collections framework. In the context of this package, this method will throw UnsupportedOperationException when the set is unmodifiable. This will be the case when this AttributeSet is associated with a Netcdf or a Variable. The AttributeSet will be modifiable when it is associated with a Schema or ProtoVariable.
name
- String identifying the Attribute to be removed.
boolean remove(java.lang.Object oo)
This is an "optional operation" in the sense of the Collections framework. In the context of this package, this method will throw UnsupportedOperationException when the Set is unmodifiable.s This will be the case when this AttributeSet is associated with a Netcdf or a Variable. The AttributeSet will be modifiable when it is associated with a Schema or ProtoVariable.
oo
- Attribute to be removed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |