prefixparserdata.java
来自「JAVA 所有包」· Java 代码 · 共 49 行
JAVA
49 行
/* * @(#)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 + =
减小字号Ctrl + -
显示快捷键?