org.alicebot.server.core.util
Class Match

java.lang.Object
  extended by org.alicebot.server.core.util.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
static java.lang.String SPACE
          A space.
 
Constructor Summary
Match()
           
 
Method Summary
 java.lang.String getFileName()
          Gets the filename from which the <template/> originally came.
 java.util.ArrayList 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 getThatStars()
          Returns the <that/> stars.
 java.lang.String getTopic()
          Returns the topic part of the matched path.
 java.util.ArrayList getTopicStars()
          Returns the <topic/> stars.
 void pushInputStar(java.lang.String string)
          Pushes a new input star onto the input stack.
 void pushThatStar(java.lang.String string)
          Pushes a new that star onto the thatstar stack.
 void pushTopicStar(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 nodemapper)
          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

SPACE

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

See Also:
Constant Field Values
Constructor Detail

Match

public Match()
Method Detail

pushInputStar

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

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

pushThatStar

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

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

pushTopicStar

public void pushTopicStar(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 nodemapper)
Set the match-resulting nodemapper.

Parameters:
node - 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 getInputStars()
Returns the input stars.

Returns:
the input stars

getThatStars

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

Returns:
the <that/> stars

getTopicStars

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

Returns:
the <topic/> stars