com.ibm.batch.container.modelresolver.impl
Class AbstractPropertyResolver<B>

java.lang.Object
  extended by com.ibm.batch.container.modelresolver.impl.AbstractPropertyResolver<B>
All Implemented Interfaces:
PropertyResolver<B>
Direct Known Subclasses:
BatchletPropertyResolverImpl, CheckpointAlgorithmPropertyResolverImpl, ChunkPropertyResolverImpl, ControlElementPropertyResolverImpl, DecisionPropertyResolverImpl, FlowPropertyResolverImpl, JobPropertyResolverImpl, ListenerPropertyResolverImpl, PartitionMapperPropertyResolverImpl, PartitionPlanPropertyResolverImpl, PartitionPropertyResolverImpl, PartitionReducerPropertyResolverImpl, SplitPropertyResolverImpl, StepPropertyResolverImpl

public abstract class AbstractPropertyResolver<B>
extends Object
implements PropertyResolver<B>


Constructor Summary
AbstractPropertyResolver()
           
 
Method Summary
protected  String replaceAllProperties(String str, Properties submittedProps, Properties xmlProperties)
          Replace all the properties in String str.
protected  Properties resolveElementProperties(List<Property> elementProperties, Properties submittedProps, Properties parentProps)
           
 B substituteProperties(B b)
          Convenience method that is the same as calling substituteProperties(batchElement, null, null)
 B substituteProperties(B b, Properties submittedProps)
          Convenience method that is the same as calling substituteProperties(batchElement, submittedProps, null)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.batch.container.modelresolver.PropertyResolver
substituteProperties
 

Constructor Detail

AbstractPropertyResolver

public AbstractPropertyResolver()
Method Detail

substituteProperties

public B substituteProperties(B b)
Description copied from interface: PropertyResolver
Convenience method that is the same as calling substituteProperties(batchElement, null, null)

Specified by:
substituteProperties in interface PropertyResolver<B>
Returns:

substituteProperties

public B substituteProperties(B b,
                              Properties submittedProps)
Description copied from interface: PropertyResolver
Convenience method that is the same as calling substituteProperties(batchElement, submittedProps, null)

Specified by:
substituteProperties in interface PropertyResolver<B>

resolveElementProperties

protected Properties resolveElementProperties(List<Property> elementProperties,
                                              Properties submittedProps,
                                              Properties parentProps)
Parameters:
elementProperties - xml properties that are direct children of the current element
submittedProps - submitted job properties
parentProps - resolved parent properties
Returns:
the properties associated with this elements scope

replaceAllProperties

protected String replaceAllProperties(String str,
                                      Properties submittedProps,
                                      Properties xmlProperties)
Replace all the properties in String str.

Parameters:
str -
submittedProps -
xmlProperties -
Returns:


Copyright © 2013. All Rights Reserved.