📄 pubsuboptionsbuilder.java
字号:
package edu.ou.kmi.buddyspace.plugins.pubsub.xml;
/*
* PubsubOptionsBuilder.java
*
* Project: BuddySpace
* (C) Copyright Knowledge Media Institute 2003
*
*
* Created on 10 October 2003, 14:45
*/
import java.util.*;
import org.jabber.jabberbeans.util.*;
import org.jabber.jabberbeans.*;
import org.jabber.jabberbeans.Extension.*;
import edu.ou.kmi.buddyspace.xml.*;
/**
* <code>PubsubOptionsBuilder</code> is used to construct PubsubOptions objects
*
* @author Jiri Komzak, Knowledge Media Institute, Open University, United Kingdom
*/
public class PubsubOptionsBuilder
{
/** Node name */
private String node;
/** JID */
private JID jid;
/** Form */
private XData form;
/** Is this subscribe or unsubscribe */
//private boolean isUnsubscribe;
/*
* Construct a new <code>PubsubOptionsBuilder</code> object
*/
public PubsubOptionsBuilder()
{reset();}
/** reset this builder to a default state, for reuse */
public void reset() {
jid = null;
node = null;
form = null;
}
/* returns the node name */
public String getNode() {
return node;
}
/* sets node name */
public void setNode(String newNode) {
this.node = newNode;
}
/* returns the JID */
public JID getJID() {
return jid;
}
/* sets JID */
public void setJID(JID newJID) {
this.jid = newJID;
}
/* returns the form */
public XData getForm() {
return form;
}
/* sets form */
public void setForm(XData newForm) {
this.form = newForm;
}
/*
* Build a <code>PubsubOptions</code> based on the current builder
* state.
*
* @return <code>PubsubOptions</code> based on the current builder
* state.
*/
public XMLData build() throws InstantiationException
{return new PubsubOptions(this);}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -