Class CmsLinkInfo


  • public class CmsLinkInfo
    extends java.lang.Object
    Immutable bean representing most of the information in a CmsLink.
    • Constructor Detail

      • CmsLinkInfo

        public CmsLinkInfo​(CmsUUID structureId,
                           java.lang.String target,
                           java.lang.String query,
                           java.lang.String anchor,
                           CmsRelationType type,
                           boolean internal)
        Creates a new instance.
        Parameters:
        structureId - the structure id
        target - the link target
        query - the query
        anchor - the anchor
        type - the type
        internal - true if the link is internal
    • Method Detail

      • equals

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

        public java.lang.String getAnchor()
        Gets the anchor.
        Returns:
        the anchor
      • getQuery

        public java.lang.String getQuery()
        Gets the query
        Returns:
        the query
      • getTarget

        public java.lang.String getTarget()
        Gets the target.
        Returns:
        the target
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • isInternal

        public boolean isInternal()
        Checks whether the link is internal.
        Returns:
        true if this is an internal
      • toLink

        public CmsLink toLink()
        Converts this to a CmsLink.
        Returns:
        a new CmsLink instance with the information from this bean
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()