com.android.manifmerger
Enum NodeOperationType

java.lang.Object
  extended by java.lang.Enum<NodeOperationType>
      extended by com.android.manifmerger.NodeOperationType
All Implemented Interfaces:
ConvertibleName, java.io.Serializable, java.lang.Comparable<NodeOperationType>

public enum NodeOperationType
extends java.lang.Enum<NodeOperationType>
implements ConvertibleName

Defines node operation types as it can be provided by user's through attributes on the target xml element.

Example:

     
     
 


Enum Constant Summary
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.
REMOVE
          Remove the next definition of the same element from the resulting merged manifest.
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.
REPLACE
          Replace further definitions of the same element with this one.
STRICT
          No further definition of this element should be encountered.
 
Method Summary
 boolean isOverriding()
          Returns true if the element will override (remove or replace) lower priority elements.
 boolean isSelectable()
          Returns true if this operation supports a Selector
 java.lang.String toCamelCaseName()
          Returns a camel case version of itself.
 java.lang.String toXmlName()
          Returns a xml lower-hyphen separated name of itself.
static NodeOperationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NodeOperationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MERGE

public static final NodeOperationType MERGE
Merges further definitions of the same element with this one.


MERGE_ONLY_ATTRIBUTES

public static final NodeOperationType 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

public static final NodeOperationType 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

public static final NodeOperationType 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

public static final NodeOperationType REMOVE_ALL
Remove all definitions of the same element from the resulting merged manifest.


REMOVE_CHILDREN

public static final NodeOperationType 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

public static final NodeOperationType STRICT
No further definition of this element should be encountered. A merging tool failure will be generated if there is one.

Method Detail

values

public static NodeOperationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NodeOperationType c : NodeOperationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NodeOperationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isSelectable

public boolean isSelectable()
Returns true if this operation supports a Selector


toXmlName

public java.lang.String toXmlName()
Description copied from interface: ConvertibleName
Returns a xml lower-hyphen separated name of itself.

Specified by:
toXmlName in interface ConvertibleName

toCamelCaseName

public java.lang.String toCamelCaseName()
Description copied from interface: ConvertibleName
Returns a camel case version of itself.

Specified by:
toCamelCaseName in interface ConvertibleName

isOverriding

public boolean isOverriding()
Returns true if the element will override (remove or replace) lower priority elements.