|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.stanwood.media.source.xbmc.XBMCExpression
public class XBMCExpression
This class is used to store details about a XBMC regular expression entry from the XML
Constructor Summary | |
---|---|
XBMCExpression()
|
Method Summary | |
---|---|
boolean |
getClear()
Used to find out if the dest field should be cleared when a expression fails |
boolean |
getNoClean(int field)
Used to find out if a field should not be cleaned |
java.util.regex.Pattern |
getPattern()
Used to get the pattern as a have REGEXP pattern |
boolean |
getRepeat()
Used to work out if the expression should match until it does not match |
boolean |
getTrim(int field)
Used to find out if a field should be trimmed. |
void |
setClear(boolean clear)
If set to true, then if the expression fails the dest field is clear |
void |
setNoClean(java.lang.String value)
By default HTML tags and special characters are stripped from the matches. |
void |
setPattern(java.util.regex.Pattern pattern)
Used to set the REGEXP pattern of the expression |
void |
setRepeat(boolean repeat)
Used to set if the expression should match until it does not match |
void |
setTrim(java.lang.String value)
trim white spaces from the end of matches |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XBMCExpression()
Method Detail |
---|
public java.util.regex.Pattern getPattern()
public void setPattern(java.util.regex.Pattern pattern)
pattern
- the REGEXP pattern of the expressionpublic boolean getNoClean(int field)
field
- The field to check
public boolean getTrim(int field)
field
- The field to check
public boolean getClear()
public void setClear(boolean clear)
clear
- If set to true, then if the expression fails the dest field is clearpublic void setNoClean(java.lang.String value)
value
- A comma separated list of field numbers that should not be cleanedpublic void setTrim(java.lang.String value)
value
- A comma separated list of field numbers that should trimmedpublic boolean getRepeat()
public void setRepeat(boolean repeat)
repeat
- True to keep matchingpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |