com.mentata.sg8
Class SG8NestAttribute

java.lang.Object
  extended bycom.mentata.l3d.L3DAttribute
      extended bycom.mentata.l3d.L3DDnAttribute
          extended bycom.mentata.sg8.SG8DnAttribute
              extended bycom.mentata.sg8.SG8NestAttribute
All Implemented Interfaces:
Comparator, SG8Attribute
Direct Known Subclasses:
SG8ReverseNestAttribute

public class SG8NestAttribute
extends SG8DnAttribute

A dn attribute displaying an additional field for use with SG8 objects. For HTML output, values for this attribute type are translated to a list that nests the values of an additional attribute for each matching entry. An instance can represent a tree with recursive descent if the second attribute is also a nest attribute.

Since:
0.7
Author:
Jon Roberts

Field Summary
 
Fields inherited from interface com.mentata.sg8.SG8Attribute
TEXT_RESOURCES
 
Constructor Summary
SG8NestAttribute(String object, String nested)
          Constructs a new nest attribute with a named target object and attribute.
 
Method Summary
 String[] getHTMLValues()
          Returns HTML links with nested attributes.
 
Methods inherited from class com.mentata.sg8.SG8DnAttribute
getHyperlink, getMailTo, getSeparator, getSG8Object, getSG8Target, getUpdateHTML, isAugmenting, isHTMLExceeded, processUpdateHTML, setAugmenting, setHTMLThreshold, setSeparator
 
Methods inherited from class com.mentata.l3d.L3DDnAttribute
getShortValues, getTargetObject, initialize, isLengthExceeded, same
 
Methods inherited from class com.mentata.l3d.L3DAttribute
addValue, compare, getAttribute, getBind, getContext, getLabel, getLengthThreshold, getName, getObject, getObject, getPrerequisites, getSize, getThreshold, getValues, isBound, isExceeded, isGenerated, isMultivalue, isRequired, removeValue, 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

SG8NestAttribute

public SG8NestAttribute(String object,
                        String nested)
Constructs a new nest attribute with a named target object and attribute.

Parameters:
object - the name of the target object
nested - the name of the attribute to include as nested
Method Detail

getHTMLValues

public String[] getHTMLValues()
                       throws SG8Exception
Returns HTML links with nested attributes.

Specified by:
getHTMLValues in interface SG8Attribute
Overrides:
getHTMLValues in class SG8DnAttribute
Returns:
the values formatted as HTML unordered lists
Throws:
SG8Exception - if the target object is improperly defined