public class PropertyNameDomain extends AbstractStringDomain
Modifier and Type | Class and Description |
---|---|
static class |
PropertyNameDomain.PropertyName
Defines the set of characters allowed in an object property name.
|
AbstractStringDomain.PatternResolver
Constructor and Description |
---|
PropertyNameDomain()
Creates a new PropertyNameDomain instance.
|
PropertyNameDomain(int minLength,
int maxLength)
Creates a new PropertyNameDomain instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String value)
Returns true if the given value belongs to this domain.
|
String |
getNameChars()
Returns the set of chars allowed in property names for this domain.
|
protected String |
newValue(ResolverContext context,
int length)
Returns a new random string of the given length for this domain.
|
void |
setNameChars(String nameChars)
Changes the set of chars allowed in property names for this domain.
|
candidates, dataValueOf, generateMatchingValues, getCharacters, getLength, getMatching, getNotMatching, matchesPatterns, matchingCandidates, matchingValues, newValues, setExcludedStrings, setMatching, setMatching, setNotMatching, setNotMatching
getExcluded, getLengthRange, getMaxLength, getTypes, initLengthRange, isNotExcluded, setExcluded, setLengthRange, setLengthRange, setLengthRange, setLengthRange, toString, values, valuesEqual
getFormat, setFormat, withFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
arrayOf, arrayOf, arrayOf, contains, containsObject, getType, select, selectValue
public PropertyNameDomain()
public PropertyNameDomain(int minLength, int maxLength)
public void setNameChars(String nameChars)
public String getNameChars()
public boolean contains(String value)
contains
in interface ValueDomain<String>
contains
in class AbstractStringDomain
protected String newValue(ResolverContext context, int length)
newValue
in class AbstractStringDomain
Copyright © 2024 The Cornutum Project. All rights reserved.