story.dbcore.attributes
Class TextField

java.lang.Object
  extended by story.dbcore.attributes.Attribute
      extended by story.dbcore.attributes.TextField

public class TextField
extends Attribute

Attribute for text fields (i.e, Strings).

Returns Strings.


Constructor Summary
TextField()
          Constructor without maximum field length or initial value.
TextField(AttributeValue value)
          Constructor without maximum field length but with initial value.
TextField(int maxLength)
          Constructor with maximum field length but no initial value.
TextField(int maxLength, AttributeValue value)
          Constructor with maximum field length and initial value.
 
Method Summary
 boolean equals(AttributeValue otherValue)
          Determines whether the text equals another attribute value (case sensitive).
 boolean greaterThan(AttributeValue otherValue)
          Determines whether the text is greater than another value, lexiographically (case sensitive).
 int maxLength()
          All extending classes must report their maximum length.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextField

public TextField()
Constructor without maximum field length or initial value. Default is 500 characters.


TextField

public TextField(AttributeValue value)
          throws Scheherexception
Constructor without maximum field length but with initial value. Default is 500 characters.

Throws:
Scheherexception

TextField

public TextField(int maxLength)
          throws Scheherexception
Constructor with maximum field length but no initial value.

Throws:
Scheherexception

TextField

public TextField(int maxLength,
                 AttributeValue value)
          throws Scheherexception
Constructor with maximum field length and initial value.

Throws:
Scheherexception
Method Detail

greaterThan

public boolean greaterThan(AttributeValue otherValue)
                    throws Scheherexception
Determines whether the text is greater than another value, lexiographically (case sensitive).

Specified by:
greaterThan in class Attribute
Throws:
Scheherexception

equals

public boolean equals(AttributeValue otherValue)
               throws Scheherexception
Determines whether the text equals another attribute value (case sensitive).

Specified by:
equals in class Attribute
Throws:
Scheherexception

maxLength

public int maxLength()
Description copied from class: Attribute
All extending classes must report their maximum length.

Specified by:
maxLength in class Attribute


Copyright © 2011 David K. Elson. All Rights Reserved.