public final class

PropertyTypeString

extends Object
implements IPropertyTypeString
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.properties.impl.PropertyTypeString

Summary

Public Methods
static PropertyTypeString create(String s)
static PropertyTypeString create()
Define a string property that defaults to the empty string.
static PropertyTypeString create(int min, int max, String def)
boolean equals(Object obj)
String getDefault()
Get the default value.
int getMaxLength()
Get the maximum allowed string length.
int getMinLength()
Get the minimum allowed string length.
String getName()
Get the type name.
int hashCode()
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
From interface com.pnfsoftware.jeb.core.properties.IPropertyTypeString

Public Methods

public static PropertyTypeString create (String s)

public static PropertyTypeString create ()

Define a string property that defaults to the empty string.

public static PropertyTypeString create (int min, int max, String def)

public boolean equals (Object obj)

public String getDefault ()

Get the default value.

Returns
  • the default value, cannot be null

public int getMaxLength ()

Get the maximum allowed string length.

Returns
  • the maximum length

public int getMinLength ()

Get the minimum allowed string length.

Returns
  • the minimum length

public String getName ()

Get the type name.

public int hashCode ()

public String toString ()

public boolean validate (Object value)

Validate a property value.

Parameters
value the property value
Returns
  • true on success