-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.Generator,icu.windea.breezeframework.core.component.RandomGenerator
@ComponentParam(name = "length", type = "Int", defaultValue = "0", override = "minLength, maxLength")@ComponentParam(name = "minLength", type = "Int", defaultValue = "0")@ComponentParam(name = "maxLength", type = "Int")@ComponentParam(name = "source", type = "String", defaultValue = "") public class RandomGenerators.RandomStringGenerator extends AbstractRandomGenerator<String>
组件参数说明:
length - 长度。(覆盖最小长度和最大长度)
minLength - 最小长度。
maxLength - 最大长度。
source - 源字符串,生成的字符串的字符会从中随机选取。
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRandomGenerators.RandomStringGenerator.Default
-
Constructor Summary
Constructors Constructor Description RandomGenerators.RandomStringGenerator(Map<String, Object> componentParams)
-
Method Summary
Modifier and Type Method Description final IntegergetLength()final IntegergetMinLength()final IntegergetMaxLength()final StringgetSource()final Map<String, Object>getComponentParams()组件参数。组件参数默认会向下传递。Component parameters. Class<String>getTargetType()目标类型。 StringgetComponentId()RandomGenerators.RandomStringGeneratorcomponentCopy(Map<String, Object> componentParams)根据可选的配置参数,生成指定类型的随机值。 Stringgenerate()根据可选的配置参数,生成指定类型的随机值。 -
Methods inherited from class icu.windea.breezeframework.core.component.RandomGenerators.RandomStringGenerator
equals, hashCode, toString -
Methods inherited from class icu.windea.breezeframework.core.component.Generator
componentEquals, componentHashcode, componentToString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMinLength
final Integer getMinLength()
-
getMaxLength
final Integer getMaxLength()
-
getComponentParams
final Map<String, Object> getComponentParams()
组件参数。组件参数默认会向下传递。
Component parameters. By default, component parameters will pass down.
-
getTargetType
Class<String> getTargetType()
目标类型。
-
getComponentId
String getComponentId()
-
componentCopy
RandomGenerators.RandomStringGenerator componentCopy(Map<String, Object> componentParams)
根据可选的配置参数,生成指定类型的随机值。
-
-
-
-