public abstract class Module extends java.lang.Object implements IModule
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.String strDataElementName,
java.lang.Object objValue)
This method adds the data element in module.
|
void |
dumpDICOMInfo(IDicomStream objIDicomStream)
This method dumps all Attributes of the Module in readable form to the specified Stream.
|
IDictionaryReader |
getDictionaryReader()
Returns the DictionaryReader instance.
|
ITransferSyntax |
getTransferSyntax()
Retrieves the TransferSyntax.
|
ISingleCollection<ITag> |
getVectorOfKeys()
Gets the vector of keys.
|
boolean |
isPresent(int iGroupNumber,
int iElementNumber)
Checks if the DataElement for the given GroupNumber,ElementNumber pair exists
in the Module.
|
boolean |
isPresent(java.lang.String strDataElementName)
Checks if the DataElement is present in the Module.
|
ICollectionIterator<IDataElement> |
iterator()
This method returns the iterator over the Module.
|
boolean |
remove(java.lang.String strDataElementName,
boolean isForeceFullyDelete)
This method removes the data element from module.
|
abstract boolean |
validateModule()
Validates the Module's DataElement according to Dicom Standard.
|
public abstract boolean validateModule()
IModulevalidateModule in interface IModulepublic IDictionaryReader getDictionaryReader()
public boolean remove(java.lang.String strDataElementName,
boolean isForeceFullyDelete)
strDataElementName - Data Element Name that is to be removed from the module.isForceFullyDelete - boolean variable which decides to delete the data element forcefully or not.
if isForceFullyDelete is true then the data element is forcefully deleted.
if isForceFullyDelete is false then the data element is deleted based on Validation Mode specified (LOW/HIGH/STRICT)public boolean add(java.lang.String strDataElementName,
java.lang.Object objValue)
strDataElementName - Data Element Name that is to be added to the module.objValue - - The value of the data element to be added in data set.public ICollectionIterator<IDataElement> iterator()
iterator in interface ICollectionIterableiterator in interface java.lang.Iterablepublic ISingleCollection<ITag> getVectorOfKeys()
public boolean isPresent(int iGroupNumber,
int iElementNumber)
iGroupNumber - - Group Number of the DataElement.iElementNumber - - Element Number of the DataElement.public boolean isPresent(java.lang.String strDataElementName)
strDataElementName - - Name of the Data Element.public ITransferSyntax getTransferSyntax()
public void dumpDICOMInfo(IDicomStream objIDicomStream) throws java.io.IOException
objIDicomStream - : the Stream on which the Data is to be written.java.io.IOException