Apache Jakarta and Beyond: A Java Programmeramp;#039;s Introduction [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Apache Jakarta and Beyond: A Java Programmeramp;#039;s Introduction [Electronic resources] - نسخه متنی

Larne Pekowsky

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







8.4. Mapped Properties


In the JavaBeans specification properties can only be simple or indexed by a number. BeanUtils adds a new ability for properties to be indexed by strings, as in a Map. Such properties are called

mapped properties. These closely parallel indexed properties, except that the get and set methods take strings instead of integers. The following line could be used to retrieve the annotation, indicating whether a track is live:


PropertyUtils.getMappedProperty(track, "annotations " live");

Mapped properties can be accessed with a shorthand syntax similar to that used for indexed properties. For mapped properties the key appears within parentheses.


PropertyUtils.getMappedProperty(track, "annotations(live)");


/ 207