Package com.adobe.xmp.schema.model.rules
Class PatternRule
- java.lang.Object
-
- com.adobe.xmp.schema.model.rules.PatternRule
-
- All Implemented Interfaces:
TypeRule,java.io.Serializable
public class PatternRule extends java.lang.Object implements TypeRule
This rule represents a regular expression that has to match with the property value.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.xmp.schema.model.TypeRule
TypeRule.ComparisonOperator, TypeRule.LogicalOperator
-
-
Constructor Summary
Constructors Constructor Description PatternRule(java.lang.String regexp)Constructs a new PatternRule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SchemaVisitor schemaVisitor)java.util.regex.PatterngetPattern()java.lang.StringgetPatternStr()
-
-
-
Method Detail
-
getPattern
public java.util.regex.Pattern getPattern()
- Returns:
- Returns the pattern as Patter-object.
-
getPatternStr
public java.lang.String getPatternStr()
- Returns:
- Returns the pattern a sString.
-
accept
public void accept(SchemaVisitor schemaVisitor) throws XMPSchemaException
- Specified by:
acceptin interfaceTypeRule- Parameters:
schemaVisitor- a visitor that implements theSchemaVisitor-interface- Throws:
XMPSchemaException- See Also:
TypeRule.accept(com.adobe.xmp.schema.model.SchemaVisitor)
-
-