Package deltix.qsrv.solgen.base
Class Property
- java.lang.Object
-
- deltix.qsrv.solgen.base.Property
-
public class Property extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
defaultValue
protected java.util.List<Property>
dependsOn
protected java.lang.String
doc
protected java.lang.String
name
protected boolean
required
protected java.util.function.BiPredicate<java.lang.String,java.util.Properties>
valueValidator
-
Constructor Summary
Constructors Modifier Constructor Description protected
Property(java.lang.String name, java.lang.String doc, boolean required, java.util.function.BiPredicate<java.lang.String,java.util.Properties> valueValidator, java.lang.String defaultValue, java.util.List<Property> dependsOn)
protected
Property(java.lang.String name, java.lang.String doc, boolean required, java.util.function.Predicate<java.lang.String> valueValidator, java.lang.String defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getDefaultValue()
java.util.List<Property>
getDependencies()
java.lang.String
getDoc()
java.lang.String
getName()
java.util.function.BiPredicate<java.lang.String,java.util.Properties>
getValueValidator()
int
hashCode()
boolean
isDependent()
boolean
isRequired()
boolean
isValid(java.lang.String value, java.util.Properties properties)
-
-
-
Field Detail
-
name
protected final java.lang.String name
-
doc
protected final java.lang.String doc
-
required
protected final boolean required
-
dependsOn
protected final java.util.List<Property> dependsOn
-
valueValidator
protected final java.util.function.BiPredicate<java.lang.String,java.util.Properties> valueValidator
-
defaultValue
protected final java.lang.String defaultValue
-
-
Constructor Detail
-
Property
protected Property(java.lang.String name, java.lang.String doc, boolean required, java.util.function.Predicate<java.lang.String> valueValidator, java.lang.String defaultValue)
-
Property
protected Property(java.lang.String name, java.lang.String doc, boolean required, java.util.function.BiPredicate<java.lang.String,java.util.Properties> valueValidator, java.lang.String defaultValue, java.util.List<Property> dependsOn)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getDoc
public java.lang.String getDoc()
-
isRequired
public boolean isRequired()
-
getValueValidator
public java.util.function.BiPredicate<java.lang.String,java.util.Properties> getValueValidator()
-
getDefaultValue
public java.lang.String getDefaultValue()
-
isValid
public boolean isValid(java.lang.String value, java.util.Properties properties)
-
getDependencies
public java.util.List<Property> getDependencies()
-
isDependent
public boolean isDependent()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-