当前位置: 首页>>代码示例>>Java>>正文


Java ModelUtil类代码示例

本文整理汇总了Java中org.jivesoftware.smackx.workgroup.util.ModelUtil的典型用法代码示例。如果您正苦于以下问题:Java ModelUtil类的具体用法?Java ModelUtil怎么用?Java ModelUtil使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ModelUtil类属于org.jivesoftware.smackx.workgroup.util包,在下文中一共展示了ModelUtil类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getIQChildElementBuilder

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
@Override
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) {
    if (ModelUtil.hasLength(getJid())) {
        buf.append("jid=\"" + getJid() + "\" ");
    }
    buf.setEmptyElement();
    return buf;
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:9,代码来源:WorkgroupProperties.java

示例2: getIQChildElementBuilder

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
@Override
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) {
    buf.append(">");
    if (ModelUtil.hasLength(getQuery())) {
        buf.append("<query>" + getQuery() + "</query>");
    }
    return buf;
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:9,代码来源:GenericSettings.java

示例3: getChildElementXML

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public String getChildElementXML() {
    StringBuilder buf = new StringBuilder();

    buf.append("<").append(ELEMENT_NAME).append(" xmlns=");
    buf.append('"');
    buf.append(NAMESPACE);
    buf.append('"');
    if (ModelUtil.hasLength(getJid())) {
        buf.append("jid=\"" + getJid() + "\" ");
    }
    buf.append("></").append(ELEMENT_NAME).append("> ");
    return buf.toString();
}
 
开发者ID:ice-coffee,项目名称:EIM,代码行数:14,代码来源:WorkgroupProperties.java

示例4: getChildElementXML

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public String getChildElementXML() {
    StringBuilder buf = new StringBuilder();

    buf.append("<").append(ELEMENT_NAME).append(" xmlns=");
    buf.append('"');
    buf.append(NAMESPACE);
    buf.append('"');
    buf.append(">");
    if (ModelUtil.hasLength(getQuery())) {
        buf.append("<query>" + getQuery() + "</query>");
    }
    buf.append("</").append(ELEMENT_NAME).append("> ");
    return buf.toString();
}
 
开发者ID:ice-coffee,项目名称:EIM,代码行数:15,代码来源:GenericSettings.java

示例5: getChildElementXML

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public String getChildElementXML() {
	StringBuilder buf = new StringBuilder();

	buf.append("<").append(ELEMENT_NAME).append(" xmlns=");
	buf.append('"');
	buf.append(NAMESPACE);
	buf.append('"');
	if (ModelUtil.hasLength(getJid())) {
		buf.append("jid=\"" + getJid() + "\" ");
	}
	buf.append("></").append(ELEMENT_NAME).append("> ");
	return buf.toString();
}
 
开发者ID:ikantech,项目名称:xmppsupport_v2,代码行数:14,代码来源:WorkgroupProperties.java

示例6: getChildElementXML

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public String getChildElementXML() {
	StringBuilder buf = new StringBuilder();

	buf.append("<").append(ELEMENT_NAME).append(" xmlns=");
	buf.append('"');
	buf.append(NAMESPACE);
	buf.append('"');
	buf.append(">");
	if (ModelUtil.hasLength(getQuery())) {
		buf.append("<query>" + getQuery() + "</query>");
	}
	buf.append("</").append(ELEMENT_NAME).append("> ");
	return buf.toString();
}
 
开发者ID:ikantech,项目名称:xmppsupport_v2,代码行数:15,代码来源:GenericSettings.java

示例7: actionPerformed

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public void actionPerformed(ActionEvent e) {
    if (e.getSource() == goButton) {
        showSpecifiedPage();
    }
    else if (e.getSource() == pushCurrentPageButton) {
        if (ModelUtil.hasLength(urlField.getText())) {
            pushPage(urlField.getText());
            followMeButton.setSelected(true);
        }
    }
    else if (e.getSource() == backButton) {
        if (ModelUtil.hasLength(lastLink)) {
            browser.goBack();
        }
    }
    else if (e.getSource() == followMeButton) {
        boolean isSelected = followMeButton.isSelected();
        if (!isSelected) {
            //followMeButton.setIcon(lockIcon);
            followMeButton.setToolTipText(PRIVATE_TOOLTIP);
        }
        else {
            //followMeButton.setIcon(unlockIcon);
            followMeButton.setToolTipText(PUBLIC_TOOLTIP);
        }
    }
}
 
开发者ID:visit,项目名称:spark-svn-mirror,代码行数:28,代码来源:CoBrowser.java

示例8: isSearchEnabled

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public boolean isSearchEnabled() {
    return ModelUtil.hasLength(getForumsLocation()) && ModelUtil.hasLength(getKbLocation());
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:4,代码来源:SearchSettings.java

示例9: hasKB

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public boolean hasKB(){
    return ModelUtil.hasLength(getKbLocation());
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:4,代码来源:SearchSettings.java

示例10: hasForums

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public boolean hasForums(){
    return ModelUtil.hasLength(getForumsLocation());
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:4,代码来源:SearchSettings.java

示例11: getRedirectURL

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public String getRedirectURL() {
    if (!ModelUtil.hasLength(redirectURL)) {
        return "";
    }
    return redirectURL;
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:7,代码来源:OfflineSettings.java

示例12: getOfflineText

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public String getOfflineText() {
    if (!ModelUtil.hasLength(offlineText)) {
        return "";
    }
    return offlineText;
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:7,代码来源:OfflineSettings.java

示例13: getEmailAddress

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public String getEmailAddress() {
    if (!ModelUtil.hasLength(emailAddress)) {
        return "";
    }
    return emailAddress;
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:7,代码来源:OfflineSettings.java

示例14: getSubject

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public String getSubject() {
    if (!ModelUtil.hasLength(subject)) {
        return "";
    }
    return subject;
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:7,代码来源:OfflineSettings.java

示例15: redirects

import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入依赖的package包/类
public boolean redirects() {
    return (ModelUtil.hasLength(getRedirectURL()));
}
 
开发者ID:TTalkIM,项目名称:Smack,代码行数:4,代码来源:OfflineSettings.java


注:本文中的org.jivesoftware.smackx.workgroup.util.ModelUtil类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。