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 TypeClassDescriptionclass
Deprecated.This class is used to enumerate the attributes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.This constant represents the default record type name.protected int
Deprecated.This member represents the current attribute count.protected COSARAttr[]
Deprecated.This member is used to store the attributes in the right order.protected HashMap
Deprecated.This member is used to store the OSAR attributes.protected String
Deprecated.This member represents the record type.static final String
Deprecated.This constant represents the field id in OSARs reserved for the record type.static final String
Deprecated.This constant represents the field id in OSARs reserved for the record type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.boolean
Deprecated.This function is used to append another COSAR.clone()
Deprecated.Deprecated.final COSAR.COSAREnum
getEnum()
Deprecated.Deprecated.final DCField
Deprecated.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 String
Deprecated.final int
Deprecated.Retrieves the type of the value stored at the specified idstatic COSARAttr
newOSARAttr
(OSARecAttr recAttr) Deprecated.This function builds a new COSARAttr based on a OSARecAttr and returns it.static COSARAttr
newOSARAttr
(String id, int type) Deprecated.This function builds a new COSARAttr based on the type and returns it.void
Deprecated.This function removes all attributes from the OSAR.final void
setField
(int attrId, int type, byte[] value) Deprecated.Stores a given value at the specified idfinal void
Deprecated.Stores a given value at the specified idvoid
Deprecated.final void
Deprecated.Stores a given value at the specified idvoid
setFromOSAR
(OSAR osar) Deprecated.This function is used to set the COSAR based on the contents of the OSAR.final void
setRecordType
(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:
getAttr
in 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:DCFieldContainer
Converts the data contained in this object to a String- Specified by:
toString
in interfaceDCFieldContainer
- Overrides:
toString
in classObject
- Returns:
- String representation of the data
-
getField
Deprecated.Description copied from interface:DCFieldContainer
Retrieves field value with the specified id- Specified by:
getField
in interfaceDCFieldContainer
- Parameters:
attrId
- Identifier of the desired field- Returns:
- The DCField object that represents the field
-
getField
Deprecated.- Specified by:
getField
in interfaceDCFieldContainer
-
getFieldValue
Deprecated.Description copied from interface:DCFieldContainer
Retrieves field value with the specified id- Specified by:
getFieldValue
in interfaceDCFieldContainer
- Parameters:
attrId
- Identifier of the desired field- Returns:
- the bytes that represent the field value
-
getFieldValue
Deprecated.- Specified by:
getFieldValue
in interfaceDCFieldContainer
-
setField
public final void setField(int attrId, int type, byte[] value) Deprecated.Description copied from interface:DCFieldContainer
Stores a given value at the specified id- Specified by:
setField
in 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:DCFieldContainer
Stores a given value at the specified id- Specified by:
setField
in interfaceDCFieldContainer
- Parameters:
attrId
- Identifier for the fieldtype
- Data type for the fieldvalue
- Value to be stored in the given field
-
setField
Deprecated.- Specified by:
setField
in interfaceDCFieldContainer
-
setField
Deprecated.Description copied from interface:DCFieldContainer
Stores a given value at the specified id- Specified by:
setField
in interfaceDCFieldContainer
- Parameters:
field
- The DCField object representing the field.
-
getType
Deprecated.Description copied from interface:DCFieldContainer
Retrieves the type of the value stored at the specified id- Specified by:
getType
in interfaceDCFieldContainer
- Parameters:
attrId
- Identifier of the field- Returns:
- int value, representing the type
-
toByteArray
public final byte[] toByteArray()Deprecated.Description copied from interface:DCFieldContainer
Converts the data contained in this object to a byte array- Specified by:
toByteArray
in interfaceDCFieldContainer
- Returns:
- byte[] representation of the data
-
clone
Deprecated.- Specified by:
clone
in interfaceDCFieldContainer
- Overrides:
clone
in classObject
-