propertylist.java

来自「一个实用工具类」· Java 代码 · 共 68 行

JAVA
68
字号
/* * Copyright (C) butor.com. All rights reserved. * * This software is published under the terms of the GNU Library General * Public License (GNU LGPL), a copy of which has been included with this * distribution in the LICENSE.txt file.  */package org.butor.config.lowlevel;/** * @version 	1.0 * @author Aiman Sawan */public class PropertyList extends PropertyContainer implements IProperties {	/**	 * This config name.	 */	protected String f_name = "";		/**	 * Constructor for GenericConfig.	 */	public PropertyList() {		super();	}	/**	 * Set name.	 * 	 * @param name String, name of the config	 */	public void setName(String name) {		f_name = name;	}	/**	 * Get name.	 * 	 * @return String, name of the config.	 */	public String getName() {		return f_name;	}	/**	 * toString this object content.	 * 	 * @return String.	 */	public String toString() {		StringBuffer buffer = new StringBuffer("\n<-- Property list -->\n");		buffer.append("list name: ");		buffer.append(f_name);		buffer.append("\n");				buffer.append(super.toString());				buffer.append("\n</-- Property list -->\n");		return buffer.toString();	}}

⌨️ 快捷键说明

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