public class SQ extends DicomValue implements IDataTypeSQ
| Constructor and Description |
|---|
SQ()
This constructor creates SQ with default TransferSyntax
|
SQ(IDictionaryReader objDictionaryReader)
This constructor creates SQ with default TransferSyntax and specified DictionaryReader
|
SQ(ITransferSyntax objTransferSyntax)
This constructor creates SQ with specified TransferSyntax
|
SQ(ITransferSyntax objTransferSyntax,
IDictionaryReader objDictionaryReader)
This constructor creates SQ with specified transferSyntax and specified DictionaryReader
|
| Modifier and Type | Method and Description |
|---|---|
int |
addItem(IItem objIItem)
This method adds a item in the collection.
|
void |
changeToUndefined()
This function sets the Value length to -1.
|
void |
dumpDICOMInfo(IDicomStream objIDicomStream)
Dumps the value of Items of a Sequence.
|
IDictionaryReader |
getDictionaryReader()
Retrieves the DictionaryReader.
|
long |
getMaxLength()
Retrieves the maximum length of Sequence Item.
|
IItem |
getNewItem()
Implementation of this method returns the Item of this Sequence.
|
ITransferSyntax |
getTransferSyntax()
Retrieves the TransferSyntax of Sequence Item.
|
java.lang.Object |
getValue()
Retrieves the value of item from collection.
|
int |
getValueLength()
This method retrieves the length of value.
|
ICollectionIterator<IItem> |
iterator()
This method returns an iterator over the collection of sequences
|
int |
noOfItems()
This method returns an iterator over the collection of sequences
|
boolean |
read(IDicomStream objIDicomStream,
int iSQLength)
Reads the SL DataType structure from underlying stream
|
void |
setDictionaryReader(IDictionaryReader objIDictionaryReader)
This method sets the DictionaryReader.
|
void |
setMaxLength(long lMaxLength)
Sets the maximum length of Sequence Item
|
void |
setTransferSyntax(ITransferSyntax objITransferSyntax)
This method sets the TransferSyntax of Sequence Item.
|
void |
setValue(java.lang.Object objValue)
Sets the value of Data Type according to the Dicom Standard.
|
boolean |
validate()
This method Validates the all Sequence Items according to the rules specified by DICOM Satndard
|
boolean |
validate(java.lang.Object objValue)
This method Validates the sequence according to the rules specified by DICOM Satndard
|
boolean |
validateForModule()
This method Validates the all Sequence Items according to the rules specified by DICOM Standard
|
int |
write(IDicomStream objIDicomStream)
This method writes the series of byte buffers present in the SQ datatype.
|
clone, getIVRType, getValueMultiplicity, setIVRTypeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getIVRType, getValueMultiplicity, setIVRTypepublic SQ()
public SQ(ITransferSyntax objTransferSyntax)
objTransferSyntax - TransferSyntax of the outer DataSet which is necessary to be the same as
the inner DataSet in the sequencepublic SQ(IDictionaryReader objDictionaryReader)
objDictionaryReader - DictionaryReader used in the outer DataSet which is necessary to be the same as
the inner DataSet in the sequencepublic SQ(ITransferSyntax objTransferSyntax, IDictionaryReader objDictionaryReader)
objTransferSyntax - TransferSyntax of the outer DataSet which is necessary to be the same as
the inner DataSet in the sequenceobjDictionaryReader - DictionaryReader used in the outer DataSet which is necessary to be the same as
the inner DataSet in the sequencepublic int getValueLength()
getValueLength in interface IDataTypeSQgetValueLength in interface IDicomValuegetValueLength in class DicomValuepublic boolean validate(java.lang.Object objValue)
throws ValidationException
validate in interface IDicomValuevalidate in class DicomValueobjValue - object representing custom collection of ItemsValidationException - If validation of Item fails.public boolean validate()
throws ValidationException
validate in interface IDicomValuevalidate in class DicomValueValidationException - If validation of Item fails.public boolean validateForModule()
throws ValidationException
validateForModule in interface IDataTypeSQValidationException - If validation of Item fails.public void setTransferSyntax(ITransferSyntax objITransferSyntax)
setTransferSyntax in interface IDataTypeSQobjITransferSyntax - instance of TransferSyntaxpublic void setDictionaryReader(IDictionaryReader objIDictionaryReader)
setDictionaryReader in interface IDataTypeSQobjIDictionaryReader - instance of DictionaryReaderpublic IDictionaryReader getDictionaryReader()
getDictionaryReader in interface IDataTypeSQpublic boolean read(IDicomStream objIDicomStream, int iSQLength) throws InvalidDataTypeException, java.io.IOException
read in interface IDicomValueread in class DicomValueobjIDicomStream - stream from which the DataType is to be writteniSQLength - length of the DicomValue to be read from the streamInvalidDataTypeException - If data type validation fails.java.io.IOException - If Input/Output operation fails.public int write(IDicomStream objIDicomStream) throws java.io.IOException
write in interface IDicomValuewrite in class DicomValueobjIDicomStream - stream on which to write the DataElementsjava.io.IOException - If Input/Output operation fails.public long getMaxLength()
getMaxLength in interface IDicomValuepublic void setMaxLength(long lMaxLength)
lMaxLength - integer value of length.public ITransferSyntax getTransferSyntax()
getTransferSyntax in interface IDataTypeSQpublic java.lang.Object getValue()
getValue in interface IDicomValuegetValue in class DicomValuepublic int addItem(IItem objIItem) throws InvalidItemException
addItem in interface IDataTypeSQobjIItem - instance of IItem.InvalidItemException - If Item validation fails.public void setValue(java.lang.Object objValue)
throws InvalidDataTypeException
setValue in interface IDicomValuesetValue in class DicomValueobjValue - instance of base class Object.InvalidDataTypeException - If DataType validation fails.public ICollectionIterator<IItem> iterator()
iterator in interface ICollectionIterable<IItem>iterator in interface java.lang.Iterable<IItem>public int noOfItems()
public void dumpDICOMInfo(IDicomStream objIDicomStream) throws java.io.IOException
dumpDICOMInfo in interface IDicomValueobjIDicomStream - - the Stream on which the Data is to be written.java.io.IOException - - Exception is thrown indicating runtime failure of writing operation.public IItem getNewItem()
getNewItem in interface IDataTypeSQpublic void changeToUndefined()