📄 property.java
字号:
/** * Copyright 2004 by Irian Marinschek & Spiegl Software OEG */package org.apache.myfaces.config.impl.digester.elements;import java.util.List;import java.util.ArrayList;import java.util.Iterator;import java.util.Collections;/** * @author Martin Marinschek * @version $Revision: 1.1 $ $Date: 2005/03/04 00:28:45 $ * The "property" element represents a JavaBean property of the Java class represented by our parent element. Property names must be unique within the scope of the Java class that is represented by the parent element, and must correspond to property names that will be recognized when performing introspection against that class via java.beans.Introspector. <!ELEMENT property (description*, display-name*, icon*, property-name, property-class, default-value?, suggested-value?, property-extension*)> * <p/> * $Log: Property.java,v $ * Revision 1.1 2005/03/04 00:28:45 mmarinschek * Changes in configuration due to missing Attribute/Property classes for the converter; not building in the functionality yet except for part of the converter properties * */public class Property{ private List _description; private List _displayName; private List _icon; private String _propertyName; private String _propertyClass; private String _defaultValue; private String _suggestedValue; private List _propertyExtension; public void addDescription(String value) { if(_description == null) _description = new ArrayList(); _description.add(value); } public Iterator getDescriptions() { if(_description==null) return Collections.EMPTY_LIST.iterator(); return _description.iterator(); } public void addDisplayName(String value) { if(_displayName == null) _displayName = new ArrayList(); _displayName.add(value); } public Iterator getDisplayNames() { if(_displayName==null) return Collections.EMPTY_LIST.iterator(); return _displayName.iterator(); } public void addIcon(String value) { if(_icon == null) _icon = new ArrayList(); _icon.add(value); } public Iterator getIcons() { if(_icon==null) return Collections.EMPTY_LIST.iterator(); return _icon.iterator(); } public void setPropertyName(String propertyName) { _propertyName = propertyName; } public String getPropertyName() { return _propertyName; } public void setPropertyClass(String propertyClass) { _propertyClass = propertyClass; } public String getPropertyClass() { return _propertyClass; } public void setDefaultValue(String defaultValue) { _defaultValue = defaultValue; } public String getDefaultValue() { return _defaultValue; } public void setSuggestedValue(String suggestedValue) { _suggestedValue = suggestedValue; } public String getSuggestedValue() { return _suggestedValue; } public void addPropertyExtension(String propertyExtension) { if(_propertyExtension == null) _propertyExtension = new ArrayList(); _propertyExtension.add(propertyExtension); } public Iterator getPropertyExtensions() { if(_propertyExtension==null) return Collections.EMPTY_LIST.iterator(); return _propertyExtension.iterator(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -