1. /*
  2. * @(#)ParserDataFactory.java 1.5 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.spi.orb ;
  8. import com.sun.corba.se.impl.orb.NormalParserData ;
  9. import com.sun.corba.se.impl.orb.PrefixParserData ;
  10. public class ParserDataFactory {
  11. public static ParserData make( String propertyName,
  12. Operation operation, String fieldName, Object defaultValue,
  13. Object testValue, String testData )
  14. {
  15. return new NormalParserData( propertyName, operation, fieldName,
  16. defaultValue, testValue, testData ) ;
  17. }
  18. public static ParserData make( String propertyName,
  19. Operation operation, String fieldName, Object defaultValue,
  20. Object testValue, StringPair[] testData, Class componentType )
  21. {
  22. return new PrefixParserData( propertyName, operation, fieldName,
  23. defaultValue, testValue, testData, componentType ) ;
  24. }
  25. }