Package software.amazon.smithy.diff
Class ChangedMetadata
- java.lang.Object
- 
- software.amazon.smithy.diff.ChangedMetadata
 
- 
- All Implemented Interfaces:
- FromSourceLocation
 
 public final class ChangedMetadata extends java.lang.Object implements FromSourceLocation Represents a change in metadata.
- 
- 
Method SummaryModifier and Type Method Description java.lang.StringgetKey()Gets the key of the metadata that changed.NodegetNewValue()Gets the new metadata value for this key.NodegetOldValue()Gets the old metadata value for this key.SourceLocationgetSourceLocation()Gets the source location of a value.
 
- 
- 
- 
Method Detail- 
getKeypublic java.lang.String getKey() Gets the key of the metadata that changed.- Returns:
- Returns the changed key.
 
 - 
getOldValuepublic Node getOldValue() Gets the old metadata value for this key.- Returns:
- Returns the value in the old model.
 
 - 
getNewValuepublic Node getNewValue() Gets the new metadata value for this key.- Returns:
- Returns the value in the new model.
 
 - 
getSourceLocationpublic SourceLocation getSourceLocation() Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
- getSourceLocationin interface- FromSourceLocation
- Returns:
- Returns the source location of the value.
 
 
- 
 
-