public List<CmsLink> getLinks(CmsObject cms) {

        List<CmsLink> result = new ArrayList<CmsLink>();

        @SuppressWarnings("unchecked")
        List<Element> linkElements = m_element.elements(CmsXmlPage.NODE_LINK);
        for (Element linkElement : linkElements) {
            if (linkElement == null) {
                String uri = m_element.getText();
                if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(uri)) {
                    setStringValue(cms, uri);
                }
            }
            CmsLinkUpdateUtil.updateType(linkElement, getRelationType(getPath()));
            CmsLink link = new CmsLink(linkElement);
            link.checkConsistency(cms);
            if (CmsStringUtil.isEmptyOrWhitespaceOnly(link.getTarget())) {
                continue;
            }
            result.add(link);
        }
        return result;
    }
public List < CmsLink > getLinks ( CmsObject cms ) { List < CmsLink > result = new ArrayList < CmsLink > ( ) ; @ SuppressWarnings ( "unchecked" ) List < Element > linkElements = m_element . elements ( CmsXmlPage . NODE_LINK ) ; for ( Element linkElement : linkElements ) { if ( linkElement == null ) { String uri = m_element . getText ( ) ; if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( uri ) ) { setStringValue ( cms , uri ) ; } } CmsLinkUpdateUtil . updateType ( linkElement , getRelationType ( getPath ( ) ) ) ; CmsLink link = new CmsLink ( linkElement ) ; link . checkConsistency ( cms ) ; if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( link . getTarget ( ) ) ) { continue ; } result . add ( link ) ; } return result ; }
Returns the link objects represented by this XML content value.<p>

@param cms the cms context, can be <code>null</code> but in this case no link check is performed

@return  a list of link objects represented by this XML content value