public interface StyleResourceValue extends ResourceValue
ResourceValue.| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<StyleItemResourceValue> |
getDefinedItems()
Returns a list of all items defined in this Style.
|
StyleItemResourceValue |
getItem(ResourceNamespace namespace,
java.lang.String name)
Finds the item for the given qualified attr name in this style (if it's defined in this
style).
|
StyleItemResourceValue |
getItem(ResourceReference attr)
Finds the item for the given attr in this style (if it's defined in this style).
|
default ResourceReference |
getParentStyle()
Returns a reference to the parent style, if it can be determined based on the explicit parent
reference in XML or by splitting the name of this
StyleResourceValue by dots. |
java.lang.String |
getParentStyleName()
Returns value of the
parent XML attribute of this style. |
asReference, getLibraryName, getName, getNamespace, getNamespaceResolver, getRawXmlValue, getReference, getResourceType, getResourceUrl, getValue, isFramework, isUserDefined, setNamespaceResolver, setValue@Nullable java.lang.String getParentStyleName()
parent XML attribute of this style. Does not look at the name of
the style itself or dots in it.@Nullable default ResourceReference getParentStyle()
StyleResourceValue by dots.@Nullable StyleItemResourceValue getItem(@NonNull ResourceNamespace namespace, @NonNull java.lang.String name)
@Nullable StyleItemResourceValue getItem(@NonNull ResourceReference attr)
@NonNull java.util.Collection<StyleItemResourceValue> getDefinedItems()