gov.nist.core
クラス NameValueList

java.lang.Object
  上位を拡張 java.util.AbstractCollection
      上位を拡張 java.util.AbstractList
          上位を拡張 java.util.AbstractSequentialList
              上位を拡張 java.util.LinkedList
                  上位を拡張 gov.nist.core.GenericObjectList
                      上位を拡張 gov.nist.core.NameValueList
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.Queue

public class NameValueList
extends GenericObjectList

Implements a simple NameValue association with a quick lookup function (via a hash table) this class is not thread safe because it uses HashTables.

バージョン:
JAIN-SIP-1.1
作成者:
M. Ranganathan
This code is in the public domain.
関連項目:
直列化された形式

コンストラクタの概要
NameValueList()
          default constructor.
NameValueList(java.lang.String listName)
           
 
メソッドの概要
 void add(NameValue nv)
           
 void add(java.lang.String name, java.lang.Object obj)
          Add a name value record to this list.
 java.lang.Object clone()
          Implement the clone method.
 boolean delete(java.lang.String name)
          Remove the element corresponding to this name.
 boolean equals(java.lang.Object otherObject)
          Compare if two NameValue lists are equal.
 java.util.Iterator getIterator()
          Get the list iterator for this list.
 java.util.Iterator getNames()
          Get a list of parameter names.
 NameValue getNameValue(java.lang.String name)
          Get the NameValue record given a name.
 java.lang.String getParameter(java.lang.String name)
          Get the parameter as a String.
 java.lang.Object getValue(java.lang.String name)
          Do a lookup on a given name and return value associated with it.
 boolean hasNameValue(java.lang.String name)
          Returns a boolean telling if this NameValueList has a record with this name
 void set(NameValue nv)
          Set a namevalue object in this list.
 void set(java.lang.String name, java.lang.Object value)
          Set a namevalue object in this list.
 
クラス gov.nist.core.GenericObjectList から継承されたメソッド
add, addFirst, debugDump, debugDump, encode, getMyClass, isMySubclass, match, mergeObjects, replace, replace, replace, replace, setMyClass, setSeparator, toString
 
クラス java.util.LinkedList から継承されたメソッド
add, addAll, addAll, addLast, clear, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
クラス java.util.AbstractSequentialList から継承されたメソッド
iterator
 
クラス java.util.AbstractList から継承されたメソッド
hashCode, listIterator, subList
 
クラス java.util.AbstractCollection から継承されたメソッド
containsAll, isEmpty, removeAll, retainAll
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, wait, wait, wait
 
インタフェース java.util.List から継承されたメソッド
containsAll, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

コンストラクタの詳細

NameValueList

public NameValueList(java.lang.String listName)

NameValueList

public NameValueList()
default constructor.

メソッドの詳細

add

public void add(NameValue nv)

set

public void set(NameValue nv)
Set a namevalue object in this list.


set

public void set(java.lang.String name,
                java.lang.Object value)
Set a namevalue object in this list.


add

public void add(java.lang.String name,
                java.lang.Object obj)
Add a name value record to this list.


equals

public boolean equals(java.lang.Object otherObject)
Compare if two NameValue lists are equal.

定義:
インタフェース java.util.Collection 内の equals
定義:
インタフェース java.util.List 内の equals
オーバーライド:
クラス GenericObjectList 内の equals
パラメータ:
otherObject - is the object to compare to.
戻り値:
true if the two objects compare for equality.

getValue

public java.lang.Object getValue(java.lang.String name)
Do a lookup on a given name and return value associated with it.


getNameValue

public NameValue getNameValue(java.lang.String name)
Get the NameValue record given a name.

導入されたバージョン:
1.0

hasNameValue

public boolean hasNameValue(java.lang.String name)
Returns a boolean telling if this NameValueList has a record with this name

導入されたバージョン:
1.0

delete

public boolean delete(java.lang.String name)
Remove the element corresponding to this name.

導入されたバージョン:
1.0

getIterator

public java.util.Iterator getIterator()
Get the list iterator for this list.

オーバーライド:
クラス GenericObjectList 内の getIterator

getNames

public java.util.Iterator getNames()
Get a list of parameter names.

戻り値:
a list iterator that has the names of the parameters.

clone

public java.lang.Object clone()
クラス GenericObjectList の記述:
Implement the clone method.

オーバーライド:
クラス GenericObjectList 内の clone

getParameter

public java.lang.String getParameter(java.lang.String name)
Get the parameter as a String.

戻り値:
the parameter as a string.