public class NumericValueMacro extends Macro
| Constructor and Description |
|---|
NumericValueMacro(IDataSet objDataSet)
This constructor constructs a Macro with specified DataSet.
|
NumericValueMacro(IDataSet objDataSet,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with specified DataSet and DictionaryReader
|
NumericValueMacro(IItem objItem)
This constructor constructs a Macro with the specified Item
|
NumericValueMacro(IItem objItem,
IDictionaryReader objDictionaryReader)
This constructor constructs a Macro with the specified Item and DictionaryReader
|
| Modifier and Type | Method and Description |
|---|---|
ConceptNameCodeSequence |
getConceptNameCodeSequence()
Retrieves pre-initialized object of Concept Name Code Sequence
|
MeasurementUnitsCodeSequence |
getMeasurementUnitsCodeSequence()
Retrieves pre-initialized object of Measurement Units Code Sequence
|
java.lang.String[] |
getNumericValue()
Retrieves Numeric value for this name-value Item.
|
void |
setNumericValue(java.lang.String[] strNumericValue)
Sets Numeric value for this name-value Item.
|
boolean |
validate()
Validates all the attributes in NumericValueMacro
|
boolean |
validate(IDataSet objIDataSet)
Validates all the attributes in NumericValueMacro that are present in the DataSet
|
boolean |
validate(IItem objIItem)
Validates all the attributes in NumericValueMacro that are present in the DataSet
|
addDataElement, clone, contains, getDataElement, getTransferSyntaxpublic NumericValueMacro(IDataSet objDataSet)
objDataSet - Collection of DataElementspublic NumericValueMacro(IDataSet objDataSet, IDictionaryReader objDictionaryReader)
objDataSet - specifies the DataSetobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic NumericValueMacro(IItem objItem)
objItem - specifies instance of Item classpublic NumericValueMacro(IItem objItem, IDictionaryReader objDictionaryReader)
objItem - specifies instance of Item classobjDictionaryReader - specifies the DICOM Dictionary reader to be usedpublic ConceptNameCodeSequence getConceptNameCodeSequence()
public void setNumericValue(java.lang.String[] strNumericValue)
strNumericValue - String value of Numeric value for this name-value Item.public java.lang.String[] getNumericValue()
public MeasurementUnitsCodeSequence getMeasurementUnitsCodeSequence()
public boolean validate()
throws InvalidMacroException
InvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public boolean validate(IItem objIItem) throws InvalidMacroException
objIItem - collection of DataElements in a sequenceInvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.public boolean validate(IDataSet objIDataSet) throws InvalidMacroException
objIDataSet - collection of DataElementsInvalidMacroException - throws InvalidMacroException If Mandatory or Conditional element fails.