⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 content.java

📁 《Java案例开发》源代码( 考勤系统的完整实现!) 包括数据库 网络通讯&uml
💻 JAVA
字号:
/* * Content.java * * Created on 2003年11月5日, 下午8:48 */package romulus;/** * This class is used to group the ContentItems. * @author  Romulus * @version 1.0 */public class Content implements RomulusNode{        /** All the content items are in this Vector.*/    private java.util.Vector contentitems = new java.util.Vector();        /** content lable.*/    private String label = null;        /** ident.*/    private String ident = null;        /** Creates a new instance of Content */    Content(String ident, String lable) throws RomulusException{        if(ident == null){            throw new RomulusException(RomulusException.IdentError);        }        this.ident = ident;        this.label = lable;    }        /** get label*/    public String getLable(){        return label;    }        public String getIdent(){        return ident;    }        /**     * Add a content item to the content.     * @param item the content item added.     */    void Add(ContentItem item){        contentitems.add(item);    }        /**     * Remove a content item from the content.     * @param item the item will be removed.     * @return true if content contents such content item.     */    boolean Remove(ContentItem item){        return contentitems.remove(item);    }        /**     * Get the iterator to browse the content.     * @return the iterator.     */    public java.util.Iterator contentItemIterator(){        return contentitems.iterator();    }        /**     * @return the size of the content.     */    public int size(){        return contentitems.size();    }        /** The method used to accept the Visitor to do something. */    public void Accept(Visitor v) throws java.sql.SQLException, RomulusException {        v.VisitContent(this);    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -