org.aitools.programd.graph
Class Match

java.lang.Object
  extended by org.aitools.programd.graph.Match

public class Match
extends java.lang.Object

Match implements an object to store the results of matching, most notably the stacks resulting from multiple input/that/topic wildcards.


Field Summary
private  java.lang.String botid
          The botid part of the matched path.
private  java.util.ArrayList<java.lang.String> inputStars
          The portions of the input captured by wildcards.
private  Nodemapper nodemapper
          The nodemapper that resulted from this match.
private  java.lang.String pattern
          The pattern part of the matched path.
static java.lang.String SPACE
          A space.
private static java.lang.String SPACED_PATH_SEPARATOR
          The string used to separate path components.
private  java.lang.String that
          The that part of the matched path.
private  java.util.ArrayList<java.lang.String> thatStars
          The portions of the <that/> captured by wildcards.
private  java.lang.String topic
          The topic part of the matched path.
private  java.util.ArrayList<java.lang.String> topicStars
          The portions of the <topic/> name captured by wildcards.
 
Constructor Summary
Match()
           
 
Method Summary
 java.lang.String getFileName()
          Gets the filename from which the <template/> originally came.
 java.util.ArrayList<java.lang.String> getInputStars()
          Returns the input stars.
 Nodemapper getNodemapper()
          Returns the match-resulting nodemapper.
 java.lang.String getPath()
          Returns the match path.
 java.lang.String getPattern()
          Returns the pattern part of the matched path.
 java.lang.String getTemplate()
          Gets the template attached to this node.
 java.lang.String getThat()
          Returns the that part of the matched path.
 java.util.ArrayList<java.lang.String> getThatStars()
          Returns the <that/> stars.
 java.lang.String getTopic()
          Returns the topic part of the matched path.
 java.util.ArrayList<java.lang.String> getTopicStars()
          Returns the <topic/> stars.
 void pushInputWildcardContent(java.lang.String string)
          Pushes a new input star onto the input stack.
 void pushThatWildcardContent(java.lang.String string)
          Pushes a new that star onto the thatstar stack.
 void pushTopicWildcardContent(java.lang.String string)
          Pushes a new topic star onto the topicstar stack.
 void setBotID(java.lang.String string)
          Sets the botid part of the matched path.
 void setNodemapper(Nodemapper nodemapperToSet)
          Set the match-resulting nodemapper.
 void setPattern(java.lang.String string)
          Sets the pattern part of the matched path.
 void setThat(java.lang.String string)
          Sets the that part of the matched path.
 void setTopic(java.lang.String string)
          Sets the topic part of the matched path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputStars

private java.util.ArrayList<java.lang.String> inputStars
The portions of the input captured by wildcards.


thatStars

private java.util.ArrayList<java.lang.String> thatStars
The portions of the <that/> captured by wildcards.


topicStars

private java.util.ArrayList<java.lang.String> topicStars
The portions of the <topic/> name captured by wildcards.


pattern

private java.lang.String pattern
The pattern part of the matched path.


that

private java.lang.String that
The that part of the matched path.


topic

private java.lang.String topic
The topic part of the matched path.


botid

private java.lang.String botid
The botid part of the matched path.


nodemapper

private Nodemapper nodemapper
The nodemapper that resulted from this match.


SPACE

public static final java.lang.String SPACE
A space.

See Also:
Constant Field Values

SPACED_PATH_SEPARATOR

private static final java.lang.String SPACED_PATH_SEPARATOR
The string used to separate path components.

See Also:
Constant Field Values
Constructor Detail

Match

public Match()
Method Detail

pushInputWildcardContent

public void pushInputWildcardContent(java.lang.String string)
Pushes a new input star onto the input stack.

Parameters:
string - the string to push onto the input stack

pushThatWildcardContent

public void pushThatWildcardContent(java.lang.String string)
Pushes a new that star onto the thatstar stack.

Parameters:
string - the string to push onto the thatstar stack

pushTopicWildcardContent

public void pushTopicWildcardContent(java.lang.String string)
Pushes a new topic star onto the topicstar stack.

Parameters:
string - the string to push onto the topicstar stack

setPattern

public void setPattern(java.lang.String string)
Sets the pattern part of the matched path.

Parameters:
string - the pattern part of the matched path

setThat

public void setThat(java.lang.String string)
Sets the that part of the matched path.

Parameters:
string - the that part of the matched path

setTopic

public void setTopic(java.lang.String string)
Sets the topic part of the matched path.

Parameters:
string - the topic part of the matched path

setBotID

public void setBotID(java.lang.String string)
Sets the botid part of the matched path.

Parameters:
string - the botid part of the matched path

setNodemapper

public void setNodemapper(Nodemapper nodemapperToSet)
Set the match-resulting nodemapper.

Parameters:
nodemapperToSet - the match-resulting nodemapper

getPattern

public java.lang.String getPattern()
Returns the pattern part of the matched path.

Returns:
the pattern part of the matched path

getThat

public java.lang.String getThat()
Returns the that part of the matched path.

Returns:
the that part of the matched path

getTopic

public java.lang.String getTopic()
Returns the topic part of the matched path.

Returns:
the topic part of the matched path

getPath

public java.lang.String getPath()
Returns the match path.

Returns:
the match path

getNodemapper

public Nodemapper getNodemapper()
Returns the match-resulting nodemapper.

Returns:
the match-resulting nodemapper

getTemplate

public java.lang.String getTemplate()
Gets the template attached to this node.

Returns:
the <template/> attached to this node

getFileName

public java.lang.String getFileName()
Gets the filename from which the <template/> originally came.

Returns:
the filename from which the <template/> originally came

getInputStars

public java.util.ArrayList<java.lang.String> getInputStars()
Returns the input stars.

Returns:
the input stars

getThatStars

public java.util.ArrayList<java.lang.String> getThatStars()
Returns the <that/> stars.

Returns:
the <that/> stars

getTopicStars

public java.util.ArrayList<java.lang.String> getTopicStars()
Returns the <topic/> stars.

Returns:
the <topic/> stars