|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.DataElement
com.ibm.btt.base.DataCollection
com.ibm.btt.base.IndexedCollection
com.ibm.btt.automaton.html.HtmlIndexedCollection
public class HtmlIndexedCollection
This is a special untyped IndexedCollection (i.e. with no descriptor) to validate fields coming from a HTML browser. The infrastructure finds out that certain data elements coming in the request data belong to an IndexedCollection. Then, a Vector of DataFields are passed to this instance of HtmlIndexedCollection in order to validate that the DataFields contain elements that have been defined in the IndexedCollection. The actual object inside the DataFields is a final object inside the data structure defined inside the IndexedCollection. Since this structure may be complex, it may contain nested KeyedCollections with as many DataElements inside. This means that the DataFields that the infrastructure is trying to validate will contain as name the full qualified path name, so this HtmlIndexedCollection may search for the actual final DataField in the created DataElement inside the IndexedCollection.
Field Summary |
---|
Fields inherited from class com.ibm.btt.base.IndexedCollection |
---|
defaultName, elements |
Fields inherited from class com.ibm.btt.base.DataElement |
---|
description, name, parameters, state |
Constructor Summary | |
---|---|
HtmlIndexedCollection()
HtmlIndexedCollection constructor |
|
HtmlIndexedCollection(java.lang.String aName)
HtmlIndexedCollection constructor |
Method Summary | |
---|---|
void |
updateErrorInfo(java.lang.Object inputObject,
DSETypeException e)
Update the ErrorInfo attribute with the contents of the Exception |
java.lang.Object |
validate(DataField toValidate)
Validates the object passed (that must be a DataField) and if successful, the object is returned, otherwise an appropriate exception is thrown. |
java.lang.Object |
validate(IndexedCollection iColl)
Validates the object passed (that must be an indexed collection) and if successful, the object is returned, otherwise an appropriate exception is thrown. |
java.lang.Object |
validate(java.lang.Object toValidate)
Validates the object passed (that must be an indexed collection or a vector) and if successful, the object is returned, otherwise an appropriate exception is thrown. |
java.lang.Object |
validate(Vector elements)
Validates the set of objects passed (that must be DataField's) and if successful, the set is returned, otherwise an appropriate exception is thrown. |
Methods inherited from class com.ibm.btt.base.IndexedCollection |
---|
addElement, addElement, clone, createElement, createElementSharingDescriptors, getDataElement, getElementAt, getElementAt, getElements, getElementSubTag, getEnumeration, getValue, initializeFrom, nestedQualifiedElements, readExternal, removeAll, removeElementAt, removeElementAt, setDataElement, setElements, setElementSubTag, setValue, size, toString, toStrings, toTags, tryGetElementAt, tryGetElementAt, tryGetValueAt, trySetValueAt, writeExternal |
Methods inherited from class com.ibm.btt.base.DataCollection |
---|
getValueAt, nestedElements, nestedElements, nestedFields, nestedKeyedCollections, setValueAt, validate |
Methods inherited from class com.ibm.btt.base.DataElement |
---|
externalizer, getCompositeKey, getDescription, getDescriptor, getErrorInfo, getExternalizer, getKey, getName, getParameter, getParameters, getState, getTagName, isAmended, isCached, isSerializable, readExternal, readObject, removeExternal, setAmended, setCompositeKey, setDescription, setDescriptor, setErrorInfo, setExternalizer, setIsCached, setName, setParameter, setParameters, setSerializable, setState, validateObject, writeExternal |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HtmlIndexedCollection()
public HtmlIndexedCollection(java.lang.String aName) throws java.io.IOException
aName
- java.lang.String
java.io.IOException
Method Detail |
---|
public void updateErrorInfo(java.lang.Object inputObject, DSETypeException e)
inputObject
- Objecte
- DSETypeExceptionpublic java.lang.Object validate(java.lang.Object toValidate) throws DSETypeException
validate
in class IndexedCollection
toValidate
- Objectdescriptor
- PropertyDescription
DSETypeException
- Thrown if the validation is unsuccessful.public java.lang.Object validate(DataField toValidate) throws DSETypeException
toValidate
- DataField
DSETypeException
- Thrown if the validation is unsuccessful.public java.lang.Object validate(IndexedCollection iColl) throws DSETypeException
iColl
- Object
DSETypeException
- Thrown if the validation is unsuccessful.public java.lang.Object validate(Vector elements) throws DSETypeException
elements
- Vector
DSETypeException
- Thrown if the validation is unsuccessful.
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |