KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > orb > ParserDataFactory


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
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 JavaDoc propertyName,
14     Operation operation, String JavaDoc fieldName, Object JavaDoc defaultValue,
15     Object JavaDoc testValue, String JavaDoc testData )
16     {
17     return new NormalParserData( propertyName, operation, fieldName,
18         defaultValue, testValue, testData ) ;
19     }
20
21     public static ParserData make( String JavaDoc propertyName,
22     Operation operation, String JavaDoc fieldName, Object JavaDoc defaultValue,
23     Object JavaDoc testValue, StringPair[] testData, Class JavaDoc componentType )
24     {
25     return new PrefixParserData( propertyName, operation, fieldName,
26         defaultValue, testValue, testData, componentType ) ;
27     }
28 }
29
Popular Tags