Package org.apache.sshd.common
Class Property.Validating<T>
java.lang.Object
org.apache.sshd.common.Property.Validating<T>
- All Implemented Interfaces:
NamedResource,Property<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sshd.common.Property
Property.BaseProperty<T>, Property.BooleanProperty, Property.CharsetProperty, Property.DurationInSecondsProperty, Property.DurationProperty, Property.EnumProperty<T extends Enum<T>>, Property.IntegerProperty, Property.LongProperty, Property.ObjectProperty, Property.StringProperty, Property.Validating<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(PropertyResolver resolver) getName()getOrCustomDefault(PropertyResolver resolver, T defaultValue) getType()voidremove(PropertyResolver resolver) voidset(PropertyResolver resolver, T value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.Property
getOrNull, getRequired
-
Field Details
-
delegate
-
validator
-
-
Constructor Details
-
Validating
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
getType
-
getDefault
- Specified by:
getDefaultin interfaceProperty<T>- Returns:
- The
Optionalpre-defined default value
-
getRequiredDefault
- Specified by:
getRequiredDefaultin interfaceProperty<T>
-
get
-
getOrCustomDefault
- Specified by:
getOrCustomDefaultin interfaceProperty<T>- Parameters:
resolver- ThePropertyResolverto query for the property value.defaultValue- The default value to return if no specific value found in resolver- Returns:
- The resolver's value or specified default if no specific value found in the resolver - regardless of whether there is a default value
-
set
- Specified by:
setin interfaceProperty<T>- Parameters:
resolver- ThePropertyResolverto update with the property value.value- The value to set
-
remove
- Specified by:
removein interfaceProperty<T>- Parameters:
resolver- ThePropertyResolverto remove the property from
-