public class Pattern extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GML_NAMESPACE_PLACEHOLDER
Placeholder for the GML namespace that may be used in patterns
|
Modifier and Type | Method and Description |
---|---|
static Pattern |
and(Pattern... patterns)
Create a pattern that combines multiple patterns with a logical AND.
|
boolean |
isValid()
Determines if the pattern is valid.
|
DefinitionPath |
match(TypeDefinition type,
DefinitionPath path,
String gmlNs)
Matches the type against the encoding pattern.
|
static Pattern |
or(Pattern... patterns)
Create a pattern that combines multiple patterns with a logical OR.
|
static Pattern |
parse(String pattern)
Parse a pattern from the given string.
|
String |
toString() |
public static final String GML_NAMESPACE_PLACEHOLDER
public static Pattern parse(String pattern)
/
. Valid elements are *
(one XML element
with any name), **
(any number of XML elements with any
name) and an XML element name. An XML element name may also include a
namespace, the namespace must be wrapped by quotes ("
). If
no namespace is specified the GML namespace is assumed.pattern
- the pattern stringpublic static Pattern or(Pattern... patterns)
patterns
- the sub-patternspublic static Pattern and(Pattern... patterns)
patterns
- the sub-patternspublic DefinitionPath match(TypeDefinition type, DefinitionPath path, String gmlNs)
type
- the type definitionpath
- the definition pathgmlNs
- the GML namespacenull
otherwisepublic boolean isValid()
public String toString()
toString
in class Object
Object.toString()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a