FileDocCategorySizeDatePackage
ResourceValue.javaAPI DocAndroid 1.5 API1871Wed May 06 22:42:02 BST 2009com.android.layoutlib.bridge

ResourceValue

public class ResourceValue extends Object implements com.android.layoutlib.api.IResourceValue
Basic implementation of IResourceValue.

Fields Summary
private final String
mType
private final String
mName
private String
mValue
Constructors Summary
ResourceValue(String name)

    
      
        mType = null;
        mName = name;
    
public ResourceValue(String type, String name, String value)

        mType = type;
        mName = name;
        mValue = value;
    
Methods Summary
public final java.lang.StringgetName()

        return mName;
    
public java.lang.StringgetType()

        return mType;
    
public final java.lang.StringgetValue()

        return mValue;
    
public booleanisFramework()

        // ResourceValue object created directly in the framework are used to describe
        // non resolvable coming from the XML. Since they will never be cached (as they can't
        // be a value pointing to a bitmap, or they'd be resolvable.), the return value deoes
        // not matter.
        return false;
    
public voidreplaceWith(com.android.layoutlib.bridge.ResourceValue value)

        mValue = value.mValue;
    
public final voidsetValue(java.lang.String value)

        mValue = value;