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.
        Parameters:
        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.
        Parameters:
        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.
        Returns:
        the status, never null
      • getPublication

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