Instance Property インスタンスプロパティ

stringValue

Returns the content of the receiver as a string value. レシーバの内容を文字列値として返します。

Declaration 宣言

@property(copy) NSString *stringValue;

Discussion 議論

If the receiver is a node object of element kind, the content is that of any text-node children. This method recursively visits elements nodes and concatenates their text nodes in document order with no intervening spaces. If the receiver’s content is set as an object value, this method returns the string value representing the object. If the object value is one of the standard, built-in ones (NSNumber, NSCalendarDate, and so on), the string value is in canonical format as defined by the W3C XML Schema Data Types specification. If the object value is not represented by one of these classes (or if the default value transformer for a class has been overridden), the string value is generated by the NSValueTransformer registered for that object type. レシーバが要素種類のノードオブジェクトであるならば、その内容はあらゆるテキストノード子のそれです。このメソッドは、再帰的に要素ノードを訪れます、そしてそれらテキストノードを連結します、書類順序において、間に入る空白なしで。レシーバのもつ内容がオブジェクト値として設定されるならば、このメソッドはそのオブジェクトを表している文字列値を返します。オブジェクト値が標準の、組込みのもの(NSNumberNSCalendarDate、など)の1つであるならば、文字列値は、W3C XML Schema Data Types仕様で定義される通りの正準形式になります。オブジェクト値がそれらクラスの1つによって表現されないならば(またはあるクラスに対する省略時の値変換器がオーバライドされているならば)、文字列値は、そのオブジェクト型に登録されたNSValueTransformerによって生成されます。

See Also 参照

Managing XML Node Objects XMLノードオブジェクトを管理する