public final class

PropertyTypeBoolean

extends Object
implements IPropertyTypeBoolean
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.properties.impl.PropertyTypeBoolean

Class Overview

Boolean property type.

Summary

Public Methods
static PropertyTypeBoolean create(Boolean def)
static PropertyTypeBoolean create()
Define a boolean property that defaults to 'false'
Boolean getDefault()
Get the default value.
String toString()
boolean validate(Object value)
Validate a property value.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.properties.IPropertyType

Public Methods

public static PropertyTypeBoolean create (Boolean def)

public static PropertyTypeBoolean create ()

Define a boolean property that defaults to 'false'

Returns
  • the property type

public Boolean getDefault ()

Get the default value.

Returns
  • the default value, cannot be null

public String toString ()

public boolean validate (Object value)

Validate a property value.

Parameters
value the property value
Returns
  • true on success