public static class RhythmOverlayInflater.LayerConfig
extends java.lang.Object
RhythmOverlayInflater
to carry
values needed to inflate individual layers and their hierarchies.Modifier and Type | Field and Description |
---|---|
protected ArgumentsBundle |
mArgumentsBundle |
protected int |
mIndent |
protected java.lang.String |
mLayerType |
Constructor and Description |
---|
LayerConfig(java.lang.String layerType,
int indent,
ArgumentsBundle argumentsBundle)
Create layer config object for layer of given type, with known indent, and with pre-filled arguments bag
|
Modifier and Type | Method and Description |
---|---|
ArgumentsBundle |
getArgumentsBundle()
Get the configuration of this layer presented by an
ArgumentsBundle object |
int |
getIndent()
Get the number of spaces this config line was indented with.
|
java.lang.String |
getLayerType()
Get the name of
spec layer to inflate with these arguments |
protected java.lang.String mLayerType
protected int mIndent
protected ArgumentsBundle mArgumentsBundle
public LayerConfig(@NonNull java.lang.String layerType, int indent, @NonNull ArgumentsBundle argumentsBundle)
layerType
- spec layer type, used for appropriate factory lookupindent
- number of leading spaces in the config line, used to resolve layer hierarchyargumentsBundle
- an object describing parsed layer configuration (arguments and values)public java.lang.String getLayerType()
spec layer
to inflate with these argumentspublic int getIndent()
public ArgumentsBundle getArgumentsBundle()
ArgumentsBundle
object