de.fhdarmstadt.fbi.dtree.model
Interface RegularPattern

All Known Implementing Classes:
NodePattern, SimplePattern

public interface RegularPattern

Defines a regular pattern in an arbitary synatx.


Method Summary
 boolean equals(java.lang.Object o)
          Checks, whether a certain object is equal to this pattern.
 Classification getClassification()
          Returns the classification for this pattern.
 java.lang.String getPattern()
          Returns a regular pattern in Perl syntax.
 

Method Detail

getClassification

public Classification getClassification()
Returns the classification for this pattern. The pattern classification defines, whether this pattern detects positive or negative matches.

Returns:
the classification, either Classification.POSITIVE or Classification.NEGATIVE, never Classfication.UNKNOWN or null.

equals

public boolean equals(java.lang.Object o)
Checks, whether a certain object is equal to this pattern. The test should return true, if the pattern and the classification are equal.

Parameters:
o - the pattern.
Returns:
true, if the given object is a pattern and is equal to this pattern.

getPattern

public java.lang.String getPattern()
Returns a regular pattern in Perl syntax.

Returns:
the pattern as string.
See Also:
Pattern