Package com.nt.udc.io
Class COSAR
java.lang.Object
com.nt.udc.io.COSAR
- All Implemented Interfaces:
IAttrSource,DCFieldContainer
Deprecated.
Must be migrated to NAR format
This class represents an OSAR.
It implements IAttrSource and functions as a
factory class for COSARAttr objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassDeprecated.This class is used to enumerate the attributes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.This constant represents the default record type name.protected intDeprecated.This member represents the current attribute count.protected COSARAttr[]Deprecated.This member is used to store the attributes in the right order.protected HashMapDeprecated.This member is used to store the OSAR attributes.protected StringDeprecated.This member represents the record type.static final StringDeprecated.This constant represents the field id in OSARs reserved for the record type.static final StringDeprecated.This constant represents the field id in OSARs reserved for the record type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanDeprecated.This function is used to append another COSAR.clone()Deprecated.Deprecated.final COSAR.COSAREnumgetEnum()Deprecated.Deprecated.final DCFieldDeprecated.Retrieves field value with the specified idbyte[]getFieldValue(FieldKey key) Deprecated.final byte[]getFieldValue(String attrId) Deprecated.Retrieves field value with the specified idgetOSAR()Deprecated.This function returns the equivalent OSAR.final StringDeprecated.final intDeprecated.Retrieves the type of the value stored at the specified idstatic COSARAttrnewOSARAttr(OSARecAttr recAttr) Deprecated.This function builds a new COSARAttr based on a OSARecAttr and returns it.static COSARAttrnewOSARAttr(String id, int type) Deprecated.This function builds a new COSARAttr based on the type and returns it.voidDeprecated.This function removes all attributes from the OSAR.final voidsetField(int attrId, int type, byte[] value) Deprecated.Stores a given value at the specified idfinal voidDeprecated.Stores a given value at the specified idvoidDeprecated.final voidDeprecated.Stores a given value at the specified idvoidsetFromOSAR(OSAR osar) Deprecated.This function is used to set the COSAR based on the contents of the OSAR.final voidsetRecordType(String recordType) Deprecated.final byte[]Deprecated.Converts the data contained in this object to a byte arraytoString()Deprecated.Converts the data contained in this object to a String
-
Field Details
-
DEFAULT_RECORD_TYPE
Deprecated.This constant represents the default record type name.- See Also:
-
RECORD_TYPE_ID
Deprecated.This constant represents the field id in OSARs reserved for the record type.- See Also:
-
RECORD_TYPE_NAME
Deprecated.This constant represents the field id in OSARs reserved for the record type.- See Also:
-
m_recordType
Deprecated.This member represents the record type. -
m_map
Deprecated.This member is used to store the OSAR attributes. -
m_attrs
Deprecated.This member is used to store the attributes in the right order. -
m_attrCount
protected int m_attrCountDeprecated.This member represents the current attribute count.
-
-
Constructor Details
-
Method Details
-
getRecordType
Deprecated. -
getEnum
Deprecated. -
setRecordType
Deprecated. -
getAttr
Deprecated.- Specified by:
getAttrin interfaceIAttrSource- Returns:
- An attribute computed based on the specified key.
-
addAttr
Deprecated. -
setFromOSAR
Deprecated.This function is used to set the COSAR based on the contents of the OSAR.- Throws:
Exception
-
append
Deprecated.This function is used to append another COSAR.- Returns:
- true if successful, false otherwise.
-
getOSAR
Deprecated.This function returns the equivalent OSAR. -
removeAllAttrs
public void removeAllAttrs()Deprecated.This function removes all attributes from the OSAR. -
newOSARAttr
Deprecated.This function builds a new COSARAttr based on the type and returns it.- Throws:
Exception
-
newOSARAttr
Deprecated.This function builds a new COSARAttr based on a OSARecAttr and returns it.- Throws:
Exception
-
toString
Deprecated.Description copied from interface:DCFieldContainerConverts the data contained in this object to a String- Specified by:
toStringin interfaceDCFieldContainer- Overrides:
toStringin classObject- Returns:
- String representation of the data
-
getField
Deprecated.Description copied from interface:DCFieldContainerRetrieves field value with the specified id- Specified by:
getFieldin interfaceDCFieldContainer- Parameters:
attrId- Identifier of the desired field- Returns:
- The DCField object that represents the field
-
getField
Deprecated.- Specified by:
getFieldin interfaceDCFieldContainer
-
getFieldValue
Deprecated.Description copied from interface:DCFieldContainerRetrieves field value with the specified id- Specified by:
getFieldValuein interfaceDCFieldContainer- Parameters:
attrId- Identifier of the desired field- Returns:
- the bytes that represent the field value
-
getFieldValue
Deprecated.- Specified by:
getFieldValuein interfaceDCFieldContainer
-
setField
public final void setField(int attrId, int type, byte[] value) Deprecated.Description copied from interface:DCFieldContainerStores a given value at the specified id- Specified by:
setFieldin interfaceDCFieldContainer- Parameters:
attrId- Numeric identifier for the fieldtype- Data type for the fieldvalue- Value to be stored in the given field
-
setField
Deprecated.Description copied from interface:DCFieldContainerStores a given value at the specified id- Specified by:
setFieldin interfaceDCFieldContainer- Parameters:
attrId- Identifier for the fieldtype- Data type for the fieldvalue- Value to be stored in the given field
-
setField
Deprecated.- Specified by:
setFieldin interfaceDCFieldContainer
-
setField
Deprecated.Description copied from interface:DCFieldContainerStores a given value at the specified id- Specified by:
setFieldin interfaceDCFieldContainer- Parameters:
field- The DCField object representing the field.
-
getType
Deprecated.Description copied from interface:DCFieldContainerRetrieves the type of the value stored at the specified id- Specified by:
getTypein interfaceDCFieldContainer- Parameters:
attrId- Identifier of the field- Returns:
- int value, representing the type
-
toByteArray
public final byte[] toByteArray()Deprecated.Description copied from interface:DCFieldContainerConverts the data contained in this object to a byte array- Specified by:
toByteArrayin interfaceDCFieldContainer- Returns:
- byte[] representation of the data
-
clone
Deprecated.- Specified by:
clonein interfaceDCFieldContainer- Overrides:
clonein classObject
-