public void setTemplateRule ( TemplateRule templateRule ) { this . templateRule = templateRule ; if ( templateRule != null ) { if ( this . transformType == null ) { setTransformType ( TransformType . TEXT ) ; } if ( templateRule . getEncoding ( ) != null && this . encoding == null ) { this . encoding = templateRule . getEncoding ( ) ; } } }
Sets the template rule .