com.mentata.sg8
Class SG8DnSubsetAttribute
java.lang.Object
com.mentata.l3d.L3DAttribute
com.mentata.l3d.L3DDnAttribute
com.mentata.sg8.SG8DnAttribute
com.mentata.sg8.SG8DnSubsetAttribute
- All Implemented Interfaces:
- Comparator, SG8Attribute
- public class SG8DnSubsetAttribute
- extends SG8DnAttribute
A dn attribute limited to values of another attribute for use with SG8 objects.
In its update form elements, this attribute type restricts selected values to those listed with another distinguished name attribute of the same containing object.
- Since:
- 0.7
- Author:
- Jon Roberts
| Methods inherited from class com.mentata.sg8.SG8DnAttribute |
getHTMLValues, getHyperlink, getMailTo, getSeparator, getSG8Object, getSG8Target, isAugmenting, isHTMLExceeded, setAugmenting, setHTMLThreshold, setSeparator |
| 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 |
SG8DnSubsetAttribute
public SG8DnSubsetAttribute(String target,
String superset)
- Constructs an empty dn attribute with a named target object and superset attribute.
- Parameters:
target - a target SG8 object namesuperset - the name of an attribute from which values are chosen
getUpdateHTML
public String getUpdateHTML()
throws SG8Exception
- Returns HTML form elements for choosing values from the values of the superset attribute.
- Specified by:
getUpdateHTML in interface SG8Attribute- Overrides:
getUpdateHTML in class SG8DnAttribute
- Returns:
- the HTML modification form elements
- Throws:
SG8Exception - if the attribute is generated or a value cannot be populated
processUpdateHTML
public boolean processUpdateHTML(HttpServletRequest req)
throws SG8Exception
- Reads and processes attribute changes from relevant HTML request form parameters.
- Specified by:
processUpdateHTML in interface SG8Attribute- Overrides:
processUpdateHTML in class SG8DnAttribute
- Parameters:
req - a servlet request
- Returns:
- whether the attribute values changed
- Throws:
SG8Exception - if form values are inappropriate or the attribute is generated