com.web_visage.spoiler2
Class FeedSpec

java.lang.Object
  extended by com.web_visage.spoiler2.FeedSpec

public class FeedSpec
extends java.lang.Object

Feed specification. Contains feed properties and additional parameters.

Author:
K.Baturytski

Constructor Summary
FeedSpec(java.lang.String name, java.net.URL feedURL, java.util.regex.Pattern newsPattern, java.util.regex.Pattern getPostPattern)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.net.URL getFeedURL()
          Returns the feedURL.
 java.util.regex.Pattern getGetPostPattern()
          Returns the getPostPattern.
 java.lang.String getName()
          Returns the name.
 java.util.regex.Pattern getNewsPattern()
          Returns the newsPattern.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeedSpec

public FeedSpec(java.lang.String name,
                java.net.URL feedURL,
                java.util.regex.Pattern newsPattern,
                java.util.regex.Pattern getPostPattern)
Constructor.

Parameters:
name - - feed name.
feedURL - - feed URL.
newsPattern - - pattern to trigger news output.
getPostPattern - - pattern to trigger post output.
Method Detail

getFeedURL

public java.net.URL getFeedURL()
Returns the feedURL.

Returns:

getGetPostPattern

public java.util.regex.Pattern getGetPostPattern()
Returns the getPostPattern.

Returns:

getNewsPattern

public java.util.regex.Pattern getNewsPattern()
Returns the newsPattern.

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getName

public java.lang.String getName()
Returns the name.

Returns: