1 7 8 package com.sun.corba.se.impl.orb ; 9 10 import java.util.Properties ; 11 12 import com.sun.corba.se.spi.orb.Operation ; 13 14 public class NormalParserAction extends ParserActionBase { 15 public NormalParserAction( String propertyName, 16 Operation operation, String fieldName ) 17 { 18 super( propertyName, false, operation, fieldName ) ; 19 } 20 21 25 public Object apply( Properties props ) 26 { 27 Object value = props.getProperty( getPropertyName() ) ; 28 if (value != null) 29 return getOperation().operate( value ) ; 30 else 31 return null ; 32 } 33 } 34 35 | Popular Tags |