Package com.softwaremining.cics.wrappers
Class BMSString
java.lang.Object
com.softwaremining.wrappers.AbstractCBLField
com.softwaremining.wrappers.AbstractCBLPrimitive
com.softwaremining.wrappers.CBLString
com.softwaremining.cics.wrappers.BMSString
- All Implemented Interfaces:
IBMSField,AbstractDataObject,IFormatTypes,ICBLContainer,ICBLDataType,IFieldContainer,ISMDataType,ISMObject,ISMString
BMS screen define fields which are one of three types:
- length field
- Flag/Attribute field
- Main field (BMSField) - this is where the actual data resides
-
Field Summary
Fields inherited from class com.softwaremining.wrappers.AbstractCBLField
format, log, NEEDS_FORMATING, readjustIndex_counter, resetWrapperOffsetCount, STRINGIFY_BEFORE_FORMATTING, totalRuntime_ACMFieldConstructor, totalRuntime_arrayUtilityReadjustIndex, totalRuntime_cachingTime, totalRuntime_getSubField, totalRuntime_getSubField_createSubField, totalRuntime_getSubField_createSubField_count, totalRuntime_getSubField_setSubFieldHelper, totalRuntime_getSubFieldHelper, totalruntime_getSubFields_b, totalRuntime_getWrapperOffset, totalRuntime_resetWrapperOffset, totalRuntime_setInternalValue, wrapperOffsetCountFields inherited from interface com.softwaremining.wrappers.format.IFormatTypes
COMP_MODE_COMP, COMP_MODE_COMP_1, COMP_MODE_COMP_2, COMP_MODE_COMP_3, COMP_MODE_COMP_4, COMP_MODE_COMP_5, COMP_MODE_COMP_6, COMP_MODE_COMP_7, COMP_MODE_COMP_8, COMP_MODE_COMP_MCP, COMP_MODE_COMP_X, COMP_MODE_DISPLAY, COMP_MODE_DISPLAY_SIGN_IS_LEADING, COMP_MODE_DISPLAY_SIGN_IS_SEPARATE_LEADING, COMP_MODE_DISPLAY_SIGN_IS_SEPARATE_TRAILING, COMP_MODE_DISPLAY_SIGN_IS_TRAILING, COMP_MODE_IDS_DB_KEY, COMP_MODE_NATIVE_2, COMP_MODE_NATIVE_4, COMP_MODE_NATIVE_8, COMP_MODE_REAL, COMP_MODE_UNSUPPORTED, JUSTIFIED_RIGHT_FALSE, JUSTIFIED_RIGHT_TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFor internal use onlycreateSubField(int[] index) intreturns the length of characters typed in front end.booleanhasFocus()booleanFor internal use only.booleanisErased()Checks if the attribute field has modified (MDT) value.booleanChecks if the attribute field has LOW-VALUESbooleanChecks if the number of characters typed by user is greater than 0.booleanchecks if the length-field is -1booleanchecks if attrib-A is not equal to Hex40 ValuevoidAssigns LOW-VALUES to attribute fieldvoidFor Output Fields COLOR Field is only provided when BMS EXTATT=yes is specified on the original application (rare)setFocus()Set focus on the fieldsetIntensity(int intensity) changes intensity from default BMSField.INTENSITY_NORMAL to BMSField.INTENSITY_DARK or BMSField.INTENSITY_BRIGHT.voidsetLengthTyped(int newLen) Resets the length attrib fields to new valuevoidsetLengthTyped(String newLen) setModified(boolean modified) Sets the isModified flag on outgoing field.setNumeric(boolean numeric) fields are AlphaNumeric by default.setProtected(boolean protect) fields are Unprotected / Enabled by default.setSkip(boolean skip) This is equivalent of DISABLING an input field.Methods inherited from class com.softwaremining.wrappers.CBLString
assignJustifiedRight, assignNewSize, assignValue, assignValue, equals, equalsAll, equalsAll, getAsArray, getDefaultSpecialValue, getObject, getValue, isFiller, isJustifiedRight, isLessThanAll, isLessThanAll, retrieveAsString, retrieveSQLObject, setJustifiedRightMethods inherited from class com.softwaremining.wrappers.AbstractCBLPrimitive
bytesSize, getPicture, initialize, initialize, isGroup, pad, pad, resetDimensionByIndx, retrieveField, setObjectAsStringMethods inherited from class com.softwaremining.wrappers.AbstractCBLField
addDependedField, assignAddressTo, assignBean, assignBigDecimal, assignDefaultValue, assignDefaultValue, assignDependingField, assignDouble, assignExcludeFromSQLTable, assignExternal, assignGroup, assignHighValues, assignHighValues, assignInt, assignLong, assignLowValues, assignLowValues, assignMasterSQLColumnsForArrays, assignObject, assignOverrideSQLTableName, assignPointerOffset, assignRedefines, assignRedefines, assignSeparateColumn, assignSeparateTable, assignString, assignString, assignStringFormatted, assignStringFormatted, assignSubstring, assignSubstring, assignSubstring, assignSubstring, assignSubstring, assignSubstringDeprecated, assignToAddressOf, assignToAddressOf, assignToAddressOf, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValue, assignValueUnFormatted, enableSizeErrDetectionOnNextOp, equals, equals, equals, equals, equals, equals, equalsRightTrimmed, fetchParentArray, fill, fill, fill, fill, fill, getAllSubFields, getArrayLength, getAsString, getCachedValue, getDefaultValue, getDependedFieldsList, getDimensions, getFormat, getMemoryPosition, getNumberOfSQLColumns, getNumOccurs, getObject, getOffsets, getParentGroup, getRedefines, getReverseRedefines, getSubFields, incrementPointerOffset, invokeSizeError, isArrayOfArrays, isCachable, isCachedArrayLengthActual, isCacheStateOK, isEmpty, isEqualToAll, isExcludedFromSQLTable, isFilled, isFilled, isFilled, isFilled, isGreaterOrEqualTo, isGreaterOrEqualTo, isGreaterOrEqualTo, isGreaterOrEqualTo, isGreaterOrEqualTo, isGreaterOrEqualTo, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isGreaterThan, isHighValues, isLessOrEqualTo, isLessOrEqualTo, isLessOrEqualTo, isLessOrEqualTo, isLessOrEqualTo, isLessOrEqualTo, isLessThan, isLessThan, isLessThan, isLessThan, isLessThan, isLessThan, isLowValues, isSeparateColumns, isSeparateTable, isSpaces, isSubField, isUsedInRedefines, isZeros, lengthOf, onSizeError, printDetailAndValue, printDetails, redefinesAnotherField, resetCachedValue, retrieveAsString, retrieveAsStringFormatted, retrieveAsStringFormatted, retrieveMasterSQLColumnsForArrays, retrieveName, retrieveObject, retrieveSQLObject, retrieveSQLTableNameOverride, retrieveStorageBytes, retrieveStorageBytes, retrieveStorageCellSize, retrieveSubField, retrieveSubstring, retrieveSubstring, retrieveWrapper, setBlankWhenZero, setCachedValue, setHighValues, setHighValues, setLowValues, setLowValues, setNumberOfSQLColumns, setNumOccurs, setOmitted, setParentGroup, setSeparateColumn, setSeparateTable, setSubstring, setSubstring, setSubstring, setSubstring, setWrapper, stringValue, toEbcdic, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.softwaremining.wrappers.AbstractDataObject
assignValue, retrieveStorageCellSizeMethods inherited from interface com.softwaremining.wrappers.ISMObject
assignExcludeFromSQLTable, assignMasterSQLColumnsForArrays, assignObject, assignString, assignStringFormatted, assignValue, bytesSize, initialize, isExcludedFromSQLTable, retrieveAsStringFormatted, retrieveMasterSQLColumnsForArrays, retrieveName, retrieveObject, retrieveSQLObject, retrieveStorageCellSize, retrieveSubField, retrieveWrapperMethods inherited from interface com.softwaremining.wrappers.ISMString
assignSubstring, assignValue, equalsRightTrimmed, fill, fill, getFormat, isFilled, lengthOf, retrieveSubstring, retrieveSubstring, stringValue
-
Constructor Details
-
BMSString
-
BMSString
-
BMSString
-
-
Method Details
-
createSubField
- Overrides:
createSubFieldin classCBLString
-
setIntensity
Description copied from interface:IBMSFieldchanges intensity from default BMSField.INTENSITY_NORMAL to BMSField.INTENSITY_DARK or BMSField.INTENSITY_BRIGHT.- Specified by:
setIntensityin interfaceIBMSField
-
setNumeric
fields are AlphaNumeric by default. NOTE: Setting this to true or false will force the field UN-PROTECTED, and disables the SKIP attribute- Specified by:
setNumericin interfaceIBMSField- Parameters:
numeric-- Returns:
-
setProtected
fields are Unprotected / Enabled by default.- Specified by:
setProtectedin interfaceIBMSField- Parameters:
numeric-- Returns:
-
setSkip
Description copied from interface:IBMSFieldThis is equivalent of DISABLING an input field. The cursor will not stop at fields marked as SKIP -
setModified
Description copied from interface:IBMSFieldSets the isModified flag on outgoing field. (value of field.isModifiedByFrontEnd() will not have been changed) CICS RECEIVE will only report values which have been altered since previous SEND. E.g. after a Receive statement, bufferI.xyzI will contain NULL values if the on-screen value of XYZ is not changed between SEND and RECEIVE. using bufferI.ObjectxyzI.SetModified(true) will ensure the ON-SCREEN value is returned irrespective of whether it had been modified or not.- Specified by:
setModifiedin interfaceIBMSField- Returns:
-
setFocus
Description copied from interface:IBMSFieldSet focus on the field -
getLengthTyped
public int getLengthTyped()Description copied from interface:IBMSFieldreturns the length of characters typed in front end. E.g. if the field has been defined as 20 chars, but user has only typed "ABC" - then value 3 will be returned.- Specified by:
getLengthTypedin interfaceIBMSField
-
setLengthTyped
public void setLengthTyped(int newLen) Description copied from interface:IBMSFieldResets the length attrib fields to new value- Specified by:
setLengthTypedin interfaceIBMSField
-
setLengthTyped
-
isInputValid
public boolean isInputValid()Description copied from interface:IBMSFieldchecks if the length-field is -1- Specified by:
isInputValidin interfaceIBMSField- Returns:
-
isModified
public boolean isModified()checks if attrib-A is not equal to Hex40 Value- Specified by:
isModifiedin interfaceIBMSField
-
isInputAvailable
public boolean isInputAvailable()Checks if the number of characters typed by user is greater than 0.
ie if L-Field has greater than 0 characters.- Specified by:
isInputAvailablein interfaceIBMSField- Returns:
-
isErased
public boolean isErased()Checks if the attribute field has modified (MDT) value. -
isErased2
public boolean isErased2()Checks if the attribute field has LOW-VALUES -
resetAttributes
public void resetAttributes()Assigns LOW-VALUES to attribute field- Specified by:
resetAttributesin interfaceIBMSField
-
createBlank
For internal use only- Overrides:
createBlankin classCBLString- Returns:
-
setColor
For Output Fields COLOR Field is only provided when BMS EXTATT=yes is specified on the original application (rare) -
hasFocus
public boolean hasFocus() -
isBMSString
public boolean isBMSString()For internal use only.
This provides same functionality of if (this instanceOf BMSString) without building a dependency on CICS libraries.- Overrides:
isBMSStringin classAbstractCBLField- Returns:
-