7.8: Custom
Properties
カスタム・プロパティ
A custom property is a property that you create for an
object, in addition to its built-in properties. You can
define custom properties for any object, and use them to
store any kind of data.
カスタム・プロパティは、組み込みプロパティとは別に独自にオブジェクトに作成したプロパティです。カスタム・プロパティはどのオブジェクトにも定義でき、どんなデータでも保持させることができます。
This topic discusses how to create
and
use
custom properties,
how to organize
custom properties
into sets
(or
arrays).
The following section covers how to create virtual
properties and use getProp
and
setProp
handlers to handle
custom property requests.
ここでは、カスタム・プロパティの作り方と使い方、カスタム・プロパティをどのようにセット(或いはアレイ)にまとめるか、について記述していきます。その後のセッションでは、ヴァーチャル・プロパティの作製方法、カスタム・プロパティをgetPropとsetPropハンドラを使ってどのように扱うのか、を述べていきます。