Class AttributeResource

java.lang.Object
org.robolectric.res.AttributeResource

public class AttributeResource extends Object
  • Field Details

  • Constructor Details

    • AttributeResource

      public AttributeResource(@Nonnull ResName resName, @Nonnull String value, @Nonnull String contextPackageName)
    • AttributeResource

      public AttributeResource(@Nonnull ResName resName, @Nonnull String value, @Nonnull String contextPackageName, Integer referenceResId)
  • Method Details

    • isResourceReference

      public boolean isResourceReference()
    • getResourceReference

      @Nonnull public ResName getResourceReference()
    • isStyleReference

      public boolean isStyleReference()
    • getStyleReference

      public ResName getStyleReference()
    • isNull

      public boolean isNull()
    • isEmpty

      public boolean isEmpty()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isResourceReference

      public static boolean isResourceReference(String value)
    • getResourceReference

      @Nonnull public static ResName getResourceReference(String value, String defPackage, String defType)
    • isStyleReference

      public static boolean isStyleReference(String value)
    • getStyleReference

      public static ResName getStyleReference(String value, String defPackage, String defType)
    • isNull

      public static boolean isNull(String value)
    • isEmpty

      public static boolean isEmpty(String value)
    • getReferenceResId

      public Integer getReferenceResId()