com.xtremelabs.robolectric.util
Class TestAttributeSet

java.lang.Object
  extended by com.xtremelabs.robolectric.util.TestAttributeSet
All Implemented Interfaces:
android.util.AttributeSet

public class TestAttributeSet
extends java.lang.Object
implements android.util.AttributeSet


Constructor Summary
TestAttributeSet(java.util.Map<java.lang.String,java.lang.String> attributes, com.xtremelabs.robolectric.res.ResourceExtractor resourceExtractor, com.xtremelabs.robolectric.res.AttrResourceLoader attrResourceLoader, java.lang.Class<? extends android.view.View> viewClass)
           
 
Method Summary
 boolean getAttributeBooleanValue(int index, boolean defaultValue)
           
 boolean getAttributeBooleanValue(java.lang.String namespace, java.lang.String attribute, boolean defaultValue)
           
 int getAttributeCount()
           
 float getAttributeFloatValue(int index, float defaultValue)
           
 float getAttributeFloatValue(java.lang.String namespace, java.lang.String attribute, float defaultValue)
           
 int getAttributeIntValue(int index, int defaultValue)
           
 int getAttributeIntValue(java.lang.String namespace, java.lang.String attribute, int defaultValue)
           
 int getAttributeListValue(int index, java.lang.String[] options, int defaultValue)
           
 int getAttributeListValue(java.lang.String namespace, java.lang.String attribute, java.lang.String[] options, int defaultValue)
           
 java.lang.String getAttributeName(int index)
           
 int getAttributeNameResource(int index)
           
 int getAttributeResourceValue(int index, int defaultValue)
           
 int getAttributeResourceValue(java.lang.String namespace, java.lang.String attribute, int defaultValue)
           
 int getAttributeUnsignedIntValue(int index, int defaultValue)
           
 int getAttributeUnsignedIntValue(java.lang.String namespace, java.lang.String attribute, int defaultValue)
           
 java.lang.String getAttributeValue(int index)
           
 java.lang.String getAttributeValue(java.lang.String namespace, java.lang.String attribute)
           
 java.lang.String getClassAttribute()
           
 java.lang.String getIdAttribute()
           
 int getIdAttributeResourceValue(int defaultValue)
           
 java.lang.String getPositionDescription()
           
 int getStyleAttribute()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAttributeSet

public TestAttributeSet(java.util.Map<java.lang.String,java.lang.String> attributes,
                        com.xtremelabs.robolectric.res.ResourceExtractor resourceExtractor,
                        com.xtremelabs.robolectric.res.AttrResourceLoader attrResourceLoader,
                        java.lang.Class<? extends android.view.View> viewClass)
Method Detail

getAttributeBooleanValue

public boolean getAttributeBooleanValue(java.lang.String namespace,
                                        java.lang.String attribute,
                                        boolean defaultValue)
Specified by:
getAttributeBooleanValue in interface android.util.AttributeSet

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String namespace,
                                          java.lang.String attribute)
Specified by:
getAttributeValue in interface android.util.AttributeSet

getAttributeIntValue

public int getAttributeIntValue(java.lang.String namespace,
                                java.lang.String attribute,
                                int defaultValue)
Specified by:
getAttributeIntValue in interface android.util.AttributeSet

getAttributeCount

public int getAttributeCount()
Specified by:
getAttributeCount in interface android.util.AttributeSet

getAttributeName

public java.lang.String getAttributeName(int index)
Specified by:
getAttributeName in interface android.util.AttributeSet

getAttributeValue

public java.lang.String getAttributeValue(int index)
Specified by:
getAttributeValue in interface android.util.AttributeSet

getPositionDescription

public java.lang.String getPositionDescription()
Specified by:
getPositionDescription in interface android.util.AttributeSet

getAttributeNameResource

public int getAttributeNameResource(int index)
Specified by:
getAttributeNameResource in interface android.util.AttributeSet

getAttributeListValue

public int getAttributeListValue(java.lang.String namespace,
                                 java.lang.String attribute,
                                 java.lang.String[] options,
                                 int defaultValue)
Specified by:
getAttributeListValue in interface android.util.AttributeSet

getAttributeUnsignedIntValue

public int getAttributeUnsignedIntValue(java.lang.String namespace,
                                        java.lang.String attribute,
                                        int defaultValue)
Specified by:
getAttributeUnsignedIntValue in interface android.util.AttributeSet

getAttributeFloatValue

public float getAttributeFloatValue(java.lang.String namespace,
                                    java.lang.String attribute,
                                    float defaultValue)
Specified by:
getAttributeFloatValue in interface android.util.AttributeSet

getAttributeListValue

public int getAttributeListValue(int index,
                                 java.lang.String[] options,
                                 int defaultValue)
Specified by:
getAttributeListValue in interface android.util.AttributeSet

getAttributeBooleanValue

public boolean getAttributeBooleanValue(int index,
                                        boolean defaultValue)
Specified by:
getAttributeBooleanValue in interface android.util.AttributeSet

getAttributeResourceValue

public int getAttributeResourceValue(java.lang.String namespace,
                                     java.lang.String attribute,
                                     int defaultValue)
Specified by:
getAttributeResourceValue in interface android.util.AttributeSet

getAttributeResourceValue

public int getAttributeResourceValue(int index,
                                     int defaultValue)
Specified by:
getAttributeResourceValue in interface android.util.AttributeSet

getAttributeIntValue

public int getAttributeIntValue(int index,
                                int defaultValue)
Specified by:
getAttributeIntValue in interface android.util.AttributeSet

getAttributeUnsignedIntValue

public int getAttributeUnsignedIntValue(int index,
                                        int defaultValue)
Specified by:
getAttributeUnsignedIntValue in interface android.util.AttributeSet

getAttributeFloatValue

public float getAttributeFloatValue(int index,
                                    float defaultValue)
Specified by:
getAttributeFloatValue in interface android.util.AttributeSet

getIdAttribute

public java.lang.String getIdAttribute()
Specified by:
getIdAttribute in interface android.util.AttributeSet

getClassAttribute

public java.lang.String getClassAttribute()
Specified by:
getClassAttribute in interface android.util.AttributeSet

getIdAttributeResourceValue

public int getIdAttributeResourceValue(int defaultValue)
Specified by:
getIdAttributeResourceValue in interface android.util.AttributeSet

getStyleAttribute

public int getStyleAttribute()
Specified by:
getStyleAttribute in interface android.util.AttributeSet