public class MatchRule
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MatchRule.Mode |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
mode |
java.lang.String |
pattern |
Constructor and Description |
---|
MatchRule() |
MatchRule(MatchRule o)
Copy constructor
|
MatchRule(java.lang.String pattern,
java.lang.String mode) |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this MatchRule.
|
static MatchRule |
fromString(java.lang.String s)
String representation of this MatchRule.
|
java.lang.String |
getMode() |
MatchRule.Mode |
getModeAsEnum() |
java.lang.String |
getPattern()
If null, property name is used
|
static boolean |
isA(java.lang.String str,
MatchRule.Mode item) |
static boolean |
isOneOf(java.lang.String str,
MatchRule.Mode... items) |
MatchRule |
makeCopy()
Creates and returns a deep copy of this MatchRule.
|
static MatchRule |
readFrom(java.io.InputStream is)
Read this MatchRule from an XML fragment.
|
void |
setMode(MatchRule.Mode item) |
void |
setMode(java.lang.String mode) |
void |
setPattern(java.lang.String pattern)
If null, property name is used
|
java.lang.String |
toString()
String representation of this MatchRule.
|
MatchRule |
withMode(java.lang.String mode) |
MatchRule |
withPattern(java.lang.String pattern) |
void |
writeTo(java.io.OutputStream os)
Write this MatchRule as an XML fragment
|
public MatchRule()
public MatchRule(java.lang.String pattern, java.lang.String mode)
public MatchRule(MatchRule o)
public static boolean isA(java.lang.String str, MatchRule.Mode item)
public static boolean isOneOf(java.lang.String str, MatchRule.Mode... items)
public void setMode(MatchRule.Mode item)
public MatchRule.Mode getModeAsEnum()
public void setPattern(java.lang.String pattern)
public java.lang.String getPattern()
public MatchRule withPattern(java.lang.String pattern)
public void setMode(java.lang.String mode)
public java.lang.String getMode()
public MatchRule withMode(java.lang.String mode)
public MatchRule makeCopy()
public static MatchRule readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static MatchRule fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.