public class PatternRule extends java.lang.Object implements TypeRule
TypeRule.ComparisonOperator, TypeRule.LogicalOperator
Constructor and Description |
---|
PatternRule(java.lang.String regexp)
Constructs a new PatternRule.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(SchemaVisitor schemaVisitor) |
java.util.regex.Pattern |
getPattern() |
java.lang.String |
getPatternStr() |
public PatternRule(java.lang.String regexp)
regexp
- the regular expression that describes the pattern.public java.util.regex.Pattern getPattern()
public java.lang.String getPatternStr()
public void accept(SchemaVisitor schemaVisitor) throws XMPSchemaException
accept
in interface TypeRule
schemaVisitor
- a visitor that implements the SchemaVisitor
-interfaceXMPSchemaException
TypeRule.accept(com.adobe.xmp.schema.model.SchemaVisitor)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"