public abstract class AbstractType
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private RegEx |
expression
Represents the regular expression.
|
| Constructor and Description |
|---|
AbstractType()
Constructor for AbstractVariableType, just sets the field.
|
AbstractType(RegEx expression)
Constructor for AbstractVariableType, just sets the field.
|
| Modifier and Type | Method and Description |
|---|---|
RegEx |
getExpression()
Return the field expression.
|
boolean |
matches(java.lang.String value)
Returns
true if passed value matches this type, else false. |
void |
setExpression(RegEx expression) |
abstract java.lang.String |
toStringResolved()
Returns the resolved string of the regexpart, with extensions and withOUT references like
(RE:LABEL).
|
private RegEx expression
public AbstractType()
AbstractType(RegEx expression)
expression - The expression to set.public RegEx getExpression()
public void setExpression(RegEx expression)
expression - the expression to setpublic abstract java.lang.String toStringResolved()
throws ReferenceIsUnresolvedException
ReferenceIsUnresolvedException - If a part is unresolved.public boolean matches(java.lang.String value)
true if passed value matches this type, else false.value -