📄 category.java
字号:
package cn.pfc.ywt.writer;
/**
* <p>
* Name: Item.java
*
* <p>
* Title: 频道或项目中所属的一个或多个分类
*
* <p>
* Description: 它有一个可选属性或域,该属性是一个用来定义分类法的字符串。 <br>
* 该节点的值是一个正斜杠分割的字符串,它用来在指定的分类法中识别一个分级位置(hierarchic location)。<br>
* 处理器可以为分类的识别建立会话。<br>
* 你可以根据你的需要为不同的域(domain)包含很多category节点,并且可以在相同域的不同部分拥有一个前后参照的item。
*
* <p>
* Copyright: Copyright (c) 2007
*
* <p>
* Company: 北大方正软件技术学院实训基地
*
* @author 杨文通
* @version 1.0
*/
public class Category extends RssElement {
// 域
private String domain;
// 属性
private String attribute;
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
public String getText() {
return attribute;
}
public void setText(String attribute) {
this.attribute = attribute;
}
public Category() {
super();
this.attribute = "";
this.domain = "";
}
public Category(String attribute) {
super();
this.attribute = attribute;
this.domain = "";
}
public Category(String domain, String attribute) {
super();
this.domain = domain;
this.attribute = attribute;
}
@Override
public String toString() {
return "<category"
+ (strNotNull(this.domain).length() == 0 ? "" : "domain=\""
+ this.domain + "\"") + ">"
+ strNotNull(this.attribute) + "</category> ";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -