Class PublicationResult

  • public class PublicationResult
    extends Object
    Result of publication process. Consist of status of publication and instance of publication, if it was successful.
    • Constructor Detail

      • PublicationResult

        public PublicationResult​(org.eclipse.core.runtime.IStatus status,
                                 Publication publication)
        Creates an instance of PublicationResult.
        status - the status of publication result, never null
        publication - the publication, can be null when publication was unsuccessful
      • PublicationResult

        public PublicationResult​(org.eclipse.core.runtime.IStatus status)
        Creates an instance unsuccessful PublicationResult.
        status - status of publication result, never null, must not be OK
    • Method Detail

      • getStatus

        public org.eclipse.core.runtime.IStatus getStatus()
        Returns the status of publication process result.
        the status, never null
      • getPublication

        public <T extends Publication> T getPublication()
        Returns the publication. Can return null.
        the publication, can be null