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