public class MediaTypeDomain extends AbstractStringDomain
AbstractStringDomain.PatternResolver
Constructor and Description |
---|
MediaTypeDomain()
Creates a new MediaTypeDomain instance.
|
Modifier and Type | Method and Description |
---|---|
static MediaTypeDomain |
any()
Returns a MediaTypeDomain that contains any media type.
|
static MediaTypeDomain |
except(Set<String> excludedMediaTypes)
Returns a MediaTypeDomain that contains any media type.
|
protected String |
newValue(ResolverContext context,
int length)
Returns a new random string of the given length for this domain.
|
candidates, contains, 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 static MediaTypeDomain any()
public static MediaTypeDomain except(Set<String> excludedMediaTypes)
protected String newValue(ResolverContext context, int length)
newValue
in class AbstractStringDomain
Copyright © 2024 The Cornutum Project. All rights reserved.