public abstract class DataElement extends java.lang.Object implements IDataElement
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Create similar object of this class.
|
void |
dumpDICOMInfo(IDicomStream objIDicomStream)
Dumps the contents of Data Element in readable form to the specified stream.
|
boolean |
equals(java.lang.Object objTempObject)
This method checks for equality of two data elements.
|
abstract int |
getDataElementLength()
The implementation of this method retrieves the length of DataElement.
|
IDicomValue |
getDicomValue()
Returns the value part of the Data Element.
|
IDictionaryReader |
getDictionaryReader()
This method returns the dictionaryreader set in the Implicit DataElement
|
ITag |
getTag()
Returns the Tag part of the Data Element.
|
ITransferSyntax |
getTransferSyntax()
This method returns the TransferSyntax set in the DataElement
|
java.lang.Object |
getValue()
This function will retrieve the value of dicom data of the Data Element.
|
int |
getValueLength()
Retrieves value length of data element
|
int |
getValueMultiplicity()
Retrieves the value multiplicity of the value.
|
abstract int |
parse(IDicomStream objIDicomStream)
The implementation of this method parses the Data Element from the given Stream.
|
abstract int |
serialize(IDicomStream objIDicomStream)
The implementation of this method serializes the Data Element from the given Stream
|
void |
setDicomValue(IDicomValue objDicomValue)
sets the DicomValue as a value in the DataElement
|
void |
setDictionaryReader(IDictionaryReader objIDictionaryReader)
Sets the Dictionary Reader.
|
void |
setTag(int iGroupNumber,
int iElementNumber)
Sets the Tag in Data Element.
|
void |
setTransferSyntax(ITransferSyntax objITransferSyntax)
Sets the Transfer Syntax.
|
void |
setValueMultiplicity(int iVM)
Sets the value multiplicity of the value in tha DataElement
|
boolean |
validate()
Validates the DataElement and throws exception on validation Failure.
|
public int getValueLength()
getValueLength in interface IDataElementpublic int getValueMultiplicity()
getValueMultiplicity in interface IDataElementpublic void setValueMultiplicity(int iVM)
setValueMultiplicity in interface IDataElementiVM - integer value multiplicity of the valuepublic void setTag(int iGroupNumber,
int iElementNumber)
setTag in interface IDataElementiGroupNumber - Integer Value of Group Number.iElementNumber - Integer Value of Element Number.public ITag getTag()
getTag in interface IDataElementpublic IDicomValue getDicomValue()
getDicomValue in interface IDataElementpublic void setDicomValue(IDicomValue objDicomValue)
setDicomValue in interface IDataElementobjDicomValue - object of DicomValue representing the value of DataElementpublic void setTransferSyntax(ITransferSyntax objITransferSyntax)
setTransferSyntax in interface IDataElementobjITransferSyntax - value of Transfer Syntax.public void setDictionaryReader(IDictionaryReader objIDictionaryReader)
objIDictionaryReader - DictionaryReader to read from the Dictionary.public IDictionaryReader getDictionaryReader()
public ITransferSyntax getTransferSyntax()
getTransferSyntax in interface IDataElementpublic abstract int parse(IDicomStream objIDicomStream) throws InvalidDataElementException, java.io.IOException
parse in interface IDataElementobjIDicomStream - Stream on which the DICOM data is available.InvalidDataElementException - If Data Element fails to satisfy Validation Criteria.java.io.IOException - If Input/Output operation fails.public abstract int serialize(IDicomStream objIDicomStream) throws InvalidDataElementException, java.io.IOException
serialize in interface IDataElementobjIDicomStream - Stream on which the DICOM data is availableInvalidDataElementException - If Data Element fails to satisfy Validation Criteria.java.io.IOException - If Input/Output operation fails.public abstract int getDataElementLength()
getDataElementLength in interface IDataElementpublic boolean validate()
throws InvalidDataElementException
validate in interface IDataElementInvalidDataElementException - If Data Element fails to satisfy Validation Criteria.public boolean equals(java.lang.Object objTempObject)
equals in interface IDataElementequals in class java.lang.ObjectobjTempObject - Data Element whose equality has to be checked with instance data element.public java.lang.Object getValue()
getValue in interface IDataElementpublic java.lang.Object clone()
clone in interface IDataElementclone in class java.lang.Objectpublic void dumpDICOMInfo(IDicomStream objIDicomStream) throws java.io.IOException
dumpDICOMInfo in interface IDataElementobjIDicomStream - - the Stream on which the Data is to be written.java.io.IOException - - Exception is thrown indicating runtime failure of writing operation.