com.mentata.sg8
Class SG8ConstantAttribute

java.lang.Object
  extended bycom.mentata.l3d.L3DAttribute
      extended bycom.mentata.sg8.SG8StringAttribute
          extended bycom.mentata.sg8.SG8ConstantAttribute
All Implemented Interfaces:
Comparator, L3DGenerated, SG8Attribute

public class SG8ConstantAttribute
extends SG8StringAttribute
implements L3DGenerated

A constant attribute for use with SG8 objects. This attribute type implements L3DGenerated to reflect a single explicitly defined set of values for all entries.

Since:
0.7
Author:
Jon Roberts

Field Summary
 
Fields inherited from interface com.mentata.sg8.SG8Attribute
TEXT_RESOURCES
 
Constructor Summary
SG8ConstantAttribute(String[] values)
          Creates an empty attribute which will always have the given values.
 
Method Summary
 void generate()
          Generates values by setting them to the constant.
 
Methods inherited from class com.mentata.sg8.SG8StringAttribute
getHTMLValues, getHyperlink, getSeparator, getSG8Object, getUpdateHTML, isAugmenting, isHTMLExceeded, processUpdateHTML, setAugmenting, setHTMLThreshold, setSeparator
 
Methods inherited from class com.mentata.l3d.L3DAttribute
addValue, compare, getAttribute, getBind, getContext, getLabel, getLengthThreshold, getName, getObject, getObject, getPrerequisites, getShortValues, getSize, getThreshold, getValues, initialize, isBound, isExceeded, isGenerated, isLengthExceeded, isMultivalue, isRequired, removeValue, same, setGenerated, setLabel, setLengthThreshold, setPrerequisites, setThreshold, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SG8ConstantAttribute

public SG8ConstantAttribute(String[] values)
Creates an empty attribute which will always have the given values.

Parameters:
values - a set of constant values
Method Detail

generate

public void generate()
Generates values by setting them to the constant.

Specified by:
generate in interface L3DGenerated