private String resolvePropertyValue ( final String name , PROPERTY_TYPE propType , final Properties submittedProperties , final Properties xmlProperties ) { String value = null ; switch ( propType ) { case JOB_PARAMETERS : if ( submittedProperties != null ) { value = submittedProperties . getProperty ( name ) ; } if ( value != null ) { return value ; } break ; case JOB_PROPERTIES : if ( xmlProperties != null ) { value = xmlProperties . getProperty ( name ) ; } if ( value != null ) { return value ; } break ; case SYSTEM_PROPERTIES : value = System . getProperty ( name ) ; if ( value != null ) { return value ; } break ; case PARTITION_PROPERTIES : //We are reusing the submitted props to carry the partition props if ( submittedProperties != null ) { value = submittedProperties . getProperty ( name ) ; } if ( value != null ) { return value ; } break ; } return UNRESOLVED_PROP_VALUE ; }
Gets the value of a property using the property type