public abstract class AbstractStringDomain extends SequenceDomain<String>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStringDomain(int maxLength)
Creates a new AbstractStringDomain instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Stream<String> |
candidates(ResolverContext context)
Returns a random sequence of possible members of this domain.
|
protected DataValue<String> |
dataValueOf(String value)
Returns a
DataValue for the given value in this domain. |
protected int |
getLength(String value)
Returns the length of the given value.
|
protected String |
newValue(ResolverContext context)
Returns a new random string.
|
protected abstract String |
newValue(ResolverContext context,
int length)
Returns a new random string of the given length for this domain.
|
void |
setExcludedStrings(Set<String> excluded)
Changes the values excluded from this domain.
|
contains, getExcluded, getLengthRange, getMaxLength, getTypes, initLengthRange, isNotExcluded, isRestrictedLength, setExcluded, setLengthRange, setLengthRange, setLengthRange, setLengthRange, toString, values, valuesEqualclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarrayOf, arrayOf, arrayOf, contains, containsObject, select, selectValue, valueOfprotected AbstractStringDomain(int maxLength)
public void setExcludedStrings(Set<String> excluded)
setExcludedStrings in class SequenceDomain<String>protected int getLength(String value)
getLength in class SequenceDomain<String>protected DataValue<String> dataValueOf(String value)
DataValue for the given value in this domain.dataValueOf in class AbstractValueDomain<String>protected String newValue(ResolverContext context)
protected abstract String newValue(ResolverContext context, int length)
protected Stream<String> candidates(ResolverContext context)
candidates in class SequenceDomain<String>Copyright © 2020 The Cornutum Project. All rights reserved.