wt.eff
Class LeftFilledStringEffRange

java.lang.Object
  extended by wt.eff.LeftFilledStringEffRange
All Implemented Interfaces:
Externalizable, Serializable, EffRange, NetFactor, ObjectMappable

public class LeftFilledStringEffRange
extends Object
implements EffRange, Externalizable

A range that left-fills the start/end values with spaces to ensure that 9 < 10, for example, in a query. In effect the 9 is padded to become 09 and 09 < 10.

Use the newLeftFilledStringEffRange static factory method(s), not the LeftFilledStringEffRange constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
static String END
          Label for the attribute; The end value, constrained as a String that left-fills the value with spaces to ensure proper query (9 < 10).
static String START
          Label for the attribute; The start value, constrained as a String that left-fills the value with spaces to ensure proper query (9 < 10).
 
Method Summary
 Serializable getEnd()
          Gets the value of the attribute: END.
 Serializable getStart()
          Gets the value of the attribute: START.
protected  void initialize(String startValue)
          Supports initialization, following construction of an instance.
protected  void initialize(String startValue, String endValue)
          Supports initialization, following construction of an instance.
static LeftFilledStringEffRange newLeftFilledStringEffRange(String startValue)
          Factory which sets the start value.
static LeftFilledStringEffRange newLeftFilledStringEffRange(String startValue, String endValue)
          Factory which sets the start and end value

Supported API: true
static String removeLeftFill(String value)
          Removes the spaces getStart/getEnd would normally return.
 void setEnd(Serializable a_End)
          Sets the value of the attribute: END.
 void setStart(Serializable a_Start)
          Sets the value of the attribute: START.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

START

public static final String START
Label for the attribute; The start value, constrained as a String that left-fills the value with spaces to ensure proper query (9 < 10). Setter will fill the String, getter wil return the filled String.

Supported API: true

See Also:
Constant Field Values

END

public static final String END
Label for the attribute; The end value, constrained as a String that left-fills the value with spaces to ensure proper query (9 < 10). Setter will fill the String, getter wil return the filled String.

Supported API: true

See Also:
Constant Field Values
Method Detail

getStart

public Serializable getStart()
Gets the value of the attribute: START. The start value, constrained as a String that left-fills the value with spaces to ensure proper query (9 < 10). Setter will fill the String, getter wil return the filled String.

Supported API: true

Specified by:
getStart in interface EffRange
Returns:
Serializable

setStart

public void setStart(Serializable a_Start)
              throws WTPropertyVetoException
Sets the value of the attribute: START. The start value, constrained as a String that left-fills the value with spaces to ensure proper query (9 < 10). Setter will fill the String, getter wil return the filled String.

Supported API: true

Specified by:
setStart in interface EffRange
Parameters:
a_Start -
Throws:
WTPropertyVetoException

getEnd

public Serializable getEnd()
Gets the value of the attribute: END. The end value, constrained as a String that left-fills the value with spaces to ensure proper query (9 < 10). Setter will fill the String, getter wil return the filled String.

Supported API: true

Specified by:
getEnd in interface EffRange
Returns:
Serializable

setEnd

public void setEnd(Serializable a_End)
            throws WTPropertyVetoException
Sets the value of the attribute: END. The end value, constrained as a String that left-fills the value with spaces to ensure proper query (9 < 10). Setter will fill the String, getter wil return the filled String.

Supported API: true

Specified by:
setEnd in interface EffRange
Parameters:
a_End -
Throws:
WTPropertyVetoException

newLeftFilledStringEffRange

public static LeftFilledStringEffRange newLeftFilledStringEffRange(String startValue,
                                                                   String endValue)
                                                            throws WTPropertyVetoException
Factory which sets the start and end value

Supported API: true

Parameters:
startValue -
endValue -
Returns:
LeftFilledStringEffRange
Throws:
WTPropertyVetoException

initialize

protected void initialize(String startValue,
                          String endValue)
                   throws WTPropertyVetoException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
startValue -
endValue -
Throws:
WTPropertyVetoException

newLeftFilledStringEffRange

public static LeftFilledStringEffRange newLeftFilledStringEffRange(String startValue)
                                                            throws WTPropertyVetoException
Factory which sets the start value. The end is left null.

Supported API: true

Parameters:
startValue -
Returns:
LeftFilledStringEffRange
Throws:
WTPropertyVetoException

initialize

protected void initialize(String startValue)
                   throws WTPropertyVetoException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: true

Parameters:
startValue -
Throws:
WTPropertyVetoException

removeLeftFill

public static String removeLeftFill(String value)
Removes the spaces getStart/getEnd would normally return.

Supported API: true

Parameters:
value -
Returns:
String