OSDN Git Service

srcディレクトリとdocディレクトリを作成
[xdf/git-repos.git] / src / xdf-swing / src / main / java / jp / ac / aiit / xdf / component / swing / attribute / ObjectModelAttributeGetProcessor.java
1 package jp.ac.aiit.xdf.component.swing.attribute;
2
3 import jp.ac.aiit.xdf.core.model.ObjectModel;
4
5 /**
6  * @author Pin.Yuan
7  * 実コンポーネントに対する属性の処理方法の取得プロセサー
8  *
9  */
10 public class ObjectModelAttributeGetProcessor implements AttributeGetProcessor {
11         private ObjectModel model;
12         
13         /**
14          * @param model
15          */
16         public ObjectModelAttributeGetProcessor(ObjectModel model) {
17                 this.model = model;
18         }
19         
20         @Override
21         public Object invokeGet(Object target, String name) {
22                 return model.attrFromModel(name);
23         }
24
25 }