public abstract class DicomValue extends java.lang.Object implements IDicomValue
| Constructor and Description |
|---|
DicomValue() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Create similar object of this class.
|
int |
getIVRType()
Retrieves the value representation type of the Dicom Data
|
java.lang.Object |
getValue()
Retrieves the value set in the DicomValue
|
abstract int |
getValueLength()
Retrieves the actual value length of DicomValue
|
int |
getValueMultiplicity()
Retrieves the value multiplicity of DicomValue value
|
abstract boolean |
read(IDicomStream objIDicomStream,
int iLength)
This method specifies read scenario contract for DicomValue Type
|
void |
setIVRType(int iVRType)
Sets the Value Representation type into the DicomValue
|
void |
setValue(java.lang.Object objValue)
Sets the value in the DicomValue after performing validation on the value.
|
abstract boolean |
validate()
This method specifies validation scenario contract for DicomValue Type
|
abstract boolean |
validate(java.lang.Object objToValidate)
This method specifies validation scenario contract for DicomValue Type
|
abstract int |
write(IDicomStream objIDicomStream)
This method specifies write scenario contract for DicomValue Type
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdumpDICOMInfo, getMaxLengthpublic java.lang.Object getValue()
getValue in interface IDicomValuepublic int getIVRType()
getIVRType in interface IDicomValueDicomConstantspublic void setIVRType(int iVRType)
setIVRType in interface IDicomValueiVRType - integer value specifies the Value Representation typepublic void setValue(java.lang.Object objValue)
throws InvalidDataTypeException
setValue in interface IDicomValueobjValue - value that is to be set into the DicomValueInvalidDataTypeException - If data type validation fails.public abstract boolean read(IDicomStream objIDicomStream, int iLength) throws InvalidDataTypeException, java.io.IOException
read in interface IDicomValueobjIDicomStream - stream from which the DataType is to be writteniLength - length of the DicomValue to be read from the streamInvalidDataTypeException - If data type validation fails.java.io.IOException - If Input/Output operation fails.public abstract int write(IDicomStream objIDicomStream) throws java.io.IOException
write in interface IDicomValueobjIDicomStream - stream from which the DataType is to be writtenjava.io.IOException - If Input/Output operation fails.public abstract boolean validate(java.lang.Object objToValidate)
throws ValidationException
validate in interface IDicomValueobjToValidate - value of Dicom Data Type to be validatedValidationException - If validation of of Dicomdata fails.public abstract boolean validate()
throws ValidationException
validate in interface IDicomValueValidationException - If validation of of Dicomdata fails.public abstract int getValueLength()
getValueLength in interface IDicomValuepublic int getValueMultiplicity()
getValueMultiplicity in interface IDicomValuepublic java.lang.Object clone()
clone in interface IDicomValueclone in class java.lang.Object