Package org.spdx.core
Class NotEquivalentReason
- java.lang.Object
-
- org.spdx.core.NotEquivalentReason
-
public class NotEquivalentReason extends Object
Records details when two model objects are compared and are determined to not be equivalentPrimarily used for debugging.
- Author:
- Gary O'Neall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NotEquivalentReason.NotEquivalent
Enum representing the reasons why two model objects are not equivalent.
-
Constructor Summary
Constructors Constructor Description NotEquivalentReason(NotEquivalentReason.NotEquivalent reason)
Constructs a NotEquivalentReason with the specified reason.NotEquivalentReason(NotEquivalentReason.NotEquivalent reason, PropertyDescriptor property)
Constructs a NotEquivalentReason with the specified reason and property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyDescriptor
getProperty()
NotEquivalentReason.NotEquivalent
getReason()
void
setProperty(PropertyDescriptor property)
void
setReason(NotEquivalentReason.NotEquivalent reason)
-
-
-
Constructor Detail
-
NotEquivalentReason
public NotEquivalentReason(NotEquivalentReason.NotEquivalent reason)
Constructs a NotEquivalentReason with the specified reason.- Parameters:
reason
- the reason why the objects are not equivalent
-
NotEquivalentReason
public NotEquivalentReason(NotEquivalentReason.NotEquivalent reason, PropertyDescriptor property)
Constructs a NotEquivalentReason with the specified reason and property.- Parameters:
reason
- the reason why the objects are not equivalentproperty
- the property descriptor associated with the reason
-
-
Method Detail
-
getReason
public NotEquivalentReason.NotEquivalent getReason()
- Returns:
- the reason why the objects are not equivalent
-
setReason
public void setReason(NotEquivalentReason.NotEquivalent reason)
- Parameters:
reason
- the reason to set
-
getProperty
public PropertyDescriptor getProperty()
- Returns:
- the property
-
setProperty
public void setProperty(PropertyDescriptor property)
- Parameters:
property
- the property to set
-
-