Class ObjectMetadataAction

java.lang.Object
hudson.model.InvisibleAction
jenkins.scm.api.metadata.ObjectMetadataAction
All Implemented Interfaces:
Action, ModelObject, Serializable

@ExportedBean public class ObjectMetadataAction extends InvisibleAction implements Serializable
Holds metadata about the object referenced by a SCMRevision, SCMHead, SCMSource or SCMNavigator.

For example:

Since:
2.0
See Also:
  • Constructor Details

    • ObjectMetadataAction

      public ObjectMetadataAction(@CheckForNull String objectDisplayName, @CheckForNull String objectDescription, @CheckForNull String objectUrl)
  • Method Details

    • getObjectDisplayName

      @Exported @CheckForNull public String getObjectDisplayName()
      Returns the display name of the object or null. Consumers should assume the content is plain text that needs escaping with Util.escape(String) when being included in HTML output.
      Returns:
      the display name of the object or null
    • getObjectDescription

      @Exported @CheckForNull public String getObjectDescription()
      Returns the description of the object or null. Consumers should assume the content is plain text that needs escaping with Util.escape(String) when being included in HTML output.
      Returns:
      the description of the object or null.
    • getObjectUrl

      @Exported @CheckForNull public String getObjectUrl()
      Returns the external url of the object or null if the object does not have an external url.
      Returns:
      the display name of the object or null
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object