PrefixParserDatapublic 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 void | addToParser(com.sun.corba.se.spi.orb.PropertyParser parser)
parser.addPrefix( getPropertyName(), getOperation(), getFieldName(),
componentType ) ;
| public void | addToProperties(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() ) ;
}
|
|