net.sf.webmancer.db
Class StringAttribute

java.lang.Object
  extended by net.sf.webmancer.db.AbstractAttribute
      extended by net.sf.webmancer.db.StringAttribute
All Implemented Interfaces:
IAttribute, IBackEndAttributeInformation, IFrontEndAttributeInformation
Direct Known Subclasses:
RegexAttribute

public class StringAttribute
extends AbstractAttribute

Author:
Michal Burda

Constructor Summary
StringAttribute()
          Constructs the StringAttribute.
 
Method Summary
 java.lang.Object convertDbToInternal(java.lang.Object dbValue)
           
 java.lang.String convertInternalToInput(java.lang.Object internal)
           
 java.lang.String convertInternalToOutput(java.lang.Object internal)
           
 int getMaximumInputLength()
          Returns -1, which means unlimited length of user input.
 void setMaximumInputLength(int maxLength)
          Sets the maximum input length.
 
Methods inherited from class net.sf.webmancer.db.AbstractAttribute
getDescription, getId, getInitialValue, getName, getParentDataSet, isDerived, isInDatabase, isMandatory, isPrimaryKey, preProcessConditionInput, preProcessInput, setDerived, setDescription, setId, setInDatabase, setInitialValue, setMandatory, setName, setParentDataSet, setPrimary, validateInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringAttribute

public StringAttribute()
Constructs the StringAttribute.

Parameters:
id -
Method Detail

setMaximumInputLength

public void setMaximumInputLength(int maxLength)
Sets the maximum input length.

Parameters:
maxLength - the maximum input length to set

getMaximumInputLength

public int getMaximumInputLength()
Description copied from class: AbstractAttribute
Returns -1, which means unlimited length of user input.

Specified by:
getMaximumInputLength in interface IFrontEndAttributeInformation
Overrides:
getMaximumInputLength in class AbstractAttribute
Returns:
the maximum allowed length of user input string or negative value for unlimited lenght.
See Also:
AbstractAttribute.getMaximumInputLength()

convertInternalToInput

public java.lang.String convertInternalToInput(java.lang.Object internal)
Specified by:
convertInternalToInput in interface IFrontEndAttributeInformation
Specified by:
convertInternalToInput in class AbstractAttribute
Returns:
See Also:
AbstractAttribute.convertInternalToInput(java.lang.Object)

convertInternalToOutput

public java.lang.String convertInternalToOutput(java.lang.Object internal)
Specified by:
convertInternalToOutput in interface IFrontEndAttributeInformation
Specified by:
convertInternalToOutput in class AbstractAttribute
Returns:
See Also:
AbstractAttribute.convertInternalToOutput(java.lang.Object)

convertDbToInternal

public java.lang.Object convertDbToInternal(java.lang.Object dbValue)
Specified by:
convertDbToInternal in interface IBackEndAttributeInformation
Specified by:
convertDbToInternal in class AbstractAttribute
Returns:
See Also:
AbstractAttribute.convertDbToInternal(java.lang.Object)


Copyright © 2006-2007. All Rights Reserved.