author | Eugene Ostroukhov <eugeneo@symbian.org> |
Thu, 18 Mar 2010 11:56:59 -0700 | |
changeset 276 | f2f4a1259de8 |
parent 2 | e4420d2515f1 |
permissions | -rw-r--r-- |
2 | 1 |
// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 |
// Use of this source code is governed by a BSD-style license that can be |
|
3 |
// found in the LICENSE file. |
|
4 |
||
5 |
package org.chromium.sdk.internal; |
|
6 |
||
7 |
||
8 |
/** |
|
9 |
* A named property reference. |
|
10 |
*/ |
|
11 |
public class PropertyReference { |
|
276
f2f4a1259de8
Bug 2065 - Pull updated Chrome Developer Tools into the workspace
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
12 |
private final Object name; |
2 | 13 |
|
14 |
private final DataWithRef smthWithRef; |
|
15 |
||
16 |
/** |
|
17 |
* @param propertyName the name of the property |
|
18 |
* @param valueObject a JSON descriptor of the property |
|
19 |
*/ |
|
276
f2f4a1259de8
Bug 2065 - Pull updated Chrome Developer Tools into the workspace
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
20 |
public PropertyReference(Object propertyName, DataWithRef smthWithRef) { |
2 | 21 |
this.name = propertyName; |
22 |
this.smthWithRef = smthWithRef; |
|
23 |
} |
|
24 |
||
25 |
public long getRef() { |
|
26 |
return smthWithRef.ref(); |
|
27 |
} |
|
28 |
||
276
f2f4a1259de8
Bug 2065 - Pull updated Chrome Developer Tools into the workspace
Eugene Ostroukhov <eugeneo@symbian.org>
parents:
2
diff
changeset
|
29 |
public Object getName() { |
2 | 30 |
return name; |
31 |
} |
|
32 |
||
33 |
public DataWithRef getValueObject() { |
|
34 |
return smthWithRef; |
|
35 |
} |
|
36 |
} |