public class MatchingRule
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MatchingRule.Mode |
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_UNPREFIX |
java.lang.String |
mode |
java.lang.String |
pattern |
boolean |
unprefix |
Constructor and Description |
---|
MatchingRule() |
MatchingRule(MatchingRule o)
Copy constructor
|
MatchingRule(java.lang.String pattern,
java.lang.String mode) |
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this MatchingRule.
|
static MatchingRule |
fromString(java.lang.String s)
String representation of this MatchingRule.
|
java.lang.String |
getMode() |
MatchingRule.Mode |
getModeAsEnum() |
java.lang.String |
getPattern()
If null, property name is used
|
static boolean |
isA(java.lang.String str,
MatchingRule.Mode item) |
static boolean |
isOneOf(java.lang.String str,
MatchingRule.Mode... items) |
boolean |
isUnprefix() |
MatchingRule |
makeCopy()
Creates and returns a deep copy of this MatchingRule.
|
static MatchingRule |
readFrom(java.io.InputStream is)
Read this MatchingRule from an XML fragment.
|
void |
setMode(MatchingRule.Mode item) |
void |
setMode(java.lang.String mode) |
void |
setPattern(java.lang.String pattern)
If null, property name is used
|
void |
setUnprefix(boolean unprefix) |
java.lang.String |
toString()
String representation of this MatchingRule.
|
MatchingRule |
withMode(java.lang.String mode) |
MatchingRule |
withPattern(java.lang.String pattern) |
MatchingRule |
withUnprefix(boolean unprefix) |
MatchingRule |
withUnprefix(java.lang.Boolean unprefix) |
void |
writeTo(java.io.OutputStream os)
Write this MatchingRule as an XML fragment
|
public java.lang.String pattern
public java.lang.String mode
public boolean unprefix
public static final boolean DEFAULT_UNPREFIX
public MatchingRule()
public MatchingRule(java.lang.String pattern, java.lang.String mode)
public MatchingRule(MatchingRule o)
public static boolean isA(java.lang.String str, MatchingRule.Mode item)
public static boolean isOneOf(java.lang.String str, MatchingRule.Mode... items)
public void setMode(MatchingRule.Mode item)
public MatchingRule.Mode getModeAsEnum()
public void setPattern(java.lang.String pattern)
public java.lang.String getPattern()
public MatchingRule withPattern(java.lang.String pattern)
public void setMode(java.lang.String mode)
public java.lang.String getMode()
public MatchingRule withMode(java.lang.String mode)
public void setUnprefix(boolean unprefix)
public boolean isUnprefix()
public MatchingRule withUnprefix(boolean unprefix)
public MatchingRule withUnprefix(java.lang.Boolean unprefix)
public MatchingRule makeCopy()
public static MatchingRule 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 MatchingRule 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 © 2021 Dassault Systèmes, All Rights Reserved.