public class Property
Represents prompted property bound with its definition. Can interact with other properties using common context.
| Constructor and Description |
|---|
Property(PropertyDefinition definition,
PropertyPrompt prompt,
PropertyContext context)
Represents prompted property bound with its definition.
Can interact with other properties using common context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
control() |
PropertyDefinition |
getDefinition() |
java.lang.String |
getDescription() |
boolean |
getEnabled() |
boolean |
getInvalid() |
java.lang.String |
getLabel() |
java.lang.String |
getName() |
boolean |
getOptionalWithValue() |
java.lang.Object |
getOptions() |
boolean |
getRequired() |
PropertyType |
getType() |
java.lang.String |
getValue() |
Property |
other(java.lang.String name) |
java.util.List<com.neva.gradle.fork.config.properties.Property> |
others(java.lang.String pattern) |
void |
setEnabled(boolean p) |
void |
setRequired(boolean p) |
void |
setValue(java.lang.String newValue) |
java.lang.String |
toString() |
void |
toggle() |
void |
toggle(java.lang.String... names) |
void |
toggle(java.util.List<java.lang.String> names) |
void |
toggle(boolean flag,
java.lang.String... names) |
void |
toggle(boolean flag,
java.util.List<java.lang.String> patterns) |
PropertyValidator |
validate() |
public Property(@NotNull
PropertyDefinition definition,
@NotNull
PropertyPrompt prompt,
@NotNull
PropertyContext context)
Represents prompted property bound with its definition. Can interact with other properties using common context.
@NotNull public java.lang.String getName()
@NotNull public java.lang.String getValue()
public void setValue(@NotNull
java.lang.String newValue)
@NotNull public java.lang.String getLabel()
@NotNull public PropertyType getType()
@Nullable public java.lang.Object getOptions()
@NotNull public java.lang.String getDescription()
public boolean getInvalid()
public boolean getEnabled()
public void setEnabled(boolean p)
public boolean getRequired()
public void setRequired(boolean p)
public boolean getOptionalWithValue()
public void control()
@NotNull public PropertyValidator validate()
public void toggle()
public void toggle(@NotNull
java.lang.String... names)
public void toggle(@NotNull
java.util.List<java.lang.String> names)
public void toggle(boolean flag,
@NotNull
java.lang.String... names)
public void toggle(boolean flag,
@NotNull
java.util.List<java.lang.String> patterns)
@NotNull public Property other(@NotNull java.lang.String name)
@NotNull
public java.util.List<com.neva.gradle.fork.config.properties.Property> others(@NotNull
java.lang.String pattern)
@NotNull public java.lang.String toString()
@NotNull public PropertyDefinition getDefinition()