Java 类org.jivesoftware.smackx.workgroup.util.ModelUtil 实例源码

项目:Smack    文件:WorkgroupProperties.java   
@Override
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) {
    if (ModelUtil.hasLength(getJid())) {
        buf.append("jid=\"" + getJid() + "\" ");
    }
    buf.setEmptyElement();
    return buf;
}
项目:Smack    文件:GenericSettings.java   
@Override
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) {
    buf.append(">");
    if (ModelUtil.hasLength(getQuery())) {
        buf.append("<query>" + getQuery() + "</query>");
    }
    return buf;
}
项目:EIM    文件:WorkgroupProperties.java   
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();
}
项目:EIM    文件:GenericSettings.java   
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();
}
项目:androidPN-client.    文件:WorkgroupProperties.java   
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();
}
项目:androidPN-client.    文件:GenericSettings.java   
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();
}
项目:xmppsupport_v2    文件:WorkgroupProperties.java   
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();
}
项目:xmppsupport_v2    文件:GenericSettings.java   
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();
}
项目:java-bells    文件:WorkgroupProperties.java   
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();
}
项目:java-bells    文件:GenericSettings.java   
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();
}
项目:telegraph    文件:WorkgroupProperties.java   
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();
}
项目:telegraph    文件:GenericSettings.java   
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();
}
项目:NewCommunication-Android    文件:WorkgroupProperties.java   
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();
}
项目:NewCommunication-Android    文件:GenericSettings.java   
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();
}
项目:spark-svn-mirror    文件:CoBrowser.java   
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);
        }
    }
}
项目:Smack    文件:SearchSettings.java   
public boolean isSearchEnabled() {
    return ModelUtil.hasLength(getForumsLocation()) && ModelUtil.hasLength(getKbLocation());
}
项目:Smack    文件:SearchSettings.java   
public boolean hasKB(){
    return ModelUtil.hasLength(getKbLocation());
}
项目:Smack    文件:SearchSettings.java   
public boolean hasForums(){
    return ModelUtil.hasLength(getForumsLocation());
}
项目:Smack    文件:OfflineSettings.java   
public String getRedirectURL() {
    if (!ModelUtil.hasLength(redirectURL)) {
        return "";
    }
    return redirectURL;
}
项目:Smack    文件:OfflineSettings.java   
public String getOfflineText() {
    if (!ModelUtil.hasLength(offlineText)) {
        return "";
    }
    return offlineText;
}
项目:Smack    文件:OfflineSettings.java   
public String getEmailAddress() {
    if (!ModelUtil.hasLength(emailAddress)) {
        return "";
    }
    return emailAddress;
}
项目:Smack    文件:OfflineSettings.java   
public String getSubject() {
    if (!ModelUtil.hasLength(subject)) {
        return "";
    }
    return subject;
}
项目:Smack    文件:OfflineSettings.java   
public boolean redirects() {
    return (ModelUtil.hasLength(getRedirectURL()));
}
项目:Smack    文件:OfflineSettings.java   
public boolean isConfigured(){
    return ModelUtil.hasLength(getEmailAddress()) &&
           ModelUtil.hasLength(getSubject()) &&
           ModelUtil.hasLength(getOfflineText());
}
项目:EIM    文件:SearchSettings.java   
public boolean isSearchEnabled() {
    return ModelUtil.hasLength(getForumsLocation()) && ModelUtil.hasLength(getKbLocation());
}
项目:EIM    文件:SearchSettings.java   
public boolean hasKB(){
    return ModelUtil.hasLength(getKbLocation());
}
项目:EIM    文件:SearchSettings.java   
public boolean hasForums(){
    return ModelUtil.hasLength(getForumsLocation());
}
项目:EIM    文件:OfflineSettings.java   
public String getRedirectURL() {
    if (!ModelUtil.hasLength(redirectURL)) {
        return "";
    }
    return redirectURL;
}
项目:EIM    文件:OfflineSettings.java   
public String getOfflineText() {
    if (!ModelUtil.hasLength(offlineText)) {
        return "";
    }
    return offlineText;
}
项目:EIM    文件:OfflineSettings.java   
public String getEmailAddress() {
    if (!ModelUtil.hasLength(emailAddress)) {
        return "";
    }
    return emailAddress;
}
项目:EIM    文件:OfflineSettings.java   
public String getSubject() {
    if (!ModelUtil.hasLength(subject)) {
        return "";
    }
    return subject;
}
项目:EIM    文件:OfflineSettings.java   
public boolean redirects() {
    return (ModelUtil.hasLength(getRedirectURL()));
}
项目:EIM    文件:OfflineSettings.java   
public boolean isConfigured(){
    return ModelUtil.hasLength(getEmailAddress()) &&
           ModelUtil.hasLength(getSubject()) &&
           ModelUtil.hasLength(getOfflineText());
}
项目:androidPN-client.    文件:SearchSettings.java   
public boolean isSearchEnabled() {
    return ModelUtil.hasLength(getForumsLocation()) && ModelUtil.hasLength(getKbLocation());
}
项目:androidPN-client.    文件:SearchSettings.java   
public boolean hasKB(){
    return ModelUtil.hasLength(getKbLocation());
}
项目:androidPN-client.    文件:SearchSettings.java   
public boolean hasForums(){
    return ModelUtil.hasLength(getForumsLocation());
}
项目:androidPN-client.    文件:OfflineSettings.java   
public String getRedirectURL() {
    if (!ModelUtil.hasLength(redirectURL)) {
        return "";
    }
    return redirectURL;
}
项目:androidPN-client.    文件:OfflineSettings.java   
public String getOfflineText() {
    if (!ModelUtil.hasLength(offlineText)) {
        return "";
    }
    return offlineText;
}
项目:androidPN-client.    文件:OfflineSettings.java   
public String getEmailAddress() {
    if (!ModelUtil.hasLength(emailAddress)) {
        return "";
    }
    return emailAddress;
}
项目:androidPN-client.    文件:OfflineSettings.java   
public String getSubject() {
    if (!ModelUtil.hasLength(subject)) {
        return "";
    }
    return subject;
}