public class CommandElement extends java.lang.Object implements ICommandElement
| Constructor and Description |
|---|
CommandElement(int iGroupNumber,
int iElementNumber,
java.lang.Object objValue)
This constructor can be used to create a Command Element.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCommandElementLength()
Retrieves the length of Command Element
|
IDicomValue |
getDicomValue()
Retrieves the value part of the Command Element.
|
IDictionaryReader |
getDictionaryReader()
Retrieves the dictionaryreader set in the CommandElement.
|
int |
getLength()
Retrieves the length part of the Command Element.
|
ITag |
getTag()
Retrieves the Tag part of the Command Element.
|
ITransferSyntax |
getTransferSyntax()
Retrieves the TransferSyntax set in the CommandElement object.
|
int |
getValueLength()
Retrieves value length of Command element.
|
int |
getValueMultiplicity()
Retrieves the value multiplicity of the value.
|
int |
parse(IDicomStream objIDicomStream)
Reads the Command Element from the given Stream.
|
int |
serialize(IDicomStream objIDicomStream)
Writes the Command Element to the given Stream.
|
void |
setCommandElementLength()
Sets the length of Command Element.
|
void |
setDicomValue(IDicomValue objDicomValue)
Sets the DicomValue as a value in the CommandElement.
|
void |
setDictionaryReader(IDictionaryReader objIDictionaryReader)
Sets the Dictionary Reader.
|
void |
setLength(int iValueLength)
Sets the length part of the Command Element.
|
void |
setTag(int iGroupNumber,
int iElementNumber)
Sets the Tag in Command Element.
|
void |
setValueMultiplicity(int iVM)
Sets the value multiplicity of the value in the CommandElement.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic CommandElement(int iGroupNumber,
int iElementNumber,
java.lang.Object objValue)
throws InvalidCommandElementException
iGroupNumber - GroupNumber from the Tag identifying this Command ElementiElementNumber - ElementNumber from the Tag identifying this Command ElementobjValue - value of the Command ElementInvalidCommandElementException - If Command Element is invalidpublic int getLength()
getLength in interface ICommandElementpublic void setLength(int iValueLength)
setLength in interface ICommandElementiValueLength - Length part of Data Element.public int getValueLength()
getValueLength in interface ICommandElementpublic int getValueMultiplicity()
getValueMultiplicity in interface ICommandElementpublic void setValueMultiplicity(int iVM)
setValueMultiplicity in interface ICommandElementiVM - value multiplicity of the valuepublic void setTag(int iGroupNumber,
int iElementNumber)
setTag in interface ICommandElementiGroupNumber - Value of Group Number.iElementNumber - Value of Element Number.public ITag getTag()
getTag in interface ICommandElementpublic IDicomValue getDicomValue()
getDicomValue in interface ICommandElementpublic void setDicomValue(IDicomValue objDicomValue)
setDicomValue in interface ICommandElementobjDicomValue - instance of DicomValue representing the value of CommandElementpublic void setDictionaryReader(IDictionaryReader objIDictionaryReader)
objIDictionaryReader - instance of DictionaryReader to read from the Dictionary.public IDictionaryReader getDictionaryReader()
public int parse(IDicomStream objIDicomStream) throws InvalidCommandElementException, java.io.IOException
parse in interface ICommandElementobjIDicomStream - instance of Dicom Streamjava.io.IOException - If Input/Output operation fails.InvalidCommandElementException - If Data Element fails to satisfy Validation Criteria.public int serialize(IDicomStream objIDicomStream) throws InvalidDataTypeException, java.io.IOException
serialize in interface ICommandElementobjIDicomStream - instance of Dicom StreamInvalidDataTypeException - If DataType validation fails.java.io.IOException - If Input/Output operation fails.public void setCommandElementLength()
setCommandElementLength in interface ICommandElementpublic int getCommandElementLength()
getCommandElementLength in interface ICommandElementpublic ITransferSyntax getTransferSyntax()
getTransferSyntax in interface ICommandElement