Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://angel.cs.msu.su/projects/system/toolsdoc/netcdf_java/ucar/netcdf/AttributeSet.html
Дата изменения: Tue Dec 28 20:59:06 2004 Дата индексирования: Sun Apr 10 00:15:08 2016 Кодировка: |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public int size()
public AttributeIterator iterator()
AttributeIterator
public Attribute[] toArray()
public Attribute get(java.lang.String name)
name
- String which identifies the desired attributepublic boolean contains(java.lang.String name)
name
is in this set.name
- String which identifies the desired attributetrue
if and only if this set contains
the named Attribute.public boolean contains(java.lang.Object oo)
oo
- some Objecttrue
if and only if this set contains
oo
public 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.public 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.public 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |