FileDocCategorySizeDatePackage
PrefixParserData.javaAPI DocJava SE 5 API1350Fri Aug 26 14:54:28 BST 2005com.sun.corba.se.impl.orb

PrefixParserData

public class PrefixParserData extends ParserDataBase

Fields Summary
private com.sun.corba.se.spi.orb.StringPair[]
testData
private Class
componentType
Constructors Summary
public PrefixParserData(String propertyName, com.sun.corba.se.spi.orb.Operation operation, String fieldName, Object defaultValue, Object testValue, com.sun.corba.se.spi.orb.StringPair[] testData, Class componentType)

	super( propertyName, operation, fieldName, defaultValue, testValue ) ;
	this.testData = testData ;
	this.componentType = componentType ;
    
Methods Summary
public voidaddToParser(com.sun.corba.se.spi.orb.PropertyParser parser)

	parser.addPrefix( getPropertyName(), getOperation(), getFieldName(), 
	    componentType ) ;
    
public voidaddToProperties(java.util.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() ) ;
	}