📄 category.java
字号:
/*
* @author : Neelesh
* @Version : 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the File : Category.java
* Creation/Modification History :
*
* Neelesh 27-Dec-2002 Created
*
*/
package oracle.otnsamples.vsm.services.data;
import java.io.Serializable;
/**
* The class is a value object for category, and has getters and setters for
* id,name and attributes
*
* @author Neelesh
* @version 1.0
*/
public class Category implements Serializable {
private String id; // id of the category
private String langId;
private String name; // category name
private String[] attributes; // category attributes
/**
* Constructor with initializers
*
* @param <b>id</b>-long category id
* @param <b>name</b> - string category name
* @param <b>attribs</b> - string array of category attributes
*/
public Category(String id, String name, String langId, String[] attributes) {
this.id = id;
this.name = name;
this.langId = langId;
this.attributes = attributes;
}
/**
* Default cosntructor
*/
public Category() {
}
/**
* Sets the attributes
*
* @param <b>attribs</b> attribs
*/
public void setAttributes(String[] attribs) {
attributes = attribs;
}
/**
* Gets the name
*
* @return <b>String</b> name
*/
public String getName() {
return name;
}
/**
* Gets the attributes
*
* @return <b>String[]</b> attributes
*/
public String[] getAttributes() {
return attributes;
}
/**
* Sets the id
*
* @param <b>id</b> id
*/
public void setId(String id) {
this.id = id;
}
/**
* Sets the language id
*
* @param <b>id</b> id
*/
public void setLangId(String id) {
langId = id;
}
/**
* Sets the name
*
* @param <b>name</b> category name
*/
public void setName(String name) {
this.name = name;
}
/**
* Gets the id
*
* @return <b>String</b> id
*/
public String getId() {
return id;
}
/**
* Gets the language id
*
* @return <b>String</b> id
*/
public String getLangId() {
return langId;
}
/**
* Gets the unique id for this category and language
*/
/* public String getCatID() {
return catID;
}
*/
/**
* Sets the unique id for this category and language
*/
/* public void setCatID(String cID) {
catID = cID;
}
*/
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -