org.apache.oozie.util
Class MappingRule

java.lang.Object
  extended by org.apache.oozie.util.MappingRule

public class MappingRule
extends Object

Class for rule mapping


Constructor Summary
MappingRule(String fromRule, String toRule)
          Maps from source rule to destination rule
 
Method Summary
 String applyRule(String input)
          Applies rules based on the input
 String getFromRule()
          Gets the from rule
 String getToRule()
          Gets the to rule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingRule

public MappingRule(String fromRule,
                   String toRule)
Maps from source rule to destination rule

Parameters:
fromRule - - Rule for which input needs to be matched
toRule - - Rule for value to be returned
Method Detail

getFromRule

public String getFromRule()
Gets the from rule

Returns:

getToRule

public String getToRule()
Gets the to rule

Returns:

applyRule

public String applyRule(String input)
Applies rules based on the input

Parameters:
input -
Returns:


Copyright © 2013 Apache Software Foundation. All Rights Reserved.