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

📄 prefixparserdata.java

📁 JAVA 所有包
💻 JAVA
字号:
/* * @(#)PrefixParserData.java	1.8 05/11/17 *  * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.impl.orb ;import java.util.Properties ;import com.sun.corba.se.spi.orb.StringPair ;import com.sun.corba.se.spi.orb.Operation ;import com.sun.corba.se.spi.orb.PropertyParser ;public class PrefixParserData extends ParserDataBase {    private StringPair[] testData ;    private Class componentType ;    public PrefixParserData( String  propertyName,	Operation operation, String fieldName, Object defaultValue,	Object testValue, StringPair[] testData, Class componentType )    {	super( propertyName, operation, fieldName, defaultValue, testValue ) ;	this.testData = testData ;	this.componentType = componentType ;    }    public void addToParser( PropertyParser parser )     {	parser.addPrefix( getPropertyName(), getOperation(), getFieldName(), 	    componentType ) ;    }    public void addToProperties( Properties props )     {	for (int ctr=0; ctr<testData.length; ctr++) {	    StringPair sp = testData[ctr] ;	    String propName = getPropertyName() ;	    if (propName.charAt( propName.length() - 1 ) != '.')		propName += "." ;	    props.setProperty( propName + sp.getFirst(), sp.getSecond() ) ;	}    }}

⌨️ 快捷键说明

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