|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.util.parse.metapattern.MetaPattern
org.apache.wicket.util.parse.metapattern.OptionalMetaPattern
public final class OptionalMetaPattern
Makes any MetaPattern optional by enclosing the pattern in an optionality expression. The expression will be something equivalent to "(?:<pattern>)?".
Field Summary |
---|
Fields inherited from class org.apache.wicket.util.parse.metapattern.MetaPattern |
---|
AMPERSAND, ANYTHING, ANYTHING_NON_EMPTY, AT_SIGN, BACKSLASH, COLON, COMMA, DASH, DIGIT, DIGITS, DOLLAR_SIGN, DOT, DOUBLE_QUOTED_STRING, EQUALS, EXCLAMATION_POINT, FLOATING_POINT_NUMBER, HEXADECIMAL_DIGIT, HEXADECIMAL_DIGITS, INTEGER, LEFT_CURLY, LEFT_PAREN, LEFT_SQUARE, MINUS, NON_WORD, OPTIONAL_STRING, OPTIONAL_WHITESPACE, OPTIONAL_WORD, PERCENT, PERL_INTERPOLATION, PIPE, PLUS, POSITIVE_INTEGER, POUND_SIGN, RIGHT_CURLY, RIGHT_PAREN, RIGHT_SQUARE, SEMICOLON, SLASH, STAR, STRING, TILDE, UNDERSCORE, VARIABLE_NAME, WHITESPACE, WORD, XML_ATTRIBUTE_NAME, XML_ELEMENT_NAME |
Constructor Summary | |
---|---|
OptionalMetaPattern(java.util.List patterns)
Constructor |
|
OptionalMetaPattern(MetaPattern pattern)
Constructor |
|
OptionalMetaPattern(MetaPattern[] patterns)
Constructor |
|
OptionalMetaPattern(java.lang.String pattern)
Constructor |
Method Summary | |
---|---|
java.lang.String |
toString()
Converts this MetaPattern to a String. |
Methods inherited from class org.apache.wicket.util.parse.metapattern.MetaPattern |
---|
matcher, matcher, pattern, pattern |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OptionalMetaPattern(java.lang.String pattern)
pattern
- public OptionalMetaPattern(MetaPattern pattern)
pattern
- MetaPattern to make optionalpublic OptionalMetaPattern(java.util.List patterns)
patterns
- public OptionalMetaPattern(MetaPattern[] patterns)
patterns
- Method Detail |
---|
public java.lang.String toString()
MetaPattern
toString
in class MetaPattern
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |