story.scheherazade.attributes
Class TimelineTimeAttribute

java.lang.Object
  extended by story.dbcore.attributes.Attribute
      extended by story.scheherazade.attributes.TimelineTimeAttribute

public class TimelineTimeAttribute
extends Attribute

Attribute encoding the time at which a timeline takes place.

Note to self: This is a good template for future occasions where attributes need to be made out of application-specific classes. Maybe make an interface or abstract class out of it?


Constructor Summary
TimelineTimeAttribute()
          Constructor without default value.
TimelineTimeAttribute(AttributeValue value)
          Constructor with initial value.
 
Method Summary
 boolean equals(AttributeValue otherValue)
          Determines whether the TimelineTime equals some other TimelineTime (case sensitive).
 boolean greaterThan(AttributeValue otherValue)
          Determines whether the TimelineTime is greater than another
 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

TimelineTimeAttribute

public TimelineTimeAttribute()
Constructor without default value.


TimelineTimeAttribute

public TimelineTimeAttribute(AttributeValue value)
                      throws Scheherexception
Constructor with initial value.

Throws:
Scheherexception
Method Detail

greaterThan

public boolean greaterThan(AttributeValue otherValue)
                    throws Scheherexception
Determines whether the TimelineTime is greater than another

Specified by:
greaterThan in class Attribute
Throws:
Scheherexception

equals

public boolean equals(AttributeValue otherValue)
               throws Scheherexception
Determines whether the TimelineTime equals some other TimelineTime (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.