Project

General

Profile

Actions

Developer Request #1055

closed

TreeNode.getAttributeValue() должен возвращать объект правильного типа

Added by Alexey Demakov about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Low
Category:
-
Target version:
Start date:
04/08/2011
Due date:
% Done:

100%

Estimated time:
Published in build:
0.11.83

Description

Сейчас Object TreeNode.getAttributeValue() всегда возвращает String независимо от типа атрибута. Хотелось бы получать объект реального типа,
например Boolean для AttributeType.BOOL. Может быть стоит добавить методы boolean getBooleanAttributeValue и т.п. чтобы упрятать в них приведение типов.

Actions #1

Updated by Alexey Khoroshilov about 13 years ago

  • Target version set to 0.11

Соответственно, getBooleanAttributeValue должен выкидывать Exception, если тип оказался не AttributeType.BOOL?

Actions #2

Updated by Alexey Khoroshilov about 13 years ago

  • Priority changed from Normal to Low
Actions #3

Updated by Yuriy Shekochihin almost 13 years ago

  • Status changed from New to Resolved
Actions #4

Updated by Alexey Demakov almost 13 years ago

  • Published in build set to 0.11.69
Actions #5

Updated by Alexey Demakov almost 13 years ago

  • % Done changed from 0 to 100

Applied in changeset r1972.

Actions #6

Updated by Alexey Demakov almost 13 years ago

  • Status changed from Resolved to Closed
  • Assignee set to Alexey Demakov
  • Published in build changed from 0.11.69 to 0.11.83
Actions

Also available in: Atom PDF