public interface IItem extends ICollectionIterable<IDataElement>, java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
int |
addDataElement(IDataElement objIDataElement)
Adds the DataElement to the collection of Items.
|
java.lang.Object |
clone()
Create similar object of this class.
|
boolean |
contains(int iGroupNumber,
int iElementNumber)
Checks the presence/absence of the DataElement in the item collection
|
void |
dumpDICOMInfo(IDicomStream objIDicomStream)
Dumps the Items of a Sequence in readable form to the specified stream.
|
IDataElement |
getDataForTag(int iGroupNumber,
int iElementNumber)
Retrieves the facility to retrieve the DataElements inside the item based on Group Numbers and Element Numbers.
|
IDictionaryReader |
getDictionaryReader()
Retrieves the DictionaryReader used by the item to read/write implicit DataElements
|
int |
getItemLength()
Gives full length of the item i.e.
|
ITransferSyntax |
getTransferSyntax()
Retrieves the TransferSyntax of the Item.
|
java.lang.Object |
getValue(int iGroupNumber,
int iElementNumber)
Method returns value of Item.
|
int |
getValueLength()
Retrieves the length of the value of the item.
|
int |
read(IDicomStream objIDicomStream,
int iItemLength)
Reads the item class from the underlying stream
|
void |
setDictionaryReader(IDictionaryReader objIDictionaryReader)
Sets the DictionaryReader into the item class if the implicit DataElements are to be read/written in the item class
|
void |
setTransferSyntax(ITransferSyntax objITransferSyntax)
Sets the TransferSyntax of the item.
|
int |
setValue(IPairedCollection<ITag,IDataElement> objPairedCollection)
Sets the value of the item in terms of paired collection of Tag and DataElements
|
boolean |
validate()
Validates the data elements of item according to the rules of DICOM standard
|
boolean |
validateForModule()
Validates the item according for specific to the DICOM standards
|
int |
write(IDicomStream objIDicomStream)
Writes the item class over the specified stream
|
iteratorvoid setTransferSyntax(ITransferSyntax objITransferSyntax)
objITransferSyntax - instance of TransferSyntax.ITransferSyntax getTransferSyntax()
int read(IDicomStream objIDicomStream, int iItemLength) throws ItemException, java.io.IOException
objIDicomStream - object of stream from which the Item is to be read.iItemLength - the length of the item upto which the data is to be read from the underlying streamItemException - Signals Item Validation is failed.java.io.IOException - Signals that an I/O exception of some sort has occurred.int write(IDicomStream objIDicomStream) throws java.io.IOException
objIDicomStream - object of stream onto which the item information needs to be serializedjava.io.IOException - Signals that an I/O exception of some sort has occurred.int getItemLength()
int getValueLength()
void setDictionaryReader(IDictionaryReader objIDictionaryReader)
objIDictionaryReader - object of DictionaryReaderIDictionaryReader getDictionaryReader()
IDataElement getDataForTag(int iGroupNumber, int iElementNumber)
iGroupNumber - specifies the Group Number.iElementNumber - specifies the Element Number.boolean contains(int iGroupNumber,
int iElementNumber)
iGroupNumber - specifies the Group Number.iElementNumber - specifies the Element Number.boolean validateForModule()
throws InvalidItemException
InvalidItemException - Signals Item Validation is failed.boolean validate()
throws InvalidItemException
InvalidItemException - Signals Item Validation is failed.int addDataElement(IDataElement objIDataElement)
objIDataElement - object of DataElement to add.int setValue(IPairedCollection<ITag,IDataElement> objPairedCollection)
objPairedCollection - - paired collection of Tag and DataElement representing the collection of DataElementsjava.lang.Object clone()
void dumpDICOMInfo(IDicomStream objIDicomStream) throws java.io.IOException
objIDicomStream - - the Stream on which the Data is to be written.java.io.IOException - - Exception is thrown indicating runtime failure of writing operation.java.lang.Object getValue(int iGroupNumber,
int iElementNumber)
iGroupNumber - - Group Number of the DataElementiElementNumber - - Element Number of the DataElement