Package org.spdx.core
Enum NotEquivalentReason.NotEquivalent
- java.lang.Object
-
- java.lang.Enum<NotEquivalentReason.NotEquivalent>
-
- org.spdx.core.NotEquivalentReason.NotEquivalent
-
- All Implemented Interfaces:
Serializable
,Comparable<NotEquivalentReason.NotEquivalent>
- Enclosing class:
- NotEquivalentReason
public static enum NotEquivalentReason.NotEquivalent extends Enum<NotEquivalentReason.NotEquivalent>
Enum representing the reasons why two model objects are not equivalent.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPARE_PROPERTY_MISSING
Indicates that a property to compare is missing.DIFFERENT_CLASS
Indicates that the objects are of different classes.MISSING_PROPERTY
Indicates that a property is missing in one of the objects.PROPERTY_NOT_EQUIVALENT
Indicates that a property value is not equivalent between the objects.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NotEquivalentReason.NotEquivalent
valueOf(String name)
Returns the enum constant of this type with the specified name.static NotEquivalentReason.NotEquivalent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIFFERENT_CLASS
public static final NotEquivalentReason.NotEquivalent DIFFERENT_CLASS
Indicates that the objects are of different classes.
-
MISSING_PROPERTY
public static final NotEquivalentReason.NotEquivalent MISSING_PROPERTY
Indicates that a property is missing in one of the objects.
-
PROPERTY_NOT_EQUIVALENT
public static final NotEquivalentReason.NotEquivalent PROPERTY_NOT_EQUIVALENT
Indicates that a property value is not equivalent between the objects.
-
COMPARE_PROPERTY_MISSING
public static final NotEquivalentReason.NotEquivalent COMPARE_PROPERTY_MISSING
Indicates that a property to compare is missing.
-
-
Method Detail
-
values
public static NotEquivalentReason.NotEquivalent[] 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 (NotEquivalentReason.NotEquivalent c : NotEquivalentReason.NotEquivalent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NotEquivalentReason.NotEquivalent valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-