KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > orb > NormalParserData


1 /*
2  * @(#)NormalParserData.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
8 package com.sun.corba.se.impl.orb ;
9
10 import java.util.Properties JavaDoc ;
11
12 import com.sun.corba.se.spi.orb.Operation ;
13 import com.sun.corba.se.spi.orb.PropertyParser ;
14
15 public class NormalParserData extends ParserDataBase {
16     private String JavaDoc testData ;
17
18     public NormalParserData( String JavaDoc propertyName,
19     Operation operation, String JavaDoc fieldName, Object JavaDoc defaultValue,
20     Object JavaDoc testValue, String JavaDoc testData )
21     {
22     super( propertyName, operation, fieldName, defaultValue, testValue ) ;
23     this.testData = testData ;
24     }
25     public void addToParser( PropertyParser parser )
26     {
27     parser.add( getPropertyName(), getOperation(), getFieldName() ) ;
28     }
29
30     public void addToProperties( Properties JavaDoc props )
31     {
32     props.setProperty( getPropertyName(), testData ) ;
33     }
34 }
35
36
Popular Tags