Package com.android.manifmerger
Enum Class NodeOperationType
- All Implemented Interfaces:
ConvertibleName,Serializable,Comparable<NodeOperationType>,Constable
Defines node operation types as it can be provided by user's through attributes on the
target xml element.
Example:
<activity android:name="com.foo.bar.ActivityUI"
tools:node="remove_children">
</activity>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMerges further definitions of the same element with this one.Remove all children from the target element before merging it into the resulting merged manifest.Remove the next definition of the same element from the resulting merged manifest.Remove all definitions of the same element from the resulting merged manifest.Remove all children from the target element before merging it into the resulting merged manifest.Replace further definitions of the same element with this one.No further definition of this element should be encountered. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the element will override (remove or replace) lower priority elements.booleanReturns true if this operation supports aSelectorReturns a camel case version of itself.Returns a xml lower-hyphen separated name of itself.static NodeOperationTypeReturns the enum constant of this class with the specified name.static NodeOperationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MERGE
Merges further definitions of the same element with this one. -
MERGE_ONLY_ATTRIBUTES
Remove all children from the target element before merging it into the resulting merged manifest. This basically merges attributes only (attributes annotation still applies). -
REPLACE
Replace further definitions of the same element with this one. There can be 0..n similar elements replaced with the annotated xml element. -
REMOVE
Remove the next definition of the same element from the resulting merged manifest. There can be only one similar element removed. If further definition are encountered, a merging failure will be initiated. -
REMOVE_ALL
Remove all definitions of the same element from the resulting merged manifest. -
REMOVE_CHILDREN
Remove all children from the target element before merging it into the resulting merged manifest. This basically merges all attributes only (attributes annotation still applies). -
STRICT
No further definition of this element should be encountered. A merging tool failure will be generated if there is one.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isSelectable
public boolean isSelectable()Returns true if this operation supports aSelector -
toXmlName
Description copied from interface:ConvertibleNameReturns a xml lower-hyphen separated name of itself.- Specified by:
toXmlNamein interfaceConvertibleName
-
toCamelCaseName
Description copied from interface:ConvertibleNameReturns a camel case version of itself.- Specified by:
toCamelCaseNamein interfaceConvertibleName
-
isOverriding
public boolean isOverriding()Returns true if the element will override (remove or replace) lower priority elements.
-