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

📄 jahiacontainersubdefinition.java

📁 java 写的一个新闻发布系统
💻 JAVA
字号:
////  JahiaContainerSubDefinition//  EV      25.11.2000////  getID//  getPageDefID//  getTitle//  getStructure////  setID//  setTitle//  setStructure//package org.jahia.data.containers;/** * The purpose of this object is to store what page uses a certain container * definition. At least that's what I understand from Eric's code. Title may * vary from original title in sub definition. * * @todo FIND WHAT THIS IS FOR ... */import java.util.*;                     // Vectorimport org.jahia.utils.*;           // JahiaConsoleimport org.jahia.exceptions.*;      // JahiaExceptionpublic class JahiaContainerSubDefinition {    private int     ID;    private int 	ctnDefID;    private int     pageDefID;    private String  title;    private Vector  structure;    /***        * constructor        * EV    13.02.2001        *        */    public JahiaContainerSubDefinition( int     ID,                                        int 	ctnDefID,                                        int     pageDefID,                                        String  title,                                        Vector  structure )    throws JahiaException    {        this.ID             = ID;        this.ctnDefID		= ctnDefID;        this.pageDefID      = pageDefID;        this.title          = title;        this.structure      = structure;    } // end constructor    /***        * constructor        * EV    13.02.2001        *        */    public JahiaContainerSubDefinition( int     ID,                                        int     pageDefID,                                        String  title,                                        Vector  structure )    throws JahiaException    {        this.ID             = ID;        this.ctnDefID		= 0;        this.pageDefID      = pageDefID;        this.title          = title;        this.structure      = structure;    } // end constructor    /***        * accessor methods        * EV    25.11.2000        *        */    public  int     getID()                 {   return ID;              }    public	int		getCtnDefID()			{ 	return ctnDefID;		}    public  int     getPageDefID()          {   return pageDefID;       }    public  String  getTitle()              {   return title;           }    public  Vector  getStructure()          {   return structure;       }    public void setID( int ID ) { this.ID = ID; }    public void setTitle( String value ) { this.title = value; }    public void setStructure( Vector structure ) { this.structure = structure; }    public void composeStructure( Vector struct )    throws JahiaException    {        this.structure = new Vector();        if (struct != null) {            for (int i=0; i < struct.size(); i++)            {                this.structure.add( new JahiaContainerStructure(                                    (String)struct.elementAt(i), this.getID(), i, pageDefID ) );            }        }    }    // end accessor methods} // end JahiaContainerSubDefinition

⌨️ 快捷键说明

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