📄 qsadminpluginconfig.java
字号:
/*
* This file is part of the QuickServer library
* Copyright (C) 2003-2005 QuickServer.org
*
* Use, modification, copying and distribution of this software is subject to
* the terms and conditions of the GNU Lesser General Public License.
* You should have received a copy of the GNU LGP License along with this
* library; if not, you can download a copy from <http://www.quickserver.org/>.
*
* For questions, suggestions, bug-reports, enhancement-requests etc.
* visit http://www.quickserver.org
*
*/
package org.quickserver.util.xmlreader;
/**
* This class encapsulate the QSAdmin Plugin configuration.
* The xml is <qsadmin-plugin>...</qsadmin-plugin>
* @author Akshathkumar Shetty
* @since 1.3.2
*/
public class QSAdminPluginConfig implements java.io.Serializable {
private String name="";
private String desc="";
private String type="";
private String mainClass="";
private String active="no";
/**
* @return description
*/
public String getDesc() {
return desc;
}
/**
* @param desc
*/
public void setDesc(String desc) {
if(desc!=null)
this.desc = desc;
}
/**
* @param active Valid Values: <code>true</code> or <code>false</code>
*/
public void setActive(String active) {
if(active!=null)
this.active = active;
}
/**
* Returns active flag.
*/
public String getActive() {
return active;
}
/**
* @return MainClass
*/
public String getMainClass() {
return mainClass;
}
/**
* @param mainClass
*/
public void setMainClass(String mainClass) {
if(mainClass!=null)
this.mainClass = mainClass;
}
/**
* @return name of the plugin
*/
public String getName() {
return name;
}
/**
* @param name
*/
public void setName(String name) {
if(name!=null)
this.name = name;
}
/**
* Returns class which plugin extends or implements.
* @return type of plugin.
*/
public String getType() {
return type;
}
/**
* @param type of class which plugin extends or implements.
*/
public void setType(String type) {
if(type!=null)
this.type = type;
}
/**
* Returns XML config of this class.
* @since 1.3
*/
public String toXML(String pad) {
if(pad==null) pad="";
StringBuffer sb = new StringBuffer();
sb.append(pad+"<qsadmin-plugin>\n");
sb.append(pad+"\t<name>"+getName()+"</name>\n");
sb.append(pad+"\t<desc>"+getDesc()+"</desc>\n");
sb.append(pad+"\t<type>"+getType()+"</type>\n");
sb.append(pad+"\t<main-class>"+getMainClass()+"</main-class>\n");
sb.append(pad+"\t<active>"+getActive()+"</active>\n");
sb.append(pad+"</qsadmin-plugin>\n");
return sb.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -