Enum Class MetadataMergeAction
- All Implemented Interfaces:
Serializable,Comparable<MetadataMergeAction>,Constable
A component of
MetadataCommon which specifies what to do when a duplicate data object, attribute, collection
or reference is encountered during the merging performed by the CompositeMetadataProvider.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe default behavior.If a match is found (same data object or attribute name), the existing object will be left alone.If a match is found (same data object or attribute name), the existing object will be removed.If a match is found (same data object or attribute name), the existing object will be replaced completely by this one. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataMergeActionReturns the enum constant of this class with the specified name.static MetadataMergeAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MERGE
The default behavior. Unset attributes will be left alone. -
REPLACE
If a match is found (same data object or attribute name), the existing object will be replaced completely by this one. -
REMOVE
If a match is found (same data object or attribute name), the existing object will be removed. (Any attribute except that forming the key (type or attribute name) can be left unset.) -
NO_OVERRIDE
If a match is found (same data object or attribute name), the existing object will be left alone. The metadata object will only be included if there is not already an existing object.
-
-
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
-