本文整理汇总了Java中org.jivesoftware.smackx.workgroup.util.ModelUtil.hasLength方法的典型用法代码示例。如果您正苦于以下问题:Java ModelUtil.hasLength方法的具体用法?Java ModelUtil.hasLength怎么用?Java ModelUtil.hasLength使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jivesoftware.smackx.workgroup.util.ModelUtil
的用法示例。
在下文中一共展示了ModelUtil.hasLength方法的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;
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
}
}
示例8: isSearchEnabled
import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入方法依赖的package包/类
public boolean isSearchEnabled() {
return ModelUtil.hasLength(getForumsLocation()) && ModelUtil.hasLength(getKbLocation());
}
示例9: hasKB
import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入方法依赖的package包/类
public boolean hasKB(){
return ModelUtil.hasLength(getKbLocation());
}
示例10: hasForums
import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入方法依赖的package包/类
public boolean hasForums(){
return ModelUtil.hasLength(getForumsLocation());
}
示例11: getRedirectURL
import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入方法依赖的package包/类
public String getRedirectURL() {
if (!ModelUtil.hasLength(redirectURL)) {
return "";
}
return redirectURL;
}
示例12: getOfflineText
import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入方法依赖的package包/类
public String getOfflineText() {
if (!ModelUtil.hasLength(offlineText)) {
return "";
}
return offlineText;
}
示例13: getEmailAddress
import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入方法依赖的package包/类
public String getEmailAddress() {
if (!ModelUtil.hasLength(emailAddress)) {
return "";
}
return emailAddress;
}
示例14: getSubject
import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入方法依赖的package包/类
public String getSubject() {
if (!ModelUtil.hasLength(subject)) {
return "";
}
return subject;
}
示例15: redirects
import org.jivesoftware.smackx.workgroup.util.ModelUtil; //导入方法依赖的package包/类
public boolean redirects() {
return (ModelUtil.hasLength(getRedirectURL()));
}