Package org.opencms.relations
Class CmsLinkInfo
java.lang.Object
org.opencms.relations.CmsLinkInfo
Immutable bean representing most of the information in a CmsLink.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCmsLinkInfo
(CmsUUID structureId, String target, String query, String anchor, CmsRelationType type, boolean internal) Creates a new instance. -
Method Summary
-
Field Details
-
EMPTY
Empty link.
-
-
Constructor Details
-
CmsLinkInfo
public CmsLinkInfo(CmsUUID structureId, String target, String query, String anchor, CmsRelationType type, boolean internal) Creates a new instance.- Parameters:
structureId
- the structure idtarget
- the link targetquery
- the queryanchor
- the anchortype
- the typeinternal
- true if the link is internal
-
-
Method Details
-
equals
-
getAnchor
Gets the anchor.- Returns:
- the anchor
-
getQuery
Gets the query- Returns:
- the query
-
getStructureId
Gets the structure id.- Returns:
- the structure id
-
getTarget
Gets the target.- Returns:
- the target
-
getType
Gets the relation type.- Returns:
- the type
-
hashCode
-
isInternal
Checks whether the link is internal.- Returns:
- true if this is an internal
-
toLink
Converts this to a CmsLink.- Returns:
- a new CmsLink instance with the information from this bean
-
toString
-