1 7 package com.sun.corba.se.spi.orb ; 8 9 import com.sun.corba.se.impl.orb.NormalParserData ; 10 import com.sun.corba.se.impl.orb.PrefixParserData ; 11 12 public class ParserDataFactory { 13 public static ParserData make( String propertyName, 14 Operation operation, String fieldName, Object defaultValue, 15 Object testValue, String testData ) 16 { 17 return new NormalParserData( propertyName, operation, fieldName, 18 defaultValue, testValue, testData ) ; 19 } 20 21 public static ParserData make( String propertyName, 22 Operation operation, String fieldName, Object defaultValue, 23 Object testValue, StringPair[] testData, Class componentType ) 24 { 25 return new PrefixParserData( propertyName, operation, fieldName, 26 defaultValue, testValue, testData, componentType ) ; 27 } 28 } 29 | Popular Tags |