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()
void
remove
(PropertyResolver resolver) void
set
(PropertyResolver resolver, T value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.sshd.common.Property
getOrNull, getRequired
-
Field Details
-
delegate
-
validator
-
-
Constructor Details
-
Validating
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceNamedResource
- Returns:
- The resource name
-
getType
-
getDefault
- Specified by:
getDefault
in interfaceProperty<T>
- Returns:
- The
Optional
pre-defined default value
-
getRequiredDefault
- Specified by:
getRequiredDefault
in interfaceProperty<T>
-
get
-
getOrCustomDefault
- Specified by:
getOrCustomDefault
in interfaceProperty<T>
- Parameters:
resolver
- ThePropertyResolver
to 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:
set
in interfaceProperty<T>
- Parameters:
resolver
- ThePropertyResolver
to update with the property value.value
- The value to set
-
remove
- Specified by:
remove
in interfaceProperty<T>
- Parameters:
resolver
- ThePropertyResolver
to remove the property from
-