Package cn.com.annotations

Examples of cn.com.annotations.Link


    protected void parserLinkElement(Element e, ContainHTMLElementTag elementDiv, String value) throws AppException {
        if (e.link() != null) {
            LinkElementTag linkElement = new LinkElementTag();
            // 设定动态参数参数
            StringBuilder href = new StringBuilder(_HREF_VALUE);
            Link link = e.link();
            // 设定链接属性
            if (!StringUtil.isEmpty(link.url())) {
                href = new StringBuilder(link.url());
            }
            // 设定参数列表
            if (link.parameters() != null && link.parameters().length > 0) {
                if (href.indexOf(_PARAMETER_SIGN_CHAR) == -1) {
                    href.append(_PARAMETER_SIGN_CHAR);
                }
                int idx = 0;
                for (String parameter : link.parameters()) {
                    if (idx++ > 0) {
                        href.append(_PARAMETER_CONCATE_CHAR);
                    }
                    settingLinkHref(href, parameter, e);
                }
View Full Code Here

TOP

Related Classes of cn.com.annotations.Link

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.