Class TraitDefinition.BreakingChangeRule

  • All Implemented Interfaces:
    ToNode
    Enclosing class:
    TraitDefinition

    public static final class TraitDefinition.BreakingChangeRule
    extends java.lang.Object
    implements ToNode
    Represents an individual trait diff rule to define backward compatibility rules.
    • Method Detail

      • getPath

        public java.util.Optional<NodePointer> getPath()
      • getDefaultedPath

        public NodePointer getDefaultedPath()
      • getSeverity

        public java.util.Optional<Severity> getSeverity()
      • getDefaultedSeverity

        public Severity getDefaultedSeverity()
      • getMessage

        public java.util.Optional<java.lang.String> getMessage()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toNode

        public Node toNode()
        Description copied from interface: ToNode
        Converts a value to a Node.
        Specified by:
        toNode in interface ToNode
        Returns:
        Returns the creates Node.