public final class

PropertyTypeString

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

Class Overview

String property type.

Summary

Public Methods
Object afterRead(IPropertyDefinition def, Object value)
Post-processing to be done after reading a value.
Object beforeWrite(IPropertyDefinition def, Object value)
Pre-processing to be done before storing a value.
static PropertyTypeString create(int min, int max, String def)
static PropertyTypeString create(String s)
static PropertyTypeString create()
Define a string property that defaults to the empty string.
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 Object afterRead (IPropertyDefinition def, Object value)

Post-processing to be done after reading a value. This method should only be called after a successful call to validate(Object).

Parameters
value must not be null

public Object beforeWrite (IPropertyDefinition def, Object value)

Pre-processing to be done before storing a value.

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

public static PropertyTypeString create (String s)

public static PropertyTypeString create ()

Define a string property that defaults to the empty string.

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