story.dbcore.attributes
Class ParameterSetAttribute

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

public class ParameterSetAttribute
extends Attribute

Attribute concretizing Attribute abstract class for attributes that are parameters.

Important: For this attribute, null values are supported. They are parsed from the null string ("") and are serialized back as the same "". This should be semantically interpreted as "no ParameterSet has been set," which is distinct from an empty ParameterSet, which is parsed from "<>" and serialized back as "<>".


Constructor Summary
ParameterSetAttribute()
          Constructor with no initial value.
ParameterSetAttribute(AttributeValue value)
          Constructor with initial value.
 
Method Summary
 boolean equals(AttributeValue other)
          Determines whether one ParameterSetAttribute attribute is equal to another.
 boolean greaterThan(AttributeValue other)
          Determines whether the attribute is greater than another attribute.
 int maxLength()
          All extending classes must report their maximum length.
 AttributeValue value()
          Serialize the attribute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterSetAttribute

public ParameterSetAttribute()
Constructor with no initial value.


ParameterSetAttribute

public ParameterSetAttribute(AttributeValue value)
                      throws Scheherexception
Constructor with initial value. Will parse serialized ParameterSets and adopt sets already in ParameterSet objects.

Throws:
Scheherexception
Method Detail

value

public AttributeValue value()
                     throws Scheherexception
Serialize the attribute.

Throws:
Scheherexception

greaterThan

public boolean greaterThan(AttributeValue other)
                    throws Scheherexception
Determines whether the attribute is greater than another attribute. But since this required function doesn't make sense in the context of ParameterSets, throw an exception.

Specified by:
greaterThan in class Attribute
Throws:
Scheherexception

equals

public boolean equals(AttributeValue other)
               throws Scheherexception
Determines whether one ParameterSetAttribute attribute is equal to another. TODO: this.

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.