contentitem.java

来自「java案例开发一书的源代码」· Java 代码 · 共 58 行

JAVA
58
字号
/* * Content.java * * Created on 2003年11月5日, 下午4:15 */package romulus;/** * This class is used to describe the base interface of any type of content item. * @author  Romulus * @version 1.0 */public interface ContentItem extends RomulusNode{        public static String Str_Type_ImageContent = "lmage Content";        public static String Str_Type_TextContent = "Text Content";        public static String Str_Type_EmTextContent = "Emphatic Text Content";        public static int Int_Type_ImageContent = 1;        public static int Int_Type_TextContent = 2;        public static int Int_Type_EmTextContent = 4;        /**     * Such method is used to get the Str_Type of the content.     * @return Str_Type_XXXContent.     */    public String getStrContentType();        /**     * Such method is used to get the Int_Type of the content.     * @return Int_Type_XXXContent.     */    public int getIntContentType();        /**     * Such type is used to get the actual content Object.     * @return The actual content object. Will be a String or a Image.     */    public Object getContent();        /**     * Get the String description of the Content.     * @return The String can be used to detail the content.     */    public String getString();    /** The method used to accept the Visitor to do something. */    public void Accept(Visitor v) throws java.sql.SQLException, RomulusException;    }

⌨️ 快捷键说明

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