gov.nist.core
クラス NameValue

java.lang.Object
  上位を拡張 gov.nist.core.GenericObject
      上位を拡張 gov.nist.core.NameValue
すべての実装されたインタフェース:
java.io.Serializable

public class NameValue
extends GenericObject

Generic structure for storing name-value pairs.

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

コンストラクタの概要
NameValue()
           
NameValue(java.lang.String n, java.lang.Object v)
           
 
メソッドの概要
 java.lang.Object clone()
          Make a clone of this object.
 java.lang.String encode()
          Get the encoded representation of this namevalue object.
 boolean equals(java.lang.Object other)
          Equality comparison predicate.
 java.lang.String getName()
           
 java.lang.Object getValue()
           
 boolean isValueQuoted()
          Return true if the value is quoted in doublequotes.
 void setName(java.lang.String n)
          Set the name member
 void setQuotedValue()
          A flag that indicates that doublequotes should be put around the value when encoded (for example name=value when value is doublequoted).
 void setSeparator(java.lang.String sep)
          Set the separator for the encoding method below.
 void setValue(java.lang.Object v)
          Set the value member
 
クラス gov.nist.core.GenericObject から継承されたメソッド
debugDump, debugDump, getClassFromName, getMatcher, isMySubclass, match, merge, replace, replace, replace, replace, setMatcher
 
クラス java.lang.Object から継承されたメソッド
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

NameValue

public NameValue()

NameValue

public NameValue(java.lang.String n,
                 java.lang.Object v)
メソッドの詳細

setSeparator

public void setSeparator(java.lang.String sep)
Set the separator for the encoding method below.


setQuotedValue

public void setQuotedValue()
A flag that indicates that doublequotes should be put around the value when encoded (for example name=value when value is doublequoted).


isValueQuoted

public boolean isValueQuoted()
Return true if the value is quoted in doublequotes.


getName

public java.lang.String getName()

getValue

public java.lang.Object getValue()

setName

public void setName(java.lang.String n)
Set the name member


setValue

public void setValue(java.lang.Object v)
Set the value member


encode

public java.lang.String encode()
Get the encoded representation of this namevalue object. Added doublequote for encoding doublequoted values (bug reported by Kirby Kiem).

定義:
クラス GenericObject 内の encode
戻り値:
an encoded name value (eg. name=value) string.
導入されたバージョン:
1.0

clone

public java.lang.Object clone()
クラス GenericObject の記述:
Make a clone of this object.

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

equals

public boolean equals(java.lang.Object other)
Equality comparison predicate.

オーバーライド:
クラス GenericObject 内の equals
パラメータ:
other - is the other object to test against.
戻り値:
true if the objects are euqal and false otherwise