com.nearform.patrun
Class Pattern

java.lang.Object
  extended by com.nearform.patrun.Pattern

public class Pattern
extends Object

Represents a data Node within the patrun decision tree


Constructor Summary
Pattern(Map<String,String> pattern, Object data, Modifier modifier)
          Construct an instance of Pattern
 
Method Summary
 Object getData()
          Get the data object for this item
 Map<String,String> getMatch()
          Get the pattern for this item
 Modifier getModifier()
          Get the custom modifier for this item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pattern

public Pattern(Map<String,String> pattern,
               Object data,
               Modifier modifier)
Construct an instance of Pattern

Parameters:
pat - the pattern for this node
data - the data store for this pattern
Method Detail

getData

public Object getData()
Get the data object for this item

Returns:
the data object

getModifier

public Modifier getModifier()
Get the custom modifier for this item

Returns:
the custom modifier object

getMatch

public Map<String,String> getMatch()
Get the pattern for this item

Returns:
the pattern Map


Copyright © 2015. All rights reserved.