• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2008 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.layoutlib.api;
18 
19 import com.android.ide.common.rendering.api.ResourceValue;
20 
21 /**
22  * Represents an android resource with a name and a string value.
23  * @deprecated use {@link ResourceValue}.
24  */
25 @Deprecated
26 public interface IResourceValue {
27 
28     /**
29      * Returns the type of the resource. For instance "drawable", "color", etc...
30      */
getType()31     String getType();
32 
33     /**
34      * Returns the name of the resource, as defined in the XML.
35      */
getName()36     String getName();
37 
38     /**
39      * Returns the value of the resource, as defined in the XML. This can be <code>null</code>
40      */
getValue()41     String getValue();
42 
43     /**
44      * Returns whether the resource is a framework resource (<code>true</code>) or a project
45      * resource (<code>false</false>).
46      */
isFramework()47     boolean isFramework();
48 }
49