Class PublishInfo


  • public class PublishInfo
    extends java.lang.Object
    Info struct for service publishing details.
    • Field Detail

      • pid

        protected java.lang.String pid
        The publish id.
      • publishtype

        protected java.lang.String publishtype
        The publish type.
      • publishscope

        protected ServiceScope publishscope
        The publish scope.
      • multi

        protected boolean multi
        Flag for allowing publishing to multiple locations.
      • mapping

        protected ClassInfo mapping
        The mapping information (e.g. annotated interface).
      • properties

        protected java.util.List<UnparsedExpression> properties
        The mapping properties.
    • Constructor Detail

      • PublishInfo

        public PublishInfo()
        Create a new publish info.
      • PublishInfo

        public PublishInfo​(java.lang.String pid,
                           java.lang.String publishtype,
                           java.lang.Class<?> mapping)
        Create a new publish info.
        Parameters:
        pid - The publish id, e.g. url.
        publishtype - The publish type.
      • PublishInfo

        public PublishInfo​(java.lang.String pid,
                           java.lang.String publishtype,
                           ServiceScope publishscope,
                           boolean multi,
                           java.lang.Class<?> mapping,
                           UnparsedExpression[] properties)
        Create a new publish info.
        Parameters:
        pid - The publish id, e.g. url.
        publishtype - The publish type.
      • PublishInfo

        public PublishInfo​(java.lang.String pid,
                           java.lang.String publishtype,
                           ServiceScope publishscope,
                           boolean multi,
                           java.lang.Class<?> mapping,
                           java.lang.Object[] props)
        Create a new publish info. Convenience constructor that creates unparsed expressions from a string array containing consecutive name/value pairs.
        Parameters:
        pid - The publish id, e.g. url.
        publishtype - The publish type.
      • PublishInfo

        public PublishInfo​(PublishInfo info)
        Create a new publish info.
    • Method Detail

      • getPublishId

        public java.lang.String getPublishId()
        Get the publishid.
        Returns:
        the publishid.
      • setPublishId

        public void setPublishId​(java.lang.String pid)
        Set the publishid.
        Parameters:
        publishid - The publishid to set.
      • getPublishType

        public java.lang.String getPublishType()
        Get the type.
        Returns:
        the type.
      • setPublishType

        public void setPublishType​(java.lang.String type)
        Set the type.
        Parameters:
        type - The type to set.
      • getPublishScope

        public ServiceScope getPublishScope()
        Gets the publish scope.
        Returns:
        The publish scope.
      • setPublishScope

        public void setPublishScope​(ServiceScope publishscope)
        Set the publish scope.
        Parameters:
        publishscope - The publish scope.
      • getMapping

        public ClassInfo getMapping()
        Get the mapping information (e.g. annotated interface).
        Returns:
        The mapping.
      • setMulti

        public void setMulti​(boolean multi)
        Sets if the publishing should be done on multiple publishing services.
        Parameters:
        multi - Set true, if multi-publish.
      • isMulti

        public boolean isMulti()
        Gets if the publishing should be done on multiple publishing services.
        Returns:
        True, if multi-publish.
      • setMapping

        public void setMapping​(ClassInfo mapping)
        Set the mapping information (e.g. annotated interface).
        Parameters:
        mapping - The mapping to set.
      • getProperties

        public java.util.List<UnparsedExpression> getProperties()
        Get the properties.
        Returns:
        the properties.
      • setProperties

        public void setProperties​(java.util.List<UnparsedExpression> properties)
        Set the properties.
        Parameters:
        properties - The properties to set.
      • addProperty

        public void addProperty​(UnparsedExpression property)
        Add a property.
        Parameters:
        property - The property to add.
      • addProperty

        public void addProperty​(java.lang.String name,
                                java.lang.String val)
        Add a property.
        Parameters:
        property - The property to add.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object